RetroShare/plugins/LinksCloud/LinksCloudPlugin.h
csoler ccfbfa9984 Improvement of the plugin system:
- Added configuration saving for plugin manager and serialization methods
	- added a list of accepted plugin hashes
	- added plugin widget for each plugin in settings, to allow enabling/disabling plugins
	- updated LinkCloud plugin to new rsPlugin class
	- put the addconfiguration for plugin manager in rsinit.cc a bit earlier to allow to load 
		the list of accepted hashes early enough
	- added icon for disabled plugins



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4393 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-07-05 20:29:07 +00:00

30 lines
848 B
C++

#pragma once
#include <retroshare/rsplugin.h>
#include <gui/mainpage.h>
#include "p3ranking.h"
class LinksCloudPlugin: public RsPlugin
{
public:
LinksCloudPlugin() ;
virtual ~LinksCloudPlugin() {}
virtual RsCacheService *rs_cache_service() const ;
virtual MainPage *qt_page() const ;
virtual QIcon *qt_icon() const ;
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_RANK ; }
virtual void getPluginVersion(int& major,int& minor,int& svn_rev) const ;
virtual std::string configurationFileName() const { return std::string() ; }
virtual std::string getShortPluginDescription() const ;
virtual std::string getPluginName() const { return "LinksCloud" ; }
private:
mutable p3Ranking *mRanking ;
mutable MainPage *mainpage ;
mutable QIcon *mIcon ;
};