Added service pointer for forums to the plugin interface.

FeedReader:
- Used the forums pointer from the plugin interface instead of the global pointer

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6982 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-01-03 15:05:48 +00:00
parent 2a9a6f8a75
commit 76b3ccc1a5
6 changed files with 109 additions and 85 deletions

View file

@ -83,8 +83,9 @@ FeedReaderPlugin::FeedReaderPlugin()
mFeedNotify = NULL;
}
void FeedReaderPlugin::setInterfaces(RsPlugInInterfaces &/*interfaces*/)
void FeedReaderPlugin::setInterfaces(RsPlugInInterfaces &interfaces)
{
mInterfaces = interfaces;
}
ConfigPage *FeedReaderPlugin::qt_config_page() const
@ -112,7 +113,7 @@ FeedNotify *FeedReaderPlugin::qt_feedNotify()
RsPQIService *FeedReaderPlugin::rs_pqi_service() const
{
if (mFeedReader == NULL) {
mFeedReader = new p3FeedReader(mPlugInHandler);
mFeedReader = new p3FeedReader(mPlugInHandler, mInterfaces.mForums);
rsFeedReader = mFeedReader;
mNotify = new FeedReaderNotify();