- Added basic infrastructure to plugin system in libretroshare and retroshare-gui.

- ported LinksCloud to a new plugin, and removed it from main sources

Next moves:
- add gui for managing plugins
- handle windows compilation



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4275 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-06-16 21:59:26 +00:00
parent 3925a7114a
commit a2c91a7924
28 changed files with 4676 additions and 243 deletions

View file

@ -0,0 +1,25 @@
#pragma once
#include <dbase/cachestrapper.h>
// The following class abstracts the construction of a cache service. The user only has to
// supply RS with a type ID. If the ID is already in use, RS will complain.
//
class RsCacheService: public CacheSource, public CacheStore, public p3Config
{
public:
RsCacheService(uint16_t type,uint32_t config_type,uint32_t tick_delay_in_seconds) ;
uint32_t tickDelay() const { return _tick_delay_in_seconds ; }
virtual void tick() {}
// Functions from p3config
//
virtual RsSerialiser *setupSerialiser() { return NULL ; }
virtual bool saveList(bool&, std::list<RsItem*>&) { return false ;}
virtual bool loadList(std::list<RsItem*>&) { return false ;}
private:
uint32_t _tick_delay_in_seconds ;
};