mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
#ifndef REMOTEPUSHDIALOG_H
|
|
#define REMOTEPUSHDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class RemoteDatabase;
|
|
class QRegExpValidator;
|
|
|
|
namespace Ui {
|
|
class RemotePushDialog;
|
|
}
|
|
|
|
class RemotePushDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit RemotePushDialog(QWidget* parent, RemoteDatabase& remote, const QString& host, const QString& clientCert, const QString& name = QString());
|
|
~RemotePushDialog() override;
|
|
|
|
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();
|
|
void accept() override;
|
|
|
|
void reloadBranchList();
|
|
|
|
void fillInLicences(const QMap<QString, QString>& licences);
|
|
void fillInBranches(const QStringList& branches, const QString& default_branch);
|
|
};
|
|
|
|
#endif
|