mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
9efc43f41c
commit
cef70ef3df
@ -86,6 +86,13 @@ FeedReaderPlugin::FeedReaderPlugin()
|
|||||||
void FeedReaderPlugin::setInterfaces(RsPlugInInterfaces &interfaces)
|
void FeedReaderPlugin::setInterfaces(RsPlugInInterfaces &interfaces)
|
||||||
{
|
{
|
||||||
mInterfaces = 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
|
ConfigPage *FeedReaderPlugin::qt_config_page() const
|
||||||
@ -110,20 +117,6 @@ FeedNotify *FeedReaderPlugin::qt_feedNotify()
|
|||||||
return mFeedNotify;
|
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()
|
void FeedReaderPlugin::stop()
|
||||||
{
|
{
|
||||||
if (mFeedReader) {
|
if (mFeedReader) {
|
||||||
|
@ -36,7 +36,8 @@ public:
|
|||||||
FeedReaderPlugin();
|
FeedReaderPlugin();
|
||||||
|
|
||||||
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_PLUGIN_FEEDREADER; }
|
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 void stop();
|
||||||
|
|
||||||
virtual MainPage *qt_page() const;
|
virtual MainPage *qt_page() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user