From f94443c63dfd63300e5bd29889935fd1f451175e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 21 Dec 2019 21:42:20 +0100 Subject: Identity storage and modification --- src/identity.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/identity.h') diff --git a/src/identity.h b/src/identity.h index d31951f..4335d32 100644 --- a/src/identity.h +++ b/src/identity.h @@ -14,6 +14,7 @@ class IdentityData { public: static optional load(const Ref &); + Ref store(const Storage & st) const; const vector>> prev; const optional name; @@ -35,4 +36,15 @@ public: function sel) const; }; +class Identity::Builder::Priv +{ +public: + Storage storage; + vector>> prev = {}; + optional name = nullopt; + optional owner = nullopt; + Stored keyIdentity; + optional> keyMessage; +}; + } -- cgit v1.2.3