Fixed load/save config of FeedReader plugin

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7574 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-09-28 22:33:17 +00:00
parent 9efc43f41c
commit cef70ef3df
2 changed files with 9 additions and 15 deletions

View File

@ -86,6 +86,13 @@ FeedReaderPlugin::FeedReaderPlugin()
void FeedReaderPlugin::setInterfaces(RsPlugInInterfaces &interfaces)
{
mInterfaces = interfaces;
//Todo: Replace with gxs forums
mFeedReader = new p3FeedReader(mPlugInHandler, NULL /*mInterfaces.mForums*/);
rsFeedReader = mFeedReader;
mNotify = new FeedReaderNotify();
mFeedReader->setNotify(mNotify);
}
ConfigPage *FeedReaderPlugin::qt_config_page() const
@ -110,20 +117,6 @@ FeedNotify *FeedReaderPlugin::qt_feedNotify()
return mFeedNotify;
}
p3Service *FeedReaderPlugin::p3_service() const
{
if (mFeedReader == NULL) {
//Todo: Replace with gxs forums
mFeedReader = new p3FeedReader(mPlugInHandler, NULL /*mInterfaces.mForums*/);
rsFeedReader = mFeedReader;
mNotify = new FeedReaderNotify();
mFeedReader->setNotify(mNotify);
}
return mFeedReader;
}
void FeedReaderPlugin::stop()
{
if (mFeedReader) {

View File

@ -36,7 +36,8 @@ public:
FeedReaderPlugin();
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_PLUGIN_FEEDREADER; }
virtual p3Service *p3_service() const;
virtual p3Service *p3_service() const { return mFeedReader; }
virtual p3Config *p3_config() const { return mFeedReader; }
virtual void stop();
virtual MainPage *qt_page() const;