summaryrefslogtreecommitdiff
path: root/src/gnunet/social/ego.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet/social/ego.h')
-rw-r--r--src/gnunet/social/ego.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/gnunet/social/ego.h b/src/gnunet/social/ego.h
new file mode 100644
index 0000000..fbf6370
--- /dev/null
+++ b/src/gnunet/social/ego.h
@@ -0,0 +1,40 @@
1#ifndef EGO_H
2#define EGO_H
3
4#include <QObject>
5
6#include "nym.h"
7#include "gnunet.h"
8
9class Ego : public Nym
10{
11 Q_OBJECT;
12
13 public:
14
15 explicit
16 Ego (GNUNET_CRYPTO_EcdsaPublicKey pubKey,
17 QString name = "",
18 GNUNET_SOCIAL_Ego *ego = 0,
19 QObject *parent = 0);
20
21
22 GNUNET_SOCIAL_Ego *
23 ego ()
24 {
25 return m_ego;
26 }
27
28 void
29 setEgo (GNUNET_SOCIAL_Ego *ego)
30 {
31 m_ego = ego;
32 }
33
34 protected:
35
36 GNUNET_SOCIAL_Ego *m_ego;
37
38};
39
40#endif