c2bNetworkQuery.h (cb2bib-2.0.0) | : | c2bNetworkQuery.h (cb2bib-2.0.1) | ||
---|---|---|---|---|
/*************************************************************************** | /*************************************************************************** | |||
* Copyright (C) 2004-2019 by Pere Constans | * Copyright (C) 2004-2021 by Pere Constans | |||
* constans@molspaces.com | * constans@molspaces.com | |||
* cb2Bib version 2.0.0. Licensed under the GNU GPL version 3. | * cb2Bib version 2.0.1. Licensed under the GNU GPL version 3. | |||
* See the LICENSE file that comes with this distribution. | * See the LICENSE file that comes with this distribution. | |||
***************************************************************************/ | ***************************************************************************/ | |||
#ifndef C2BNETWORKQUERY_H | #ifndef C2BNETWORKQUERY_H | |||
#define C2BNETWORKQUERY_H | #define C2BNETWORKQUERY_H | |||
#include "c2bUtils.h" | #include "c2bUtils.h" | |||
#include <networkQuery.h> | #include <networkQuery.h> | |||
class c2bNetworkQuery : public networkQuery | class c2bNetworkQuery : public networkQuery | |||
{ | { | |||
Q_OBJECT | Q_OBJECT | |||
public: | public: | |||
c2bNetworkQuery(bibParser* bp, QObject* parento = 0); | explicit c2bNetworkQuery(bibParser* bp, QObject* parento = 0); | |||
c2bNetworkQuery(bibParser* bp, network* net, QObject* parento = 0); | c2bNetworkQuery(bibParser* bp, network* net, QObject* parento = 0); | |||
~c2bNetworkQuery(); | ~c2bNetworkQuery(); | |||
protected: | protected: | |||
bool checkQueryFile(const QString& fn) const override; | bool checkQueryFile(const QString& fn) const override; | |||
inline QString fromHtmlString(const QString& str, const bool addMetadata = f alse) const override | inline QString fromHtmlString(const QString& str, const bool addMetadata = f alse) const override | |||
{ | { | |||
return c2bUtils::fromHtmlString(str, addMetadata); | return c2bUtils::fromHtmlString(str, addMetadata); | |||
} | } | |||
bool openFile(const QString& fn) const override | bool openFile(const QString& fn) const override | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |