-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathrepodialog.h
47 lines (34 loc) · 982 Bytes
/
repodialog.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
#ifndef REPODIALOG_H
#define REPODIALOG_H
#include <QDialog>
#include <QTreeWidgetItem>
#include "types.h"
#include "downloader.h"
#include <map>
#include <vector>
namespace Ui {
class RepoDialog;
}
class RepoDialog : public QDialog
{
Q_OBJECT
public:
explicit RepoDialog(QWidget *parent = 0);
~RepoDialog();
void initialize(Repo repo, SectionList sections);
private slots:
void on_tree_sections_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
void on_cmb_pkg_version_currentTextChanged(const QString &arg1);
void on_btn_download_clicked();
void downloadComplete(bool success, QString errMsg);
void on_txt_search_textChanged(const QString &arg1);
private:
Ui::RepoDialog *ui;
Repo m_repo;
Downloader* m_dler;
SectionList m_sections;
std::map<QTreeWidgetItem*, PackageVersions> m_packageMap;
void enablePackageInfoPanel();
void disablePackageInfoPanel();
};
#endif // REPODIALOG_H