mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
fix for windows plugin system
uses call back to expose the retroshare interface to plugins git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4633 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2173ee0d2e
commit
c1af9b13ad
14 changed files with 179 additions and 52 deletions
|
@ -27,13 +27,22 @@ LinksCloudPlugin::LinksCloudPlugin()
|
|||
{
|
||||
mRanking = NULL ;
|
||||
mainpage = NULL ;
|
||||
mIcon = NULL ;
|
||||
mIcon = NULL ;
|
||||
mPlugInHandler = NULL;
|
||||
mPeers = NULL;
|
||||
mFiles = NULL;
|
||||
}
|
||||
|
||||
void LinksCloudPlugin::setInterfaces(RsPlugInInterfaces &interfaces){
|
||||
|
||||
mPeers = interfaces.mPeers;
|
||||
mFiles = interfaces.mFiles;
|
||||
}
|
||||
|
||||
MainPage *LinksCloudPlugin::qt_page() const
|
||||
{
|
||||
if(mainpage == NULL)
|
||||
mainpage = new LinksDialog ;
|
||||
mainpage = new LinksDialog(mPeers, mFiles) ;
|
||||
|
||||
return mainpage ;
|
||||
}
|
||||
|
@ -42,13 +51,18 @@ RsCacheService *LinksCloudPlugin::rs_cache_service() const
|
|||
{
|
||||
if(mRanking == NULL)
|
||||
{
|
||||
mRanking = new p3Ranking ; // , 3600 * 24 * 30 * 6); // 6 Months
|
||||
mRanking = new p3Ranking(mPlugInHandler) ; // , 3600 * 24 * 30 * 6); // 6 Months
|
||||
rsRanks = mRanking ;
|
||||
}
|
||||
|
||||
return mRanking ;
|
||||
}
|
||||
|
||||
void LinksCloudPlugin::setPlugInHandler(RsPluginHandler *pgHandler){
|
||||
mPlugInHandler = pgHandler;
|
||||
|
||||
}
|
||||
|
||||
QIcon *LinksCloudPlugin::qt_icon() const
|
||||
{
|
||||
if(mIcon == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue