mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-24 00:40:11 -05:00
added help window to VOIP plugin
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5511 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
345187262d
commit
f7da165b86
@ -1,4 +1,5 @@
|
|||||||
#include <retroshare/rsplugin.h>
|
#include <retroshare/rsplugin.h>
|
||||||
|
#include <util/rsversion.h>
|
||||||
#include <retroshare-gui/RsAutoUpdatePage.h>
|
#include <retroshare-gui/RsAutoUpdatePage.h>
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@ -20,7 +21,7 @@ static void *inited = new VOIPPlugin() ;
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
// This is *the* function required by RS plugin system to give RS access to the plugin.
|
// This is *the* functions required by RS plugin system to give RS access to the plugin.
|
||||||
// Be careful to:
|
// Be careful to:
|
||||||
// - always respect the C linkage convention
|
// - always respect the C linkage convention
|
||||||
// - always return an object of type RsPlugin*
|
// - always return an object of type RsPlugin*
|
||||||
@ -31,13 +32,19 @@ extern "C" {
|
|||||||
|
|
||||||
return (void*)p ;
|
return (void*)p ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This symbol contains the svn revision number grabbed from the executable.
|
||||||
|
// It will be tested by RS to load the plugin automatically, since it is safe to load plugins
|
||||||
|
// with same revision numbers, assuming that the revision numbers are up-to-date.
|
||||||
|
//
|
||||||
|
uint32_t RETROSHARE_PLUGIN_revision = SVN_REVISION_NUMBER ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VOIPPlugin::getPluginVersion(int& major,int& minor,int& svn_rev) const
|
void VOIPPlugin::getPluginVersion(int& major,int& minor,int& svn_rev) const
|
||||||
{
|
{
|
||||||
major = 5 ;
|
major = 5 ;
|
||||||
minor = 1 ;
|
minor = 3 ;
|
||||||
svn_rev = 4350 ;
|
svn_rev = SVN_REVISION_NUMBER ;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOIPPlugin::VOIPPlugin()
|
VOIPPlugin::VOIPPlugin()
|
||||||
@ -67,6 +74,30 @@ ConfigPage *VOIPPlugin::qt_config_page() const
|
|||||||
return new AudioInputConfig() ;
|
return new AudioInputConfig() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDialog *VOIPPlugin::qt_about_page() const
|
||||||
|
{
|
||||||
|
static QMessageBox *about_dialog = NULL ;
|
||||||
|
|
||||||
|
if(about_dialog == NULL)
|
||||||
|
{
|
||||||
|
about_dialog = new QMessageBox() ;
|
||||||
|
|
||||||
|
QString text ;
|
||||||
|
text += QObject::tr("<h3>RetroShare VOIP plugin</h3><br/> * Contributors: Cyril Soler, Josselin Jacquard<br/>") ;
|
||||||
|
text += QObject::tr("<br/>The VOIP plugin adds VOIP to the private chat window of RetroShare. to use it, proceed as follows:<UL>") ;
|
||||||
|
text += QObject::tr("<li> setup microphone levels using the configuration panel</li>") ;
|
||||||
|
text += QObject::tr("<li> check your microphone by looking at the VU-metters</li>") ;
|
||||||
|
text += QObject::tr("<li> in the private chat, enable sound input/output by clicking on the two VOIP icons</li></ul>") ;
|
||||||
|
text += QObject::tr("Your friend needs to run the plugin to talk/listen to you, or course.") ;
|
||||||
|
text += QObject::tr("<br/><br/>This is an experimental feature. Don't hesitate to send comments and suggestion to the RS dev team.") ;
|
||||||
|
|
||||||
|
about_dialog->setText(text) ;
|
||||||
|
about_dialog->setStandardButtons(QMessageBox::Ok) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
return about_dialog ;
|
||||||
|
}
|
||||||
|
|
||||||
PopupChatDialog *VOIPPlugin::qt_allocate_new_popup_chat_dialog() const
|
PopupChatDialog *VOIPPlugin::qt_allocate_new_popup_chat_dialog() const
|
||||||
{
|
{
|
||||||
AudioPopupChatDialog *ap = new AudioPopupChatDialog() ;
|
AudioPopupChatDialog *ap = new AudioPopupChatDialog() ;
|
||||||
|
@ -15,6 +15,7 @@ class VOIPPlugin: public RsPlugin
|
|||||||
virtual RsPQIService *rs_pqi_service() const ;
|
virtual RsPQIService *rs_pqi_service() const ;
|
||||||
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_VOIP_PLUGIN ; }
|
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_VOIP_PLUGIN ; }
|
||||||
virtual ConfigPage *qt_config_page() const ;
|
virtual ConfigPage *qt_config_page() const ;
|
||||||
|
virtual QDialog *qt_about_page() const ;
|
||||||
virtual RsAutoUpdatePage *qt_transfers_tab() const ;
|
virtual RsAutoUpdatePage *qt_transfers_tab() const ;
|
||||||
virtual std::string qt_transfers_tab_name() const ;
|
virtual std::string qt_transfers_tab_name() const ;
|
||||||
virtual PopupChatDialog *qt_allocate_new_popup_chat_dialog() const ;
|
virtual PopupChatDialog *qt_allocate_new_popup_chat_dialog() const ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user