2012-02-15 16:17:18 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <retroshare/rsplugin.h>
|
2012-02-19 10:07:47 -05:00
|
|
|
#include "services/p3vors.h"
|
2012-02-15 16:17:18 -05:00
|
|
|
|
2012-02-25 13:15:36 -05:00
|
|
|
class PluginGUIHandler ;
|
|
|
|
class PluginNotifier ;
|
|
|
|
|
2012-02-15 16:17:18 -05:00
|
|
|
class VOIPPlugin: public RsPlugin
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
VOIPPlugin() ;
|
|
|
|
virtual ~VOIPPlugin() {}
|
|
|
|
|
|
|
|
virtual RsPQIService *rs_pqi_service() const ;
|
2012-02-18 15:30:10 -05:00
|
|
|
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_VOIP_PLUGIN ; }
|
2012-02-18 10:56:37 -05:00
|
|
|
virtual ConfigPage *qt_config_page() const ;
|
2012-02-21 16:53:25 -05:00
|
|
|
virtual RsAutoUpdatePage *qt_transfers_tab() const ;
|
|
|
|
virtual std::string qt_transfers_tab_name() const ;
|
2012-02-25 07:18:40 -05:00
|
|
|
virtual PopupChatDialog *qt_allocate_new_popup_chat_dialog() const ;
|
2012-08-15 09:54:00 -04:00
|
|
|
|
|
|
|
virtual QIcon *qt_icon() const;
|
2012-02-15 16:17:18 -05:00
|
|
|
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:
|
2012-02-19 10:07:47 -05:00
|
|
|
mutable p3VoRS *mVoip ;
|
2012-02-15 16:17:18 -05:00
|
|
|
mutable RsPluginHandler *mPlugInHandler;
|
|
|
|
mutable RsPeers* mPeers;
|
2012-02-18 10:56:37 -05:00
|
|
|
mutable ConfigPage *config_page ;
|
2012-08-15 09:54:00 -04:00
|
|
|
mutable QIcon *mIcon;
|
2012-02-25 13:15:36 -05:00
|
|
|
|
|
|
|
PluginNotifier *mPluginNotifier ;
|
|
|
|
PluginGUIHandler *mPluginGUIHandler ;
|
2012-02-15 16:17:18 -05:00
|
|
|
};
|
|
|
|
|