mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-11 06:45:50 -05:00
- added ability to plugins to add a tab in transfers dialog
- improved VOIP plugin to add RTT statistics tab to RS gui. - added comments in rsplugins.h - added big tooltip in transfers that would be stuck in checking... mode git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4979 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c907a5846c
commit
826e8f3728
8 changed files with 102 additions and 17 deletions
|
|
@ -1,9 +1,13 @@
|
|||
#include <retroshare/rsplugin.h>
|
||||
#include <retroshare-gui/RsAutoUpdatePage.h>
|
||||
#include <QTranslator>
|
||||
#include <QApplication>
|
||||
#include <QString>
|
||||
|
||||
#include "VOIPPlugin.h"
|
||||
#include "interface/rsvoip.h"
|
||||
|
||||
#include "gui/VoipStatistics.h"
|
||||
#include "gui/AudioInputConfig.h"
|
||||
|
||||
static void *inited = new VOIPPlugin() ;
|
||||
|
|
@ -42,6 +46,15 @@ ConfigPage *VOIPPlugin::qt_config_page() const
|
|||
return new AudioInputConfig() ;
|
||||
}
|
||||
|
||||
std::string VOIPPlugin::qt_transfers_tab_name() const
|
||||
{
|
||||
return QObject::tr("RTT Statistics").toStdString() ;
|
||||
}
|
||||
RsAutoUpdatePage *VOIPPlugin::qt_transfers_tab() const
|
||||
{
|
||||
return new VoipStatistics ;
|
||||
}
|
||||
|
||||
RsPQIService *VOIPPlugin::rs_pqi_service() const
|
||||
{
|
||||
if(mVoip == NULL)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ class VOIPPlugin: public RsPlugin
|
|||
virtual RsPQIService *rs_pqi_service() const ;
|
||||
virtual uint16_t rs_service_id() const { return RS_SERVICE_TYPE_VOIP_PLUGIN ; }
|
||||
virtual ConfigPage *qt_config_page() const ;
|
||||
virtual RsAutoUpdatePage *qt_transfers_tab() const ;
|
||||
virtual std::string qt_transfers_tab_name() const ;
|
||||
|
||||
virtual QTranslator *qt_translator(QApplication *app, const QString& languageCode) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -154,6 +154,8 @@ p3VoRS::p3VoRS(RsPluginHandler *handler)
|
|||
|
||||
int p3VoRS::tick()
|
||||
{
|
||||
std::cerr << "ticking p3VoRS" << std::endl;
|
||||
|
||||
processIncoming();
|
||||
sendPackets();
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,32 @@ std::ostream& RsVoipPongItem::print(std::ostream &out, uint16_t indent)
|
|||
printRsItemEnd(out, "RsVoipPongItem", indent);
|
||||
return out;
|
||||
}
|
||||
std::ostream& RsVoipProtocolItem::print(std::ostream &out, uint16_t indent)
|
||||
{
|
||||
printRsItemBase(out, "RsVoipProtocolItem", indent);
|
||||
uint16_t int_Indent = indent + 2;
|
||||
printIndent(out, int_Indent);
|
||||
out << "flags: " << flags << std::endl;
|
||||
|
||||
printIndent(out, int_Indent);
|
||||
out << "protocol: " << std::hex << protocol << std::dec << std::endl;
|
||||
|
||||
printRsItemEnd(out, "RsVoipProtocolItem", indent);
|
||||
return out;
|
||||
}
|
||||
std::ostream& RsVoipDataItem::print(std::ostream &out, uint16_t indent)
|
||||
{
|
||||
printRsItemBase(out, "RsVoipDataItem", indent);
|
||||
uint16_t int_Indent = indent + 2;
|
||||
printIndent(out, int_Indent);
|
||||
out << "flags: " << flags << std::endl;
|
||||
|
||||
printIndent(out, int_Indent);
|
||||
out << "data size: " << std::hex << data_size << std::dec << std::endl;
|
||||
|
||||
printRsItemEnd(out, "RsVoipDataItem", indent);
|
||||
return out;
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
uint32_t RsVoipDataItem::serial_size() const
|
||||
|
|
|
|||
|
|
@ -122,9 +122,8 @@ class RsVoipPongItem: public RsVoipItem
|
|||
virtual bool serialise(void *data,uint32_t& size) ;
|
||||
virtual uint32_t serial_size() const ;
|
||||
|
||||
virtual ~RsVoipPongItem();
|
||||
virtual void clear();
|
||||
virtual std::ostream& print(std::ostream &out, uint16_t indent = 0);
|
||||
virtual ~RsVoipPongItem() {}
|
||||
virtual std::ostream& print(std::ostream &out, uint16_t indent = 0);
|
||||
|
||||
uint32_t mSeqNo;
|
||||
uint64_t mPingTS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue