/*
    accountconfig.h  -  Kopete account config page

    Copyright (c) 2003-2004 by Olivier Goffart <ogoffart @ 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 __ACCOUNTCONFIG_H
#define __ACCOUNTCONFIG_H

#include <tdecmodule.h>
#include <tqmap.h>
#include <tqcolor.h>

namespace Kopete
{
class Account;
}

class KopeteAccountConfigBase;

/**
 * @author Olivier Goffart <ogoffart @ kde.org>
 */
class KopeteAccountConfig : public TDECModule
{
	TQ_OBJECT
  

public:
	KopeteAccountConfig(TQWidget *parent, const char *name, const TQStringList &args );

public slots:
	virtual void save();
	virtual void load();

private:
	KopeteAccountConfigBase *m_view;
	TQMap<Kopete::Account* , TQColor> m_newColors;
	bool m_protected;

private slots:
	void slotRemoveAccount();
	void slotEditAccount();
	void slotAddAccount();
	void slotAddWizardDone();
	void slotItemSelected();
	void slotAccountUp();
	void slotAccountDown();
	void slotColorChanged();
};
#endif
