mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
7c4947fbfb
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8170 b45a01b8-16f6-495d-af2f-9b41ad6348cc
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <retroshare/rsplugin.h>
|
|
#include "services/p3vors.h"
|
|
|
|
class PluginGUIHandler ;
|
|
class PluginNotifier ;
|
|
|
|
class VOIPPlugin: public RsPlugin
|
|
{
|
|
public:
|
|
VOIPPlugin() ;
|
|
virtual ~VOIPPlugin() {}
|
|
|
|
virtual p3Service *p3_service() const ;
|
|
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_VOIP_PLUGIN ; }
|
|
virtual ConfigPage *qt_config_page() const ;
|
|
virtual QDialog *qt_about_page() const ;
|
|
virtual ChatWidgetHolder *qt_get_chat_widget_holder(ChatWidget *chatWidget) const ;
|
|
|
|
virtual QIcon *qt_icon() const;
|
|
virtual QTranslator *qt_translator(QApplication *app, const QString& languageCode, const QString& externalDir) const;
|
|
virtual void qt_sound_events(SoundEvents &events) const;
|
|
|
|
virtual void getPluginVersion(int& major, int& minor, int &build, 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 p3VoRS *mVoip ;
|
|
mutable RsPluginHandler *mPlugInHandler;
|
|
mutable RsPeers* mPeers;
|
|
mutable ConfigPage *config_page ;
|
|
mutable QIcon *mIcon;
|
|
|
|
PluginNotifier *mPluginNotifier ;
|
|
PluginGUIHandler *mPluginGUIHandler ;
|
|
};
|
|
|