fixed compilation of FeedReader plugin

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7301 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-04-23 20:48:02 +00:00
parent 7d13a7f85b
commit 71a02003be
3 changed files with 19 additions and 2 deletions

View File

@ -38,7 +38,7 @@ RsFeedReader *rsFeedReader = NULL;
*********/
p3FeedReader::p3FeedReader(RsPluginHandler* pgHandler, RsForums *forums)
: RsPQIService(RS_SERVICE_TYPE_PLUGIN_FEEDREADER, CONFIG_TYPE_FEEDREADER, 5, pgHandler),
: RsPQIService(RS_SERVICE_TYPE_PLUGIN_FEEDREADER, 5, pgHandler),
mFeedReaderMtx("p3FeedReader"), mDownloadMutex("p3FeedReaderDownload"), mProcessMutex("p3FeedReaderProcess"), mPreviewMutex("p3FeedReaderPreview")
{
mNextFeedId = 1;
@ -227,6 +227,22 @@ uint32_t p3FeedReader::getStandardStorageTime()
return mStandardStorageTime;
}
RsServiceInfo p3FeedReader::getServiceInfo()
{
const std::string FEEDREADER_APP_NAME = "FEEDREADER";
const uint16_t FEEDREADER_APP_MAJOR_VERSION = 1;
const uint16_t FEEDREADER_APP_MINOR_VERSION = 0;
const uint16_t FEEDREADER_MIN_MAJOR_VERSION = 1;
const uint16_t FEEDREADER_MIN_MINOR_VERSION = 0;
return RsServiceInfo(RS_SERVICE_TYPE_PLUGIN_FEEDREADER,
FEEDREADER_APP_NAME,
FEEDREADER_APP_MAJOR_VERSION,
FEEDREADER_APP_MINOR_VERSION,
FEEDREADER_MIN_MAJOR_VERSION,
FEEDREADER_MIN_MINOR_VERSION);
}
void p3FeedReader::setStandardStorageTime(uint32_t storageTime)
{
RsStackMutex stack(mFeedReaderMtx); /******* LOCK STACK MUTEX *********/

View File

@ -74,6 +74,7 @@ public:
/****************** p3Service STUFF ******************/
virtual int tick();
virtual RsServiceInfo getServiceInfo() ;
/****************** internal STUFF *******************/
bool getFeedToDownload(RsFeedReaderFeed &feed, const std::string &neededFeedId);

View File

@ -24,7 +24,7 @@
#include "serialiser/rsserviceids.h"
#include "serialiser/rsserial.h"
#include "serialiser/rstlvtypes.h"
#include "serialiser/rstlvstring.h"
#include "p3FeedReader.h"