Added version information of the libraries to HelpDialog.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8446 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-06-14 17:45:26 +00:00
parent b0f7b70ea2
commit 0ca37f6756
14 changed files with 435 additions and 286 deletions

View file

@ -69,6 +69,7 @@ class RsControl /* The Main Interface Class - for controlling the server */
/****************************************/
virtual bool getPeerCryptoDetails(const RsPeerId& ssl_id,RsPeerCryptoParams& params) = 0;
virtual void getLibraries(std::list<RsLibraryInfo> &libraries) = 0;
protected:
RsControl() {} // should not be used, hence it's private.

View file

@ -191,6 +191,7 @@ class RsPlugin
virtual std::string getShortPluginDescription() const = 0 ;
virtual std::string getPluginName() const = 0 ;
virtual void getPluginVersion(int& major,int& minor, int& build, int& svn_rev) const = 0 ;
virtual void getLibraries(std::list<RsLibraryInfo> & /*libraries*/) {}
//
//========================== Plugin Interface ================================//

View file

@ -388,4 +388,18 @@ public:
unsigned int retries;
};
/* class for the information about a used library */
class RsLibraryInfo
{
public:
RsLibraryInfo() {}
RsLibraryInfo(const std::string &name, const std::string &version) :
mName(name), mVersion(version)
{}
public:
std::string mName;
std::string mVersion;
};
#endif