reportabug
Qt application which allows users to create an issue for GitHub projects
 All Classes Namespaces Files Functions Variables
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:
63  explicit GithubModule(QWidget *parent = 0,
64  bool debugCmd = false);
68  ~GithubModule();
69 
70 public slots:
80  void sendReportUsingGithub(const QMap<QString, QString> info);
81 
82 private slots:
87  void githubFinished(QNetworkReply *reply);
88 
89 private:
93  bool debug;
97  Reportabug *mainWindow;
103  QString parseString(QString line);
110  QByteArray prepareRequest(const QString title, const QString body);
111 };
112 
113 
114 #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)
GithubModule class constructor.