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

#ifndef KBEARTRANSFERGROUPITEM_H
#define KBEARTRANSFERGROUPITEM_H

//////////////////////////////////////////////////////////////////////
// Qt specific include files
#include <qobject.h>
#include <qlistview.h>
#include <qpixmap.h>
//////////////////////////////////////////////////////////////////////
// KDE specific include files
//////////////////////////////////////////////////////////////////////
// System specific include files
//////////////////////////////////////////////////////////////////////
// Application specific include files

namespace KBear {
	class TransferViewPage;
	class TransferGroup;

	/**
	@author Björn Sahlström
	*/
	class TransferGroupItem : public QObject, public QListViewItem {
			Q_OBJECT
		public:
			/** */
			TransferGroupItem( TransferViewPage*, TransferGroup* );
			/** */
			~TransferGroupItem();
			/** */
			virtual void setOpen( bool );
		private slots:
			void slotTransferItemHidden();
			void slotTransferItemShown();
			void slotRemovingTransferGroup( int ID );
		private:
			static QPixmap* s_folderClosed;
			static QPixmap* s_folderOpen;
			TransferViewPage* m_page;
			TransferGroup* m_transferGroup;

	};

};

#endif
