aboutsummaryrefslogtreecommitdiff
path: root/src/identitycollection.hpp
diff options
context:
space:
mode:
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;
};