aboutsummaryrefslogtreecommitdiff
path: root/src/identitycollection.hpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-16 00:41:57 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-16 00:41:57 +0200
commit33c91102a58e2fbcf9d7a66e33b41a65fa3f0e0c (patch)
treea724f0c3dcc48c8ce1f78c2665fe8ef170acb379 /src/identitycollection.hpp
parent5bb3f3f92e62a0af02fe475943759b8c25cd4592 (diff)
downloadkristall-33c91102a58e2fbcf9d7a66e33b41a65fa3f0e0c.tar.gz
Adds improved client certificate management, adds server certificate management.
Diffstat (limited to 'src/identitycollection.hpp')
-rw-r--r--src/identitycollection.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/identitycollection.hpp b/src/identitycollection.hpp
index 3290688..eecf3a4 100644
--- a/src/identitycollection.hpp
+++ b/src/identitycollection.hpp
@@ -48,6 +48,8 @@ public:
void save(QSettings & settings) const;
+ bool addGroup(QString const & group);
+
bool addCertificate(QString const & group, CryptoIdentity const & id);
CryptoIdentity getIdentity(QModelIndex const & index) const;
@@ -56,6 +58,14 @@ public:
QStringList groups() const;
+ //! Returns the group name of the index.
+ QString group(QModelIndex const & index) const;
+
+ bool destroyIdentity(QModelIndex const & index);
+
+ bool canDeleteGroup(QString const & group_name);
+ bool deleteGroup(QString const & group_name);
+
public:
// Header:
// QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
@@ -73,6 +83,8 @@ public:
private:
void relayout();
+ bool internalAddGroup(QString const & group_name, GroupNode * & out_group);
+
private:
RootNode root;
};