mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-29 03:46:46 -05:00
removed calls to getServiceStatistics from GxsUserNotify and replaced by info collected by GxsGroupFrameDialog
This commit is contained in:
parent
c60f1d1331
commit
b0e61376f1
14 changed files with 47 additions and 62 deletions
|
|
@ -109,7 +109,7 @@ QString GxsChannelDialog::getHelpString() const
|
|||
|
||||
UserNotify *GxsChannelDialog::createUserNotify(QObject *parent)
|
||||
{
|
||||
return new GxsChannelUserNotify(rsGxsChannels, parent);
|
||||
return new GxsChannelUserNotify(rsGxsChannels,this, parent);
|
||||
}
|
||||
|
||||
void GxsChannelDialog::shareOnChannel(const RsGxsGroupId& channel_id,const QList<RetroShareLink>& file_links)
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#include "GxsChannelUserNotify.h"
|
||||
#include "gui/MainWindow.h"
|
||||
|
||||
GxsChannelUserNotify::GxsChannelUserNotify(RsGxsIfaceHelper *ifaceImpl, QObject *parent) :
|
||||
GxsUserNotify(ifaceImpl, parent)
|
||||
GxsChannelUserNotify::GxsChannelUserNotify(RsGxsIfaceHelper *ifaceImpl, const GxsGroupFrameDialog *g, QObject *parent) :
|
||||
GxsUserNotify(ifaceImpl, g, parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -35,11 +35,6 @@ bool GxsChannelUserNotify::hasSetting(QString *name, QString *group)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool GxsChannelUserNotify::getServiceStatistics(GxsServiceStatistic& stat)
|
||||
{
|
||||
return rsGxsChannels->getChannelServiceStatistics(stat);
|
||||
}
|
||||
|
||||
QIcon GxsChannelUserNotify::getIcon()
|
||||
{
|
||||
return QIcon(":/icons/png/channel.png");
|
||||
|
|
|
|||
|
|
@ -22,16 +22,16 @@
|
|||
#define GXSCHANNELUSERNOTIFY_H
|
||||
|
||||
#include "gui/gxs/GxsUserNotify.h"
|
||||
#include "gui/gxs/GxsGroupFrameDialog.h"
|
||||
|
||||
class GxsChannelUserNotify : public GxsUserNotify
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GxsChannelUserNotify(RsGxsIfaceHelper *ifaceImpl, QObject *parent = 0);
|
||||
GxsChannelUserNotify(RsGxsIfaceHelper *ifaceImpl, const GxsGroupFrameDialog *g, QObject *parent = 0);
|
||||
|
||||
virtual bool hasSetting(QString *name, QString *group);
|
||||
virtual bool getServiceStatistics(GxsServiceStatistic& stat) override;
|
||||
|
||||
private:
|
||||
virtual QIcon getIcon();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue