summaryrefslogtreecommitdiff
path: root/src/contact.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-12-18 18:56:19 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2022-12-18 21:37:11 +0100
commit86293ff20d9f8625615e855d98249175e8cd5cd3 (patch)
tree7eb1fe3a34ce1d6a24a9338f3dd3008b500fffe0 /src/contact.h
parent77fc16d21158c6542addcbaaff47b801d3b5f5c7 (diff)
Contact service and contacts using stored set
Diffstat (limited to 'src/contact.h')
-rw-r--r--src/contact.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/contact.h b/src/contact.h
index 31deceb..6fc0219 100644
--- a/src/contact.h
+++ b/src/contact.h
@@ -19,24 +19,12 @@ struct IdentityData;
struct Contact::Priv
{
vector<Stored<ContactData>> data;
- Identity identity;
void init();
std::once_flag initFlag {};
+ optional<Identity> identity {};
optional<string> name {};
-
- static List<Contact> loadList(vector<Stored<ContactData>> &&, vector<Identity> &&);
-};
-
-struct ContactData
-{
- static ContactData load(const Ref &);
- Ref store(const Storage &) const;
-
- vector<Stored<ContactData>> prev;
- vector<Stored<Signed<IdentityData>>> identity;
- optional<string> name;
};
}