[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.3/kdenetwork/kopete/protocols/bonjour
From: Tejas Dinkar <tejasdinkar () gmail ! com>
Date: 2009-09-13 18:50:41
Message-ID: 1252867841.236005.19709.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1023027 by dinkar:
Backport of r1023025
Solved the case of the disappearing first message
M +8 -0 bonjourcontactconnection.cpp
M +3 -0 bonjourcontactconnection.h
--- branches/KDE/4.3/kdenetwork/kopete/protocols/bonjour/bonjourcontactconnection.cpp #1023026:1023027
@@ -189,8 +189,16 @@
getStreamTag(token);
break;
}
+
+ if (moreTokensAvailable())
+ dataInSocket();
}
+bool BonjourContactConnection::moreTokensAvailable()
+{
+ return ! parser.atEnd();
+}
+
void BonjourContactConnection::getStreamTag(BonjourXmlToken &token)
{
--- branches/KDE/4.3/kdenetwork/kopete/protocols/bonjour/bonjourcontactconnection.h #1023026:1023027
@@ -80,6 +80,9 @@
// Set the Socket
void setSocket(QTcpSocket *socket);
+ // Determine if there is more data available
+ bool moreTokensAvailable();
+
/**
* @brief Description of A Token
*
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic