forked from borishonman/cydownload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
51 lines (39 loc) · 1.03 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTemporaryDir>
#include <vector>
#include <map>
#include "dialogrepo.h"
#include "downloader.h"
#include "types.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
typedef enum _Downloading {RELEASE=0, RELEASE_DEBIAN, PACKAGES, PACKAGES_DEBIAN, PACKAGESGZ, PACKAGESGZ_DEBIAN, PACKAGE, NONE} Downloading;
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void downloadComplete(bool success, QString errMsg);
void on_btn_open_repo_clicked();
void on_btn_new_repo_clicked();
void on_cmb_repo_urls_currentIndexChanged(int index);
void on_btn_del_repo_clicked();
private:
void repoInfoDownloaded();
Ui::MainWindow *ui;
dialogrepo *m_dr;
QTemporaryDir m_tmpDir;
QString m_url;
QString m_dataDir;
Downloader *m_dl;
Downloading m_dling;
Repo m_repo;
std::vector<Package> m_packages;
SectionList m_sections;
};
#endif // MAINWINDOW_H