Implement Milestone 2 profile schema, dialog, and connect lifecycle
This commit is contained in:
35
src/profile_dialog.h
Normal file
35
src/profile_dialog.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef ORBITHUB_PROFILE_DIALOG_H
|
||||
#define ORBITHUB_PROFILE_DIALOG_H
|
||||
|
||||
#include "profile_repository.h"
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
class QComboBox;
|
||||
class QLineEdit;
|
||||
class QSpinBox;
|
||||
|
||||
class ProfileDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ProfileDialog(QWidget* parent = nullptr);
|
||||
|
||||
void setDialogTitle(const QString& title);
|
||||
void setProfile(const Profile& profile);
|
||||
Profile profile() const;
|
||||
|
||||
protected:
|
||||
void accept() override;
|
||||
|
||||
private:
|
||||
QLineEdit* m_nameInput;
|
||||
QLineEdit* m_hostInput;
|
||||
QSpinBox* m_portInput;
|
||||
QLineEdit* m_usernameInput;
|
||||
QComboBox* m_protocolInput;
|
||||
QComboBox* m_authModeInput;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user