[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdenetwork/kopete/kopete
From: Engin Aydogan <engin () bzzzt ! biz>
Date: 2005-09-26 23:36:53
Message-ID: 1127777813.039091.15700.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 464336 by engin:
Clarify DCOP reply for messageContact. With previous reply client could not tell if \
the user the message is being sent to exist or not online. Now client can distinguish \
such a situtaion.
M +7 -2 kopeteiface.cpp
--- branches/KDE/3.5/kdenetwork/kopete/kopete/kopeteiface.cpp #464335:464336
@@ -89,10 +89,15 @@
QString KopeteIface::messageContact( const QString &contactId, const QString \
&messageText ) {
Kopete::MetaContact *mc = Kopete::ContactList::self()->findMetaContactByContactId( \
contactId );
- if ( mc && mc->isReachable() )
+ if ( !mc )
+ {
+ return "No such contact.";
+ }
+
+ if ( mc->isReachable() )
Kopete::ContactList::self()->messageContact( contactId, messageText );
else
- return "Unable to send message. The contact is not reachable";
+ return "The contact is not reachable";
//Default return value
return QString::null;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic