[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kopete/kopete
From: Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date: 2005-02-09 9:28:53
Message-ID: 20050209092853.0B4EB1CF92 () office ! kde ! org
[Download RAW message or body]
CVS commit by wstephens:
Change to correctly infer which contacts are in KABC, now that all contacts have metacontact ids.
M +5 -5 kimifaceimpl.cpp 1.26
--- kdenetwork/kopete/kopete/kimifaceimpl.cpp #1.25:1.26
@@ -59,5 +59,5 @@ QStringList KIMIfaceImpl::allContacts()
for( ; it.current(); ++it )
{
- if ( !it.current()->metaContactId().isNull() )
+ if ( !it.current()->metaContactId().contains(':') )
result.append( it.current()->metaContactId() );
}
@@ -73,5 +73,5 @@ QStringList KIMIfaceImpl::reachableConta
for( ; it.current(); ++it )
{
- if ( it.current()->isReachable() && !it.current()->metaContactId().isNull() )
+ if ( it.current()->isReachable() && !it.current()->metaContactId().contains(':') )
result.append( it.current()->metaContactId() );
}
@@ -87,5 +87,5 @@ QStringList KIMIfaceImpl::onlineContacts
for( ; it.current(); ++it )
{
- if ( it.current()->isOnline() && !it.current()->metaContactId().isNull() )
+ if ( it.current()->isOnline() && !it.current()->metaContactId().contains(':') )
result.append( it.current()->metaContactId() );
}
@@ -101,5 +101,5 @@ QStringList KIMIfaceImpl::fileTransferCo
for( ; it.current(); ++it )
{
- if ( it.current()->canAcceptFiles() && !it.current()->metaContactId().isNull() )
+ if ( it.current()->canAcceptFiles() && !it.current()->metaContactId().contains(':') )
result.append( it.current()->metaContactId() );
}
@@ -339,5 +339,5 @@ void KIMIfaceImpl::slotMetaContactAdded(
void KIMIfaceImpl::slotContactStatusChanged( Kopete::MetaContact *mc )
{
- if ( !mc->metaContactId().isNull() )
+ if ( !mc->metaContactId().contains( ':' ) )
{
int p = -1;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic