added installController with logic for server/container installation

This commit is contained in:
vladimir.kuznetsov 2023-05-17 23:28:27 +08:00
parent 03a0e2084a
commit acca85b99a
19 changed files with 519 additions and 151 deletions

View file

@ -16,8 +16,8 @@ class ServersModel : public QAbstractListModel
Q_OBJECT
public:
enum ServersModelRoles {
DescRole = Qt::UserRole + 1,
AddressRole,
NameRole = Qt::UserRole + 1,
HostNameRole,
CredentialsRole,
IsDefaultRole
};
@ -34,11 +34,16 @@ public slots:
const int getDefaultServerIndex();
const int getServersCount();
void setCurrentlyProcessedServerIndex(int index);
ServerCredentials getCurrentlyProcessedServerCredentials();
protected:
QHash<int, QByteArray> roleNames() const override;
private:
std::shared_ptr<Settings> m_settings;
int m_currenlyProcessedServerIndex;
};
#endif // SERVERSMODEL_H