summaryrefslogtreecommitdiff
path: root/mainwindow.h
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-01-19 17:28:36 +1030
committerdaniel-Jones <daniel@danieljon.es>2018-01-19 17:28:36 +1030
commitfe066f144c54c67207e0edfd5303d0b68288e066 (patch)
tree3743abd094f1a1121a1ecbedefed1f80ccaff2ac /mainwindow.h
downloadhorriblesubs-rss-master.tar.gz
horriblesubs-rss-master.zip
initial project in working stateHEADmaster
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/mainwindow.h b/mainwindow.h
new file mode 100644
index 0000000..5392033
--- /dev/null
+++ b/mainwindow.h
@@ -0,0 +1,39 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+#include <QEventLoop>
+#include <QNetworkAccessManager>
+#include <QNetworkReply>
+#include <QFile>
+#include <QDomDocument>
+#include <QCheckBox>
+#include <QProcess>
+
+namespace Ui {
+ class MainWindow;
+}
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+ public:
+ explicit MainWindow(QWidget *parent = 0);
+ ~MainWindow();
+
+private slots:
+ void on_get_button_clicked();
+
+private:
+ Ui::MainWindow *ui;
+ bool getfile(QString url, QString dest);
+ QNetworkAccessManager http;
+ QEventLoop loop;
+ bool parserss(QString rssfile);
+ void addtolist(QString title, QString date, QString link);
+ void openclient(QString magnet);
+
+};
+
+#endif // MAINWINDOW_H