Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
reportuser.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 
12 #ifndef REPORTUSER_H
13 #define REPORTUSER_H
14 
15 #include <QDialog>
16 #include <QTimer>
17 #include <QWebView>
18 #include <QMutex>
19 #include <QtXml>
20 #include <QCheckBox>
21 #include <QString>
22 #include <QList>
23 #include "core.hpp"
24 #include "apiquery.hpp"
25 #include "huggleweb.hpp"
26 #include "configuration.hpp"
27 #include "wikiuser.hpp"
28 
29 namespace Ui
30 {
31  class ReportUser;
32 }
33 
34 namespace Huggle
35 {
36  class WikiUser;
37 
38  //! Report user
39  class ReportUser : public QDialog
40  {
41  Q_OBJECT
42 
43  public:
44  explicit ReportUser(QWidget *parent = 0);
45  //! Set a user
46  bool SetUser(WikiUser *u);
47  ~ReportUser();
48 
49  private slots:
50  void Tick();
51  void On_DiffTick();
52  void Test();
53  void on_pushButton_clicked();
54  void on_pushButton_2_clicked();
55  void on_tableWidget_clicked(const QModelIndex &index);
56  void on_pushButton_3_clicked();
57 
58  private:
59  Ui::ReportUser *ui;
60  WikiUser *user;
61  ApiQuery *q;
62  QTimer *timer;
63  QTimer *t2;
64  QTimer *diff;
65  QList <QCheckBox*> CheckBoxes;
66  QString report;
67  //! Content of report
68  QString _p;
69  bool Loading;
70  bool Messaging;
71  bool CheckUser();
72  void InsertUser();
73  ApiQuery *tq;
74  ApiQuery *qd;
75  };
76 }
77 
78 #endif // REPORTUSER_H
void on_tableWidget_clicked(const QModelIndex &index)
Definition: reportuser.cpp:363
Report user.
Definition: reportuser.hpp:39
QString _p
Content of report.
Definition: reportuser.hpp:68
bool SetUser(WikiUser *u)
Set a user.
Definition: reportuser.cpp:53
void on_pushButton_clicked()
Definition: reportuser.cpp:304
ReportUser(QWidget *parent=0)
Definition: reportuser.cpp:15
This class can be used to execute any kind of api query on any wiki.
Definition: apiquery.hpp:55