/*********************************************************************************
* C++ Interface: kbearrecentconnectionsoutputwidget..h
* Description:
*
* Begin : fre jun 27 2003
* Author : Björn Sahlström <kbjorn@users.sourceforge.net> (C) 2003
* Copyright : See COPYING file that comes with this distribution
**********************************************************************************/

#ifndef __RECENTCONNECTIONS_OUTPUTWIDGET_H__
#define __RECENTCONNECTIONS_OUTPUTWIDGET_H__


//////////////////////////////////////////////////////////////////////
// Qt specific include files
#include <qstring.h>
//////////////////////////////////////////////////////////////////////
// KDE specific include files
#include <klistview.h>
//////////////////////////////////////////////////////////////////////
// System specific include files
//////////////////////////////////////////////////////////////////////
// Application specific include files
#include "siteinfo.h"

class KConfig;

namespace KBear {

	/**
	@author Björn Sahlström
	*/
	class KBearRecentConnectionsOutputWidget : public KListView {
		Q_OBJECT
	public:
		/** */
		KBearRecentConnectionsOutputWidget( KConfig* config, QWidget* parent, const char* name );
		/** */
		virtual ~KBearRecentConnectionsOutputWidget();
		/** */
		void addToRecent( const SiteInfo& );
		void removeFromRecent( const QString& );
		/** */
		void loadRecent();

	private:
		KConfig* m_config;
	};
};

#endif
