Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
huggletool.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef HUGGLETOOL_H
12 #define HUGGLETOOL_H
13 
14 #include <QString>
15 #include <QTimer>
16 #include <QDockWidget>
17 #include <QFont>
18 #include "apiquery.hpp"
19 #include "wikipage.hpp"
20 #include "wikiedit.hpp"
21 #include "exception.hpp"
22 #include "configuration.hpp"
23 
24 namespace Ui
25 {
26  class HuggleTool;
27 }
28 
29 namespace Huggle
30 {
31  class WikiEdit;
32  class WikiPage;
33 
34  //! Toolbar on top of window
35  class HuggleTool : public QDockWidget
36  {
37  Q_OBJECT
38 
39  public:
40  explicit HuggleTool(QWidget *parent = 0);
41  ~HuggleTool();
42  void SetTitle(QString title);
43  void SetInfo(QString info);
44  void SetUser(QString user);
45  void SetPage(WikiPage* page);
46 
47  private slots:
48  void on_pushButton_clicked();
49  void onTick();
50 
51  private:
52  Ui::HuggleTool *ui;
53  ApiQuery *query;
54  //! Timer that is used to switch between events that happen when the data for page are retrieved
55  QTimer *tick;
56  /// \todo DOCUMENT ME
58  //! Page download phase
59 
60  //! When we download a page from wiki we need to do that in several steps, this variable holds
61  //! the information which step we are in
63  void FinishPage();
64  void FinishEdit();
65  void DeleteQuery();
66  };
67 }
68 
69 #endif // HUGGLETOOL_H
Mediawiki page.
Definition: wikipage.hpp:43
Toolbar on top of window.
Definition: huggletool.hpp:35
Wiki edit.
Definition: wikiedit.hpp:67
This class can be used to execute any kind of api query on any wiki.
Definition: apiquery.hpp:55
int QueryPhase
Page download phase.
Definition: huggletool.hpp:62
QTimer * tick
Timer that is used to switch between events that happen when the data for page are retrieved...
Definition: huggletool.hpp:55