aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppPresence.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2009-09-07 15:17:44 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2009-09-07 15:17:44 +0000
commit0b606b76e679c587fb14c2472de1b809954f29bf (patch)
treee5e62344d87a95d9fc1601bea953befe7512ca0d /source/QXmppPresence.cpp
parentda98f95e3130149725c3e96313619404dd7debd3 (diff)
downloadqxmpp-0b606b76e679c587fb14c2472de1b809954f29bf.tar.gz
XEP-0054: vcard-temp implementation and other code cleanups
Diffstat (limited to 'source/QXmppPresence.cpp')
-rw-r--r--source/QXmppPresence.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/source/QXmppPresence.cpp b/source/QXmppPresence.cpp
index fa4c3eb4..f6348a51 100644
--- a/source/QXmppPresence.cpp
+++ b/source/QXmppPresence.cpp
@@ -26,7 +26,8 @@
#include "QXmppUtils.h"
#include <QtDebug>
-QXmppPresence::QXmppPresence(QXmppPresence::Type type, const QXmppPresence::Status& status)
+QXmppPresence::QXmppPresence(QXmppPresence::Type type,
+ const QXmppPresence::Status& status)
: QXmppStanza(), m_type(type), m_status(status)
{
@@ -178,15 +179,17 @@ void QXmppPresence::setTypeFromStr(const QString& str)
else
{
type = static_cast<QXmppPresence::Type>(-1);
- qWarning("QXmppPresence::setTypeFromStr() invalid input string type: %s", qPrintable(str));
+ qWarning("QXmppPresence::setTypeFromStr() invalid input string type: %s",
+ qPrintable(str));
setType(type);
return;
}
}
QXmppPresence::Status::Status(QXmppPresence::Status::Type type,
- const QString statusText, int priority): m_type(type),
- m_statusText(statusText), m_priority(priority)
+ const QString statusText, int priority) :
+ m_type(type),
+ m_statusText(statusText), m_priority(priority)
{
}
@@ -269,7 +272,8 @@ QString QXmppPresence::Status::getTypeStr() const
text = "chat";
break;
default:
- qWarning("QXmppPresence::Status::getTypeStr() invalid type %d", (int)getType());
+ qWarning("QXmppPresence::Status::getTypeStr() invalid type %d",
+ (int)getType());
break;
}
return text;