"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2bNetworkQuery.h" (12 Feb 2021, 1049 Bytes) of package /linux/privat/cb2bib-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "c2bNetworkQuery.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.0.1.

    1 /***************************************************************************
    2  *   Copyright (C) 2004-2021 by Pere Constans
    3  *   constans@molspaces.com
    4  *   cb2Bib version 2.0.1. Licensed under the GNU GPL version 3.
    5  *   See the LICENSE file that comes with this distribution.
    6  ***************************************************************************/
    7 #ifndef C2BNETWORKQUERY_H
    8 #define C2BNETWORKQUERY_H
    9 
   10 #include "c2bUtils.h"
   11 
   12 #include <networkQuery.h>
   13 
   14 
   15 class c2bNetworkQuery : public networkQuery
   16 {
   17 
   18     Q_OBJECT
   19 
   20 public:
   21     explicit c2bNetworkQuery(bibParser* bp, QObject* parento = 0);
   22     c2bNetworkQuery(bibParser* bp, network* net, QObject* parento = 0);
   23     ~c2bNetworkQuery();
   24 
   25 
   26 protected:
   27     bool checkQueryFile(const QString& fn) const override;
   28     inline QString fromHtmlString(const QString& str, const bool addMetadata = false) const override
   29     {
   30         return c2bUtils::fromHtmlString(str, addMetadata);
   31     }
   32     bool openFile(const QString& fn) const override
   33     {
   34         return c2bUtils::openFile(fn);
   35     }
   36 };
   37 
   38 #endif