/*
* typedlg.h -- Declaration of class TypeDialog.
* Generated by newclass on Sun May 10 09:01:23 EST 1998.
*/
#ifndef SSK_TYPEDLG_H
#define SSK_TYPEDLG_H

#include<qdialog.h>
#include<qstring.h>

class QStrList;
class QListBox;

/**
* Allows selection of a mailbox type
* @author Sirtaj Singh Kang (taj@kde.org)
* @version $Id: typedlg.h,v 1.2 1999/09/09 03:49:08 ssk Exp $
*/
class TypeDialog : public QDialog
{
	Q_OBJECT

private:
	TypeDialog& operator=( TypeDialog& );
	TypeDialog( const TypeDialog& );

	QListBox  *_list;

	QString	_type;
public:
	/**
	* TypeDialog Constructor
	*/
	TypeDialog( const QStrList& types, QWidget *parent = 0,
		 const char *name = 0, bool modal = false );

	const QString &type() const { return _type; }

public slots:
	void setType( const QString& );
	void select( const QString& );
};

#endif // SSK_TYPEDLG_H
