reportabug
Qt application which allows users to create an issue for GitHub projects
 All Classes Namespaces Files Functions Variables Macros
gitreportmodule.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This file is part of reportabug *
3  * *
4  * This library is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU Lesser General Public *
6  * License as published by the Free Software Foundation; either *
7  * version 3.0 of the License, or (at your option) any later version. *
8  * *
9  * This library is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12  * Lesser General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU Lesser General Public *
15  * License along with this library. *
16  ***************************************************************************/
25 #ifndef GITREPORTMODULE_H
26 #define GITREPORTMODULE_H
27 
28 #include <QMap>
29 #include <QObject>
30 #include <QWebView>
31 
32 class QNetworkAccessManager;
33 class Reportabug;
34 
43 class GitreportModule : public QObject
44 {
45  Q_OBJECT
46 
47 public:
54  explicit GitreportModule(QWidget *parent = 0,
55  bool debugCmd = false,
56  QMap<QString, QString> params = QMap<QString, QString>());
64  QWebView *webView;
65 
66 public slots:
74  void sendReportUsingGitreport(const QMap<QString, QString> info);
75 
76 private slots:
81  void gitreportFinished(const bool state);
86  void gitreportLoaded(const bool state);
91  void setCaptcha(QNetworkReply *reply);
92 
93 private:
97  bool debug;
101  QMap<QString, QString> dynamic;
105  Reportabug *mainWindow;
109  QNetworkAccessManager manager;
110 };
111 
112 
113 #endif /* GITREPORTMODULE_H */
void sendReportUsingGitreport(const QMap< QString, QString > info)
method which creates an issue
The Reportabug class is a main class of the application.
Definition: reportabug.h:42
QWebView * webView
Webkit item which is used for loading web page.
Definition: gitreportmodule.h:64
GitreportModule(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())
GitreportModule class constructor.
The GitreportModule class creates issue over GitReports.
Definition: gitreportmodule.h:43
~GitreportModule()
GitreportModule class destructor.