reportabug
Qt application which allows users to create an issue for GitHub projects
 All Classes Namespaces Files Functions Variables Macros
githubmodule.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 GITHUBMODULE_H
26 #define GITHUBMODULE_H
27 
28 #include <QMap>
29 #include <QObject>
30 
31 
32 class Reportabug;
33 class QNetworkReply;
34 
53 class GithubModule : public QObject
54 {
55  Q_OBJECT
56 
57 public:
64  explicit GithubModule(QWidget *parent = 0,
65  bool debugCmd = false,
66  QMap<QString, QString> params = QMap<QString, QString>());
70  ~GithubModule();
71 
72 public slots:
82  void sendReportUsingGithub(const QMap<QString, QString> info);
83 
84 private slots:
89  void githubFinished(QNetworkReply *reply);
90 
91 private:
95  bool debug;
99  QMap<QString, QString> dynamic;
103  Reportabug *mainWindow;
109  QString parseString(QString line);
116  QByteArray prepareRequest(const QString title, const QString body);
117 };
118 
119 
120 #endif /* GITHUBMODULE_H */
The GithubModule class creates issue over GitHub.
Definition: githubmodule.h:53
The Reportabug class is a main class of the application.
Definition: reportabug.h:42
~GithubModule()
GithubModule class destructor.
void sendReportUsingGithub(const QMap< QString, QString > info)
method which creates an issue
GithubModule(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())
GithubModule class constructor.