jinglesession.cpp   jinglesession.cpp 
skipping to change at line 29 skipping to change at line 29
** **
** You should have received a copy of the GNU General Public License ** You should have received a copy of the GNU General Public License
** along with this program. If not, see http://www.gnu.org/licenses/. ** along with this program. If not, see http://www.gnu.org/licenses/.
** $JREEN_END_LICENSE$ ** $JREEN_END_LICENSE$
** **
*************************************************************************** */ *************************************************************************** */
#include "jinglesession_p.h" #include "jinglesession_p.h"
#include "../client.h" #include "../client.h"
#include "../util.h" #include "../util.h"
#include "../logger.h"
namespace Jreen namespace Jreen
{ {
JingleSessionContent *JingleSessionPrivate::findContent(const QString &name ) JingleSessionContent *JingleSessionPrivate::findContent(const QString &name )
{ {
for (int i = 0; i < contents.size(); ++i) { for (int i = 0; i < contents.size(); ++i) {
if (contents.at(i).name == name) if (contents.at(i).name == name)
return &contents[i]; return &contents[i];
} }
skipping to change at line 53 skipping to change at line 54
{ {
for (int i = 0; i < contents.size(); ++i) { for (int i = 0; i < contents.size(); ++i) {
if (contents[i].contentObject == content) if (contents[i].contentObject == content)
return &contents[i]; return &contents[i];
} }
return 0; return 0;
} }
void JingleSessionPrivate::handle(const Jingle::Ptr &jingle) void JingleSessionPrivate::handle(const Jingle::Ptr &jingle)
{ {
qDebug() << Q_FUNC_INFO; Logger::debug() << Q_FUNC_INFO;
if (jingle->action == Jingle::SessionAccept) { if (jingle->action == Jingle::SessionAccept) {
foreach (const Jingle::Content &remoteContent, jingle->conte nts) { foreach (const Jingle::Content &remoteContent, jingle->conte nts) {
JingleSessionContent *content = findContent(remoteCo ntent.name); JingleSessionContent *content = findContent(remoteCo ntent.name);
if (!content) { if (!content) {
qWarning("Unknown content with name %s", qPr intable(content->name)); qWarning("Unknown content with name %s", qPr intable(content->name));
continue; continue;
} }
if (!remoteContent.description) { if (!remoteContent.description) {
qWarning("Unknown content description with n ame %s", qPrintable(content->name)); qWarning("Unknown content description with n ame %s", qPrintable(content->name));
continue; continue;
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/