26 #include "extensionwidget.h"
30 ExtensionWidget::ExtensionWidget( Core *core, TQWidget *parent,
32 : TQWidget( parent, name ), mCore( core )
36 ExtensionWidget::~ExtensionWidget()
40 KAB::Core *ExtensionWidget::core() const
45 bool ExtensionWidget::contactsSelected() const
47 return mCore->selectedUIDs().count() != 0;
50 TDEABC::Addressee::List ExtensionWidget::selectedContacts()
52 TDEABC::Addressee::List list;
54 const TQStringList uids = mCore->selectedUIDs();
55 TQStringList::ConstIterator it;
56 const TQStringList::ConstIterator endIt = uids.end();
57 for ( it = uids.begin(); it != endIt; ++it )
58 list.append( mCore->addressBook()->findByUid( *it ) );
63 void ExtensionWidget::contactsSelectionChanged()
68 #include "extensionwidget.moc"
|