#ifndef _KPILOT_MultiDB_SETUP_H
#define _KPILOT_MultiDB_SETUP_H
/* MultiDB-setup.h                         KPilot
**
** Copyright (C) 2002 by Reinhold Kainhofer
** Copyright (C) 2001 by Dan Pilone
**
** This file defines the class for the behavior of the setup dialog.
*/

/*
** 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.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program in a file called COPYING; if not, write to
** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
** MA 02111-1307, USA.
*/

/*
** Bug reports and questions can be sent to kde-pim@kde.org
*/

#include "options.h"
#include "plugin.h"
#include "MultiDB-conduitDialog.h"
#include "MultiDB-factory.h"
#include "MultiDBWidgetPrivate.h"

class MultiDBWidgetSetup : public ConduitConfig {
Q_OBJECT
public:
	MultiDBWidgetSetup(QWidget *,const char *,const QStringList &, SyncTypeList_t *lst=0L, KAboutData *abt=NULL);
	virtual ~MultiDBWidgetSetup();

protected:
	virtual void readSettings();
	virtual void commitChanges();
	virtual const QString getSyncTypeEntry() { return "SyncAction"; };
	virtual const QString getSyncFileEntry() { return "SyncFile"; };
	virtual const QString settingsFileList() { return "Databases"; };
	virtual const QString getSettingsDefaultAct() { return "DefaultAction";};
	virtual const QString getSettingsGroup()=0;
	virtual QString ActIdToName(int act);
	virtual int ActNameToId(QString act);

protected slots:
	virtual void insert_db();
	virtual void edit_db();
	virtual void delete_db();
	virtual void slotOk();
	virtual void slotApply();
	virtual void edit(QListViewItem*listitem);

protected:
	SyncTypeList_t *synctypes;
private:
	MultiDBWidgetPrivate*fConfigWidget;
} ;

// $Log: MultiDB-setup.h,v $
// Revision 1.1.4.1  2003/03/12 23:31:10  adridg
// CVS_SILENT: FSF address change
//
// Revision 1.1  2002/04/07 12:09:43  kainhofe
// Initial checkin of the conduit. The gui works mostly, but syncing crashes KPilot...
//
// Revision 1.1  2002/04/07 01:03:52  reinhold
// the list of possible actions is now created dynamically
//
// Revision 1.7  2002/04/05 21:17:00  reinhold
// *** empty log message ***
//
// Revision 1.6  2002/03/28 13:47:53  reinhold
// Added the list of synctypes, aboutbox is now directly passed on to the setup dlg (instead of being a static var)
//
// Revision 1.5  2002/03/15 20:43:17  reinhold
// Fixed the crash on loading (member function not defined)...
//
// Revision 1.4  2002/03/13 22:14:40  reinhold
// GUI should work now...
//
// Revision 1.3  2002/03/10 23:58:32  reinhold
// Made the conduit compile...
//
// Revision 1.2  2002/03/10 16:06:43  reinhold
// Cleaned up the class hierarchy, implemented some more features (should be quite finished now...)
//
// Revision 1.1.1.1  2002/03/09 15:38:45  reinhold
// Initial checin of the  project manager / List manager conduit.
//
//
//

#endif
