Internal
Public Access
Milestone 8 UX: folder tree workflows, about dialog, and app icon polish
This commit is contained in:
@@ -15,12 +15,20 @@ struct Profile
|
||||
int port = 22;
|
||||
QString username;
|
||||
QString domain;
|
||||
QString folderPath;
|
||||
QString protocol = QStringLiteral("SSH");
|
||||
QString authMode = QStringLiteral("Password");
|
||||
QString privateKeyPath;
|
||||
QString knownHostsPolicy = QStringLiteral("Ask");
|
||||
QString rdpSecurityMode = QStringLiteral("Negotiate");
|
||||
QString rdpPerformanceProfile = QStringLiteral("Balanced");
|
||||
QString tags;
|
||||
};
|
||||
|
||||
enum class ProfileSortOrder {
|
||||
NameAsc,
|
||||
ProtocolAsc,
|
||||
HostAsc,
|
||||
};
|
||||
|
||||
class ProfileRepository
|
||||
@@ -32,7 +40,10 @@ public:
|
||||
QString initError() const;
|
||||
QString lastError() const;
|
||||
|
||||
std::vector<Profile> listProfiles(const QString& searchQuery = QString()) const;
|
||||
std::vector<Profile> listProfiles(const QString& searchQuery = QString(),
|
||||
ProfileSortOrder sortOrder = ProfileSortOrder::NameAsc) const;
|
||||
std::vector<QString> listFolders() const;
|
||||
bool createFolder(const QString& folderPath) const;
|
||||
std::optional<Profile> getProfile(qint64 id) const;
|
||||
std::optional<Profile> createProfile(const Profile& profile) const;
|
||||
bool updateProfile(const Profile& profile) const;
|
||||
|
||||
Reference in New Issue
Block a user