forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemotePushDialog.h
More file actions
52 lines (38 loc) · 1.14 KB
/
Copy pathRemotePushDialog.h
File metadata and controls
52 lines (38 loc) · 1.14 KB
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
52
#ifndef REMOTEPUSHDIALOG_H
#define REMOTEPUSHDIALOG_H
#include <QDialog>
class RemoteDatabase;
class QRegExpValidator;
namespace Ui {
class RemotePushDialog;
}
class RemotePushDialog : public QDialog
{
Q_OBJECT
public:
RemotePushDialog(QWidget* parent, RemoteDatabase& remote, const QString& host, const QString& clientCert, const QString& name = QString());
~RemotePushDialog();
QString name() const;
QString commitMessage() const;
QString licence() const;
bool isPublic() const;
QString branch() const;
bool forcePush() const;
private:
Ui::RemotePushDialog* ui;
// Connection details
QString m_host;
QString m_clientCert;
// Reference to the remote database object which is stored somewhere in the main window
RemoteDatabase& remoteDatabase;
// Validators
QRegExpValidator* m_nameValidator;
QRegExpValidator* m_branchValidator;
protected slots:
void checkInput();
virtual void accept();
void reloadBranchList();
void fillInLicences(const QMap<QString, QString>& licences);
void fillInBranches(const QStringList& branches, const QString& default_branch);
};
#endif