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() {}
|
|
|
|
|
2014-08-26 18:16:32 -04:00
|
|
|
virtual p3Service *p3_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-09-04 17:57:10 -04:00
|
|
|
virtual QDialog *qt_about_page() const ;
|
2012-02-21 16:53:25 -05:00
|
|
|
virtual RsAutoUpdatePage *qt_transfers_tab() const ;
|
|
|
|
virtual std::string qt_transfers_tab_name() const ;
|
2014-01-01 19:56:46 -05:00
|
|
|
virtual ChatWidgetHolder *qt_get_chat_widget_holder(ChatWidget *chatWidget) const ;
|
2012-08-15 09:54:00 -04:00
|
|
|
|
|
|
|
virtual QIcon *qt_icon() const;
|
2012-10-12 14:44:02 -04:00
|
|
|
virtual QTranslator *qt_translator(QApplication *app, const QString& languageCode, const QString& externalDir) const;
|
2012-10-21 17:38:55 -04:00
|
|
|
virtual void qt_sound_events(SoundEvents &events) const;
|
2012-02-15 16:17:18 -05:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|