summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/addcontactwizard/addcontactwizard.h
blob: 0c0d5af6865cff7a88e83927fa442c8e4a9758ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
    addcontactwizard.h - Kopete's Add Contact Wizard

    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 ADDCONTACTWIZARD_H
#define ADDCONTACTWIZARD_H

#include <tqptrlist.h>
#include <tqvaluelist.h>
#include <tqmap.h>

#include <kdebug.h>
#include <kabc/addressbook.h>
#include "addcontactwizard_base.h"

class AddContactPage;
class TQCheckListItem;

namespace Kopete
{
class Protocol;
class Account;
class Group;

namespace UI
{
class AddressBookSelectorWidget;
}

}

/**
 * @author Duncan Mac-Vicar P. <duncan@kde.org>
 */
class AddContactWizard : public AddContactWizard_Base
{
	Q_OBJECT

public:
	AddContactWizard( TQWidget *parent = 0, const char *name = 0 );
	~AddContactWizard();
	virtual void showPage( TQWidget *page );

private:
	//Kopete::Protocol *currentProtocol;
	//AddContactPage *currentDataWidget;
	TQMap <Kopete::Account*,AddContactPage*> protocolPages;
	TQMap <TQCheckListItem*,Kopete::Account*> m_accountItems;
	TQMap <TQCheckListItem*,Kopete::Group*> m_groupItems;
	Kopete::UI::AddressBookSelectorWidget *m_addressbookSelectorWidget;

public slots:
	virtual void accept();
	virtual void reject();

	void slotProtocolListClicked( TQListViewItem * );

	void slotAddGroupClicked();

protected slots:
	virtual void next();
	void slotCheckAddresseeChoice( bool on );
	void slotAddresseeListClicked( TQListViewItem *addressee );
	void slotDataValid( AddContactPage *onPage, bool bOn);
};

#endif

// vim: set noet ts=4 sts=4 sw=4: