summaryrefslogtreecommitdiff
path: root/src/contact.h
blob: 6fc02193020fc08ab47f13ee54ec1b0717090b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include <erebos/contact.h>

#include <mutex>
#include <optional>
#include <string>
#include <vector>

namespace erebos {

using std::optional;
using std::string;
using std::vector;

struct ContactData;
struct IdentityData;

struct Contact::Priv
{
	vector<Stored<ContactData>> data;

	void init();
	std::once_flag initFlag {};

	optional<Identity> identity {};
	optional<string> name {};
};

}