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