diff options
author | Timothy Pearson <[email protected]> | 2013-02-02 13:42:48 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-02 13:42:48 -0600 |
commit | 2cb1d1c8edcbfae77e25dad2f3aa97e09c627a06 (patch) | |
tree | 20c7c9fa1dfcc2b587044423100c28c136ff3c4e /kopete/libkopete/ui/addressbookselectorwidget.h | |
parent | da47dd9fc60e6e0eecf609fb934eb0e2bd3ef3fb (diff) | |
download | tdenetwork-2cb1d1c8edcbfae77e25dad2f3aa97e09c627a06.tar.gz tdenetwork-2cb1d1c8edcbfae77e25dad2f3aa97e09c627a06.zip |
Fix unintended renaming
Diffstat (limited to 'kopete/libkopete/ui/addressbookselectorwidget.h')
-rw-r--r-- | kopete/libkopete/ui/addressbookselectorwidget.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/kopete/libkopete/ui/addressbookselectorwidget.h b/kopete/libkopete/ui/addressbookselectorwidget.h new file mode 100644 index 00000000..af4b1834 --- /dev/null +++ b/kopete/libkopete/ui/addressbookselectorwidget.h @@ -0,0 +1,91 @@ +/* + AddressBookSelectorWidget + Copyright (c) 2005 by Duncan Mac-Vicar Prett <[email protected]> + + Based on LinkAddressBookUI whose code was shamelessly stolen from + kopete's add new contact wizard, used in Konversation, and then + reappropriated by Kopete. + + LinkAddressBookUI: + Copyright (c) 2004 by John Tapsell <[email protected]> + Copyright (c) 2003-2005 by Will Stephenson <[email protected]> + Copyright (c) 2002 by Nick Betcher <[email protected]> + Copyright (c) 2002 by Duncan Mac-Vicar Prett <[email protected]> + + Kopete (c) 2002-2004 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ************************************************************************* +*/ + +#ifndef AddressBookSelectorWidget_H +#define AddressBookSelectorWidget_H + +#include <kdialogbase.h> +#include <kabc/addressbook.h> + +#include <kdemacros.h> +#include "kopete_export.h" + +#include "addressbookselectorwidget_base.h" + +namespace KABC { + class AddressBook; + class Addressee; +} + +namespace Kopete +{ +namespace UI +{ + +class KOPETE_EXPORT AddressBookSelectorWidget : public AddressBookSelectorWidget_Base +{ + Q_OBJECT + +public: + AddressBookSelectorWidget( TQWidget *parent = 0, const char *name = 0 ); + ~AddressBookSelectorWidget(); + KABC::Addressee addressee(); + /** + * sets the widget label message + * example: Please select a contact + * or, Choose a contact to delete + */ + void setLabelMessage( const TQString &msg ); + /** + * pre-selects a contact + */ + void selectAddressee( const TQString &uid ); + /** + * @return true if there is a contact selected + */ + bool addresseeSelected(); + +private: + KABC::AddressBook * m_addressBook; + KABC::Addressee m_addressee; + +protected slots: + void slotAddAddresseeClicked(); + /** + * Utility function, populates the addressee list + */ + void slotLoadAddressees(); +signals: + void addresseeListClicked( TQListViewItem *addressee ); + void addAddresseeClicked(); +}; + +} // namespace UI +} // namespace Kopete + +#endif + +// vim: set noet ts=4 sts=4 sw=4: |