forked from AdrianTM/mx-packageinstaller
-
Notifications
You must be signed in to change notification settings - Fork 11
/
remotes.h
42 lines (37 loc) · 824 Bytes
/
remotes.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
#pragma once
#include <QCheckBox>
#include <QComboBox>
#include <QDialog>
class ManageRemotes : public QDialog
{
Q_OBJECT
public:
explicit ManageRemotes(QWidget *parent = nullptr, const QString &user = "--system ");
[[nodiscard]] bool isChanged() const
{
return changed;
}
void listFlatpakRemotes() const;
[[nodiscard]] QString getInstallRef() const
{
return install_ref;
}
[[nodiscard]] QString getUser() const
{
return user;
}
signals:
public slots:
void removeItem();
void addItem();
void setInstall();
void userSelected(int index);
private:
bool changed;
QComboBox *comboRemote;
QComboBox *comboUser;
QLineEdit *editAddRemote;
QLineEdit *editInstallFlatpakref;
QString user;
QString install_ref;
};