"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2bNetworkQueryInfo.h" (12 Feb 2021, 1187 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 "c2bNetworkQueryInfo.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 C2BNETWORKQUERYINFO_H
    8 #define C2BNETWORKQUERYINFO_H
    9 
   10 #include <QObject>
   11 #include <QStringList>
   12 
   13 class QAction;
   14 class c2bBibParser;
   15 class c2bFileSystemWatcher;
   16 
   17 
   18 /**
   19     Manage Network Query Information
   20 */
   21 class c2bNetworkQueryInfo : public QObject
   22 {
   23 
   24     Q_OBJECT
   25 
   26 public:
   27     explicit c2bNetworkQueryInfo(QObject* parento = 0);
   28     ~c2bNetworkQueryInfo();
   29 
   30     QList<QAction*> bookmarkActions(const QString& selection);
   31     const QString bookmarksToHtml() const;
   32     const QString encodeLink(const QString& ln) const;
   33 
   34 
   35 private:
   36     QList<QAction*> BookmarkActionList;
   37     QString NetworkFile;
   38     QString _current_selection;
   39     QStringList BookmarkList;
   40     c2bFileSystemWatcher* _fsw;
   41     const c2bBibParser* _bpP;
   42 
   43 
   44 private slots:
   45     void loadSettings();
   46     void openBookmark();
   47     void parseBookmarks();
   48 };
   49 
   50 #endif