[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kopete/libkopete
From: Stefan Gehn <sgehn () gmx ! net>
Date: 2003-10-31 22:52:03
[Download RAW message or body]
CVS commit by metz:
Add KopeteContact::setStatusDescription(const QString &) to allow setting description \
after setting onlinestatus, needed at least for OSCAR
M +9 -1 kopetecontact.cpp 1.160
M +8 -1 kopetecontact.h 1.119
--- kdenetwork/kopete/libkopete/kopetecontact.cpp #1.159:1.160
@@ -171,4 +171,12 @@ void KopeteContact::setOnlineStatus( con
}
+void KopeteContact::setStatusDescription( const QString &statusDescription )
+{
+ if( statusDescription == d->statusDescription )
+ return;
+
+ d->statusDescription = statusDescription;
+}
+
QString KopeteContact::statusDescription() const
{
--- kdenetwork/kopete/libkopete/kopetecontact.h #1.118:1.119
@@ -133,4 +133,11 @@ public:
void setOnlineStatus(const KopeteOnlineStatus &status,
const QString &statusDescription=QString::null);
+
+ /**
+ * Set the contact's status description for its current status
+ * This is handy if a protocol receives its status description
+ * after the status change itself
+ */
+ void setStatusDescription( const QString &statusDescription );
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic