mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-15 17:37:12 -05:00
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
|
#pragma once
|
||
|
|
||
|
#include <retroshare/rsplugin.h>
|
||
|
#include <gui/mainpage.h>
|
||
|
#include "p3Voip.h"
|
||
|
|
||
|
class VOIPPlugin: public RsPlugin
|
||
|
{
|
||
|
public:
|
||
|
VOIPPlugin() ;
|
||
|
virtual ~VOIPPlugin() {}
|
||
|
|
||
|
virtual RsPQIService *rs_pqi_service() const ;
|
||
|
virtual MainPage *qt_page() const ;
|
||
|
virtual QIcon *qt_icon() const ;
|
||
|
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_VOIP ; }
|
||
|
|
||
|
virtual QTranslator *qt_translator(QApplication *app, const QString& languageCode) const;
|
||
|
|
||
|
virtual void getPluginVersion(int& major,int& minor,int& svn_rev) const ;
|
||
|
virtual void setPlugInHandler(RsPluginHandler *pgHandler);
|
||
|
|
||
|
virtual std::string configurationFileName() const { return "voip.cfg" ; }
|
||
|
|
||
|
virtual std::string getShortPluginDescription() const ;
|
||
|
virtual std::string getPluginName() const;
|
||
|
virtual void setInterfaces(RsPlugInInterfaces& interfaces);
|
||
|
|
||
|
private:
|
||
|
mutable p3Voip *mVoip ;
|
||
|
mutable RsPluginHandler *mPlugInHandler;
|
||
|
mutable RsPeers* mPeers;
|
||
|
mutable MainPage* mainpage ;
|
||
|
mutable QIcon* mIcon ;
|
||
|
};
|
||
|
|