-rw-r--r-- | kaddressbook/kabcore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 702eaa3..a8e4de5 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -2476,49 +2476,49 @@ void KABCore::configureResources() | |||
2476 | if ( !dlg.exec() ) | 2476 | if ( !dlg.exec() ) |
2477 | return; | 2477 | return; |
2478 | KMessageBox::information( this, i18n("Please restart to get the \nchanged resources (re)loaded!\n") ); | 2478 | KMessageBox::information( this, i18n("Please restart to get the \nchanged resources (re)loaded!\n") ); |
2479 | } | 2479 | } |
2480 | #endif //KAB_EMBEDDED | 2480 | #endif //KAB_EMBEDDED |
2481 | 2481 | ||
2482 | 2482 | ||
2483 | /* this method will be called through the QCop interface from Ko/Pi to select addresses | 2483 | /* this method will be called through the QCop interface from Ko/Pi to select addresses |
2484 | * for the attendees list of an event. | 2484 | * for the attendees list of an event. |
2485 | */ | 2485 | */ |
2486 | void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) | 2486 | void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) |
2487 | { | 2487 | { |
2488 | QStringList nameList; | 2488 | QStringList nameList; |
2489 | QStringList emailList; | 2489 | QStringList emailList; |
2490 | QStringList uidList; | 2490 | QStringList uidList; |
2491 | 2491 | ||
2492 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); | 2492 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); |
2493 | uint i=0; | 2493 | uint i=0; |
2494 | for (i=0; i < list.count(); i++) | 2494 | for (i=0; i < list.count(); i++) |
2495 | { | 2495 | { |
2496 | nameList.append(list[i].realName()); | 2496 | nameList.append(list[i].realName()); |
2497 | emailList.append(list[i].preferredEmail()); | 2497 | emailList.append(list[i].preferredEmail()); |
2498 | uidList.append(list[i].uid()); | 2498 | uidList.append(list[i].uid()); |
2499 | } | 2499 | } |
2500 | 2500 | //qDebug("%s %s ", sourceChannel.latin1(), uid.latin1()); | |
2501 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(sourceChannel, uid, nameList, emailList, uidList); | 2501 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(sourceChannel, uid, nameList, emailList, uidList); |
2502 | 2502 | ||
2503 | } | 2503 | } |
2504 | 2504 | ||
2505 | /* this method will be called through the QCop interface from Ko/Pi to select birthdays | 2505 | /* this method will be called through the QCop interface from Ko/Pi to select birthdays |
2506 | * to put them into the calendar. | 2506 | * to put them into the calendar. |
2507 | */ | 2507 | */ |
2508 | void KABCore::requestForBirthdayList(const QString& sourceChannel, const QString& uid) | 2508 | void KABCore::requestForBirthdayList(const QString& sourceChannel, const QString& uid) |
2509 | { | 2509 | { |
2510 | // qDebug("KABCore::requestForBirthdayList"); | 2510 | // qDebug("KABCore::requestForBirthdayList"); |
2511 | QStringList birthdayList; | 2511 | QStringList birthdayList; |
2512 | QStringList anniversaryList; | 2512 | QStringList anniversaryList; |
2513 | QStringList realNameList; | 2513 | QStringList realNameList; |
2514 | QStringList preferredEmailList; | 2514 | QStringList preferredEmailList; |
2515 | QStringList assembledNameList; | 2515 | QStringList assembledNameList; |
2516 | QStringList uidList; | 2516 | QStringList uidList; |
2517 | 2517 | ||
2518 | KABC::AddressBook::Iterator it; | 2518 | KABC::AddressBook::Iterator it; |
2519 | 2519 | ||
2520 | int count = 0; | 2520 | int count = 0; |
2521 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { | 2521 | for( it = mAddressBook->begin(); it != mAddressBook->end(); ++it ) { |
2522 | ++count; | 2522 | ++count; |
2523 | } | 2523 | } |
2524 | QProgressBar bar(count,0 ); | 2524 | QProgressBar bar(count,0 ); |