You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.3 KiB
68 lines
2.3 KiB
/*
|
|
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 <john@geola.co.uk>
|
|
|
|
Copyright (c) 2003 by Will Stephenson <will@stevello.free-online.co.uk>
|
|
Copyright (c) 2002 by Nick Betcher <nbetcher@kde.org>
|
|
Copyright (c) 2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
|
|
|
|
Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
|
|
|
|
*************************************************************************
|
|
* *
|
|
* 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 <tqptrlist.h>
|
|
#include <tqvaluelist.h>
|
|
#include <tqmap.h>
|
|
|
|
#include <kdialogbase.h>
|
|
#include <kdebug.h>
|
|
#include <tdeabc/addressbook.h>
|
|
|
|
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
|