summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/addressbook.cpp
authoreilers <eilers>2003-05-09 08:40:42 (UTC)
committer eilers <eilers>2003-05-09 08:40:42 (UTC)
commitfd1f8bdfc8bad5a0344468118c66c6afe3044fde (patch) (unidiff)
tree58f18282117f9b524c13221f6a54c7bbc94a5827 /core/pim/addressbook/addressbook.cpp
parenta82928a004882e9aba652061fc6ecffb85d403cf (diff)
downloadopie-fd1f8bdfc8bad5a0344468118c66c6afe3044fde.zip
opie-fd1f8bdfc8bad5a0344468118c66c6afe3044fde.tar.gz
opie-fd1f8bdfc8bad5a0344468118c66c6afe3044fde.tar.bz2
Added two QCop functions for OSearch:
editUid(int), showUid(int)..
Diffstat (limited to 'core/pim/addressbook/addressbook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.cpp52
1 files changed, 27 insertions, 25 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index 89a3312..e053e94 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -686,36 +686,38 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data)
686 connect( ir, SIGNAL( done( Ir * ) ), this, SLOT( beamDone( Ir * ) ) ); 686 connect( ir, SIGNAL( done( Ir * ) ), this, SLOT( beamDone( Ir * ) ) );
687 QString description = "mycard.vcf"; 687 QString description = "mycard.vcf";
688 ir->send( beamFilename, description, "text/x-vCard" ); 688 ir->send( beamFilename, description, "text/x-vCard" );
689 } 689 } else if ( msg == "showUid(int)" ) {
690#if 0
691 else if (msg == "pickAddresses(QCString,QCString,QStringList,...)" ) {
692 QDataStream stream(data,IO_ReadOnly); 690 QDataStream stream(data,IO_ReadOnly);
693 QCString ch,m; 691 int uid;
694 QStringList types; 692 stream >> uid;
695 stream >> ch >> m >> types; 693
696 AddressPicker picker(abList,this,0,TRUE); 694 // Deactivate Personal View..
697 picker.showMaximized(); 695 if ( actionPersonal->isOn() ){
698 picker.setChoiceNames(types); 696 actionPersonal->setOn( false );
699 int i=0; 697 slotPersonalView();
700 for (QStringList::ConstIterator it = types.begin(); it!=types.end(); ++it) {
701 QStringList sel;
702 stream >> sel;
703 picker.setSelection(i++,sel);
704 } 698 }
705 picker.showMaximized();
706 picker.exec();
707 699
708 // ###### note: contacts may have been added - save here! 700 // Reset category and show as card..
701 m_abView -> setShowByCategory( QString::null );
702 m_abView -> setCurrentUid( uid );
703 slotViewSwitched ( AbView::CardView );
704
705 } else if ( msg == "editUid(int)" ) {
706 QDataStream stream(data,IO_ReadOnly);
707 int uid;
708 stream >> uid;
709 709
710 setCentralWidget(abList); 710 // Deactivate Personal View..
711 QCopEnvelope e(ch,m); 711 if ( actionPersonal->isOn() ){
712 i=0; 712 actionPersonal->setOn( false );
713 for (QStringList::ConstIterator it = types.begin(); it!=types.end(); ++it) { 713 slotPersonalView();
714 QStringList sel = picker.selection(i++);
715 e << sel;
716 } 714 }
717 } 715
718#endif 716 // Reset category and edit..
717 m_abView -> setShowByCategory( QString::null );
718 m_abView -> setCurrentUid( uid );
719 slotViewEdit();
720 }
719 721
720} 722}
721 723