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:
53  explicit GitreportModule(QWidget *parent = 0,
54  bool debugCmd = false);
62  QWebView *webView;
63 
64 public slots:
72  void sendReportUsingGitreport(const QMap<QString, QString> info);
73 
74 private slots:
79  void gitreportFinished(const bool state);
84  void gitreportLoaded(const bool state);
89  void setCaptcha(QNetworkReply *reply);
90 
91 private:
95  bool debug;
99  Reportabug *mainWindow;
103  QNetworkAccessManager manager;
104 };
105 
106 
107 #endif /* GITREPORTMODULE_H */
GitreportModule(QWidget *parent=0, bool debugCmd=false)
GitreportModule class constructor.
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:43
QWebView * webView
Webkit item which is used for loading web page.
Definition: gitreportmodule.h:62
The GitreportModule class creates issue over GitReports.
Definition: gitreportmodule.h:43
~GitreportModule()
GitreportModule class destructor.