mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed debug msgs and compilation warnings. Added missing include
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5488 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5d4901c3c5
commit
afca515165
@ -13,7 +13,7 @@ lessThan(QT_VER_MAJ, 4) | lessThan(QT_VER_MIN, 7) | win32 {
|
||||
QT += multimedia
|
||||
}
|
||||
|
||||
INCLUDEPATH += ../../retroshare-gui/src/temp/ui
|
||||
INCLUDEPATH += ../../retroshare-gui/src/temp/ui ../../libretroshare/src
|
||||
|
||||
#################################### Windows #####################################
|
||||
|
||||
|
@ -61,7 +61,7 @@ namespace QtSpeex {
|
||||
void networkPacketReady();
|
||||
|
||||
protected:
|
||||
virtual qint64 readData(char *data, qint64 maxSize) {return false;} //not used for input processor
|
||||
virtual qint64 readData(char * /*data*/, qint64 /*maxSize*/) {return false;} //not used for input processor
|
||||
virtual qint64 writeData(const char *data, qint64 maxSize);
|
||||
virtual bool isSequential() const;
|
||||
|
||||
@ -97,7 +97,7 @@ namespace QtSpeex {
|
||||
|
||||
protected:
|
||||
virtual qint64 readData(char *data, qint64 maxSize);
|
||||
virtual qint64 writeData(const char *data, qint64 maxSize) {return 0;} //not used for output processor
|
||||
virtual qint64 writeData(const char * /*data*/, qint64 /*maxSize*/) {return 0;} //not used for output processor
|
||||
virtual bool isSequential() const;
|
||||
|
||||
signals:
|
||||
|
@ -166,7 +166,9 @@ p3VoRS::p3VoRS(RsPluginHandler *handler,PluginNotifier *notifier)
|
||||
|
||||
int p3VoRS::tick()
|
||||
{
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "ticking p3VoRS" << std::endl;
|
||||
#endif
|
||||
|
||||
processIncoming();
|
||||
sendPackets();
|
||||
@ -236,7 +238,9 @@ int p3VoRS::sendVoipRinging(const std::string& peer_id)
|
||||
|
||||
int p3VoRS::sendVoipData(const std::string& peer_id,const RsVoipDataChunk& chunk)
|
||||
{
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "Sending " << chunk.size << " bytes of voip data." << std::endl;
|
||||
#endif
|
||||
|
||||
RsVoipDataItem *item = new RsVoipDataItem ;
|
||||
|
||||
@ -314,19 +318,27 @@ void p3VoRS::handleProtocol(RsVoipProtocolItem *item)
|
||||
|
||||
switch(item->protocol)
|
||||
{
|
||||
case RsVoipProtocolItem::VoipProtocol_Ring: std::cerr << "p3VoRS::handleProtocol(): Received protocol ring item." << std::endl;
|
||||
mNotify->notifyReceivedVoipInvite(item->PeerId());
|
||||
case RsVoipProtocolItem::VoipProtocol_Ring: mNotify->notifyReceivedVoipInvite(item->PeerId());
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "p3VoRS::handleProtocol(): Received protocol ring item." << std::endl;
|
||||
#endif
|
||||
break ;
|
||||
|
||||
case RsVoipProtocolItem::VoipProtocol_Ackn: std::cerr << "p3VoRS::handleProtocol(): Received protocol accept call" << std::endl;
|
||||
mNotify->notifyReceivedVoipAccept(item->PeerId());
|
||||
case RsVoipProtocolItem::VoipProtocol_Ackn: mNotify->notifyReceivedVoipAccept(item->PeerId());
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "p3VoRS::handleProtocol(): Received protocol accept call" << std::endl;
|
||||
#endif
|
||||
break ;
|
||||
|
||||
case RsVoipProtocolItem::VoipProtocol_Close: std::cerr << "p3VoRS::handleProtocol(): Received protocol Close call." << std::endl;
|
||||
mNotify->notifyReceivedVoipHangUp(item->PeerId());
|
||||
case RsVoipProtocolItem::VoipProtocol_Close: mNotify->notifyReceivedVoipHangUp(item->PeerId());
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "p3VoRS::handleProtocol(): Received protocol Close call." << std::endl;
|
||||
#endif
|
||||
break ;
|
||||
default:
|
||||
#ifdef DEBUG_VORS
|
||||
std::cerr << "p3VoRS::handleProtocol(): Received protocol item # " << item->protocol << ": not handled yet ! Sorry" << std::endl;
|
||||
#endif
|
||||
break ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user