summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Klapetek <martin.klapetek@gmail.com>2011-12-30 18:43:46 (GMT)
committerOlli Salli <ollisal@gmail.com>2011-12-30 18:43:56 (GMT)
commit6fe5e533ef7694770df652886a5c5ea18888a1a4 (patch)
treec110fd306feaea475033329c49904a6c8e99b340
parentb37682d809459466e726af2c830d57745af5e1eb (diff)
downloadtelepathy-qt4-6fe5e533ef7694770df652886a5c5ea18888a1a4.tar.gz
telepathy-qt4-6fe5e533ef7694770df652886a5c5ea18888a1a4.tar.xz
Add Tp::Presence::setStatusMessage()
Reviewed-by: Olli Salli <olli.salli@collabora.co.uk>
-rw-r--r--TelepathyQt/presence.cpp9
-rw-r--r--TelepathyQt/presence.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/TelepathyQt/presence.cpp b/TelepathyQt/presence.cpp
index 556e956..32fd91c 100644
--- a/TelepathyQt/presence.cpp
+++ b/TelepathyQt/presence.cpp
@@ -190,6 +190,15 @@ void Presence::setStatus(ConnectionPresenceType type, const QString &status,
mPriv->sp.statusMessage = statusMessage;
}
+void Presence::setStatusMessage(const QString &statusMessage)
+{
+ if (!isValid()) {
+ return;
+ }
+
+ mPriv->sp.statusMessage = statusMessage;
+}
+
SimplePresence Presence::barePresence() const
{
if (!isValid()) {
diff --git a/TelepathyQt/presence.h b/TelepathyQt/presence.h
index 4e5421c..f183fe3 100644
--- a/TelepathyQt/presence.h
+++ b/TelepathyQt/presence.h
@@ -62,6 +62,7 @@ public:
void setStatus(const SimplePresence &value);
void setStatus(ConnectionPresenceType type, const QString &status,
const QString &statusMessage);
+ void setStatusMessage(const QString &statusMessage);
SimplePresence barePresence() const;