# reportabug: reportabug.h Source File

All Classes Namespaces Files Functions Variables Macros
reportabug.h
Go to the documentation of this file.
/***************************************************************************
* This file is part of reportabug *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 3.0 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library. *
***************************************************************************/
#ifndef REPORTABUG_H
#define REPORTABUG_H
#include <QKeyEvent>
#include <QMainWindow>
class GithubModule;
class GitreportModule;
namespace Ui {
class Reportabug;
}
class Reportabug : public QMainWindow
{
Q_OBJECT
public:
explicit Reportabug(QWidget *parent = 0,
bool debugCmd = false,
QMap<QString, QString> params = QMap<QString, QString>());
~Reportabug();
void externalUpdateTab();
void setCaptchaImage(QPixmap captcha);
public slots:
void sendReport();
void showWindow();
void updateTabs(const int index);
private:
bool debug;
QMap<QString, QString> dynamic;
bool modules[3];
Ui::Reportabug *ui;
// modules
GithubModule *github;
GitreportModule *gitreport;
void createActions();
void createComboBox();
int getNumberByIndex(const int index);
void initModules();
void keyPressEvent(QKeyEvent *pressedKey);
QString parseString(QString line);
};
#endif /* REPORTABUG_H */
GithubModule
The GithubModule class creates issue over GitHub.
Definition: githubmodule.h:53
Reportabug::~Reportabug
~Reportabug()
Reportabug class destructor.
Reportabug::updateTabs
void updateTabs(const int index)
method which updates text
Reportabug
The Reportabug class is a main class of the application.
Definition: reportabug.h:42
Reportabug::showWindow
void showWindow()
method which updates text and shows window
GitreportModule
The GitreportModule class creates issue over GitReports.
Definition: gitreportmodule.h:43
Reportabug::externalUpdateTab
void externalUpdateTab()
method which is used for update tabs from external classes
Reportabug::setCaptchaImage
void setCaptchaImage(QPixmap captcha)
method which sets captcha image
Reportabug::sendReport
void sendReport()
method which creates an issue
Reportabug::Reportabug
Reportabug(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())
Reportabug class constructor.