author | zautrix <zautrix> | 2005-03-29 14:22:53 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-29 14:22:53 (UTC) |
commit | c873163eca527625ce22ed461ee5d4fec61b3b18 (patch) (unidiff) | |
tree | 5d9724d4d1dd26794faae7b102c649eb8375ad36 | |
parent | 7046b36fb5dd14598ece00b575554eba2956ef84 (diff) | |
download | kdepimpi-c873163eca527625ce22ed461ee5d4fec61b3b18.zip kdepimpi-c873163eca527625ce22ed461ee5d4fec61b3b18.tar.gz kdepimpi-c873163eca527625ce22ed461ee5d4fec61b3b18.tar.bz2 |
fix
-rw-r--r-- | kaddressbook/kabcore.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 09d8523..db19dd5 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -2487,49 +2487,61 @@ void KABCore::configureKeyBindings() | |||
2487 | qDebug("KABCore::configureKeyBindings() not implemented"); | 2487 | qDebug("KABCore::configureKeyBindings() not implemented"); |
2488 | #endif //KAB_EMBEDDED | 2488 | #endif //KAB_EMBEDDED |
2489 | } | 2489 | } |
2490 | 2490 | ||
2491 | #ifdef KAB_EMBEDDED | 2491 | #ifdef KAB_EMBEDDED |
2492 | void KABCore::configureResources() | 2492 | void KABCore::configureResources() |
2493 | { | 2493 | { |
2494 | KRES::KCMKResources dlg( this, "" , 0 ); | 2494 | KRES::KCMKResources dlg( this, "" , 0 ); |
2495 | 2495 | ||
2496 | if ( !dlg.exec() ) | 2496 | if ( !dlg.exec() ) |
2497 | return; | 2497 | return; |
2498 | KMessageBox::information( this, i18n("Please restart to get the \nchanged resources (re)loaded!\n") ); | 2498 | KMessageBox::information( this, i18n("Please restart to get the \nchanged resources (re)loaded!\n") ); |
2499 | } | 2499 | } |
2500 | #endif //KAB_EMBEDDED | 2500 | #endif //KAB_EMBEDDED |
2501 | 2501 | ||
2502 | 2502 | ||
2503 | /* this method will be called through the QCop interface from Ko/Pi to select addresses | 2503 | /* this method will be called through the QCop interface from Ko/Pi to select addresses |
2504 | * for the attendees list of an event. | 2504 | * for the attendees list of an event. |
2505 | */ | 2505 | */ |
2506 | void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) | 2506 | void KABCore::requestForNameEmailUidList(const QString& sourceChannel, const QString& uid) |
2507 | { | 2507 | { |
2508 | QStringList nameList; | 2508 | QStringList nameList; |
2509 | QStringList emailList; | 2509 | QStringList emailList; |
2510 | QStringList uidList; | 2510 | QStringList uidList; |
2511 | bool ok = false; | ||
2512 | int wid = uid.toInt( &ok ); | ||
2513 | if ( ok ) { | ||
2514 | if ( wid != QApplication::desktop()->width() ) { | ||
2515 | qDebug("KA/Pi: Request from different desktop geometry. Resizing ..."); | ||
2516 | raise(); | ||
2517 | qApp->processEvents(); | ||
2518 | } | ||
2511 | 2519 | ||
2520 | } else { | ||
2521 | qDebug("KABCore::requestForNameEmailUidList:: Got invalid uid "); | ||
2522 | } | ||
2523 | |||
2512 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); | 2524 | KABC::Addressee::List list = KABC::AddresseeDialog::getAddressees(this); |
2513 | uint i=0; | 2525 | uint i=0; |
2514 | for (i=0; i < list.count(); i++) | 2526 | for (i=0; i < list.count(); i++) |
2515 | { | 2527 | { |
2516 | nameList.append(list[i].realName()); | 2528 | nameList.append(list[i].realName()); |
2517 | emailList.append(list[i].preferredEmail()); | 2529 | emailList.append(list[i].preferredEmail()); |
2518 | uidList.append(list[i].uid()); | 2530 | uidList.append(list[i].uid()); |
2519 | } | 2531 | } |
2520 | //qDebug("%s %s ", sourceChannel.latin1(), uid.latin1()); | 2532 | //qDebug("%s %s ", sourceChannel.latin1(), uid.latin1()); |
2521 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(sourceChannel, uid, nameList, emailList, uidList); | 2533 | bool res = ExternalAppHandler::instance()->returnNameEmailUidListFromKAPI(sourceChannel, uid, nameList, emailList, uidList); |
2522 | 2534 | ||
2523 | } | 2535 | } |
2524 | 2536 | ||
2525 | /* this method will be called through the QCop interface from Ko/Pi to select birthdays | 2537 | /* this method will be called through the QCop interface from Ko/Pi to select birthdays |
2526 | * to put them into the calendar. | 2538 | * to put them into the calendar. |
2527 | */ | 2539 | */ |
2528 | void KABCore::requestForBirthdayList(const QString& sourceChannel, const QString& uid) | 2540 | void KABCore::requestForBirthdayList(const QString& sourceChannel, const QString& uid) |
2529 | { | 2541 | { |
2530 | // qDebug("KABCore::requestForBirthdayList"); | 2542 | // qDebug("KABCore::requestForBirthdayList"); |
2531 | QStringList birthdayList; | 2543 | QStringList birthdayList; |
2532 | QStringList anniversaryList; | 2544 | QStringList anniversaryList; |
2533 | QStringList realNameList; | 2545 | QStringList realNameList; |
2534 | QStringList preferredEmailList; | 2546 | QStringList preferredEmailList; |
2535 | QStringList assembledNameList; | 2547 | QStringList assembledNameList; |