/* linkaddressbookwizard.h - Kontact's Link IRC Nick to Addressbook contact Wizard This code was shamelessly stolen from kopete's add new contact wizard. Copyright (c) 2004 by John Tapsell Copyright (c) 2003 by Will Stephenson Copyright (c) 2002 by Nick Betcher Copyright (c) 2002 by Duncan Mac-Vicar Prett Kopete (c) 2002-2004 by the Kopete developers ************************************************************************* * * * 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 LINKADDRESSBOOKUI_H #define LINKADDRESSBOOKUI_H #include #include #include #include #include #include class TQCheckListItem; class LinkAddressbookUI_Base; class LinkAddressbookUI : public KDialogBase { TQ_OBJECT public: LinkAddressbookUI( TQWidget *parent, const char *name, const TQString &ircnick, const TQString &servername, const TQString &servergroup, const TQString &suggested_realname); ~LinkAddressbookUI(); private: TDEABC::AddressBook* m_addressBook; TQString m_ircnick; TQString m_lower_ircnick; //Same as above, but in lower case, for comparisons. TQString m_servername; TQString m_servergroup; TQString m_suggested_realname; LinkAddressbookUI_Base* m_mainWidget; protected slots: virtual void slotOk(); virtual void slotCancel(); void slotAddAddresseeClicked(); void slotAddresseeListClicked( TQListViewItem *addressee ); /** * Utility function, populates the addressee list */ void slotLoadAddressees(); }; #endif