diff options
Diffstat (limited to 'net-p2p/retroshare/files/rsinit.h')
-rw-r--r-- | net-p2p/retroshare/files/rsinit.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/net-p2p/retroshare/files/rsinit.h b/net-p2p/retroshare/files/rsinit.h new file mode 100644 index 0000000..5434971 --- /dev/null +++ b/net-p2p/retroshare/files/rsinit.h @@ -0,0 +1,78 @@ + +#ifndef RETROSHARE_RSINIT_H +#define RETROSHARE_RSINIT_H + +class accountId +{ + public: + std::string pgpId; + std::string pgpName; + std::string pgpEmail; + + std::string sslId; + std::string location; +}; + + +class RsInitConfig +{ + public: + /* Directories (SetupBaseDir) */ + static std::string basedir; + static std::string homePath; +#ifdef WINDOWS_SYS + static bool portable; + static bool isWindowsXP; +#endif + + static std::list<accountId> accountIds; + static std::string preferedId; + + /* for certificate creation */ + //static std::string gpgPasswd; + +#ifndef WINDOWS_SYS + static int lockHandle; +#else + static HANDLE lockHandle; +#endif + + /* These fields are needed for login */ + static std::string loginId; + static std::string configDir; + static std::string load_cert; + static std::string load_key; + + static std::string passwd; + + static bool autoLogin; /* autoLogin allowed */ + static bool startMinimised; /* Icon or Full Window */ + + /* Key Parameters that must be set before + * RetroShare will start up: + */ + + /* Listening Port */ + static bool forceExtPort; + static bool forceLocalAddr; + static unsigned short port; + static char inet[256]; + + /* Logging */ + static bool haveLogFile; + static bool outStderr; + static bool haveDebugLevel; + static int debugLevel; + static std::string logfname; + + static bool firsttime_run; + static bool load_trustedpeer; + static std::string load_trustedpeer_file; + + static bool udpListenerOnly; + + static std::string RetroShareLink; +}; + +#endif + |