1 #ifndef _localidentity_
\r
2 #define _localidentity_
\r
4 #include "idatabase.h"
\r
6 class LocalIdentity:public IDatabase
\r
9 LocalIdentity(SQLite3DB::DB *db);
\r
11 const bool Load(const int id);
\r
12 const bool Load(const std::string &name);
\r
14 const int GetID() const { return m_id; }
\r
15 const std::string GetName() const { return m_name; }
\r
16 const std::string GetPublicKey() const { return m_publickey; }
\r
17 const std::string GetPrivateKey() const { return m_privatekey; }
\r
24 std::string m_publickey;
\r
25 std::string m_privatekey;
\r
28 #endif // _localidentity_
\r