add persistence of accepted gpg key to connect with

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2019 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-01-13 21:26:30 +00:00
parent e50dc4e3b9
commit 3742d3bd8b
5 changed files with 89 additions and 4 deletions

View file

@ -48,6 +48,7 @@
#include <list>
#include <set>
#include <map>
#include "pqi/p3cfgmgr.h"
#define GPG_id std::string
@ -83,7 +84,7 @@ class gpgcert
*/
typedef std::map<std::string, gpgcert> certmap;
class AuthGPG
class AuthGPG : public p3Config
{
private:
@ -215,6 +216,15 @@ class AuthGPG
static AuthGPG *getAuthGPG() throw() // pour obtenir l'instance
{ return instance_gpg; }
protected:
/*****************************************************************/
/*********************** p3config ******************************/
/* Key Functions to be overloaded for Full Configuration */
virtual RsSerialiser *setupSerialiser();
virtual std::list<RsItem *> saveList(bool &cleanup);
virtual bool loadList(std::list<RsItem *> load);
/*****************************************************************/
private:
static AuthGPG *instance_gpg; // pointeur vers le singleton