From 2676646d4744ccceab1063dc02d772a26a203c61 Mon Sep 17 00:00:00 2001 From: zautrix Date: Tue, 07 Sep 2004 22:51:29 +0000 Subject: Implemented Ompi - kapi connection --- (limited to 'kaddressbook') diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 2f9f1df..6522ccc 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -2043,8 +2043,26 @@ void KABCore::requestForDetails(const QString& sourceChannel, const QString& ses { //qDebug("KABCore::requestForDetails %s %s %s %s %s", sourceChannel.latin1(), sessionuid.latin1(), name.latin1(), email.latin1(), uid.latin1()); - QString foundUid = QString::null; - if (uid.isEmpty()) + QString foundUid = QString::null; + if ( ! uid.isEmpty() ) { + Addressee adrr = mAddressBook->findByUid( uid ); + if ( !adrr.isEmpty() ) { + foundUid = uid; + if ( email == "sendbacklist" ) { + QStringList nameList; + QStringList emailList; + QStringList uidList; + nameList.append(adrr.realName()); + emailList = adrr.emails(); + uidList.append( adrr.preferredEmail()); + bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI("QPE/Application/ompi", uid, nameList, emailList, uidList); + } + } + } + + if ( email == "sendback" ) + return; + if (foundUid.isEmpty()) { //find the uid of the person first Addressee::List namelist; -- cgit v0.9.0.2