//
// C++ Interface:
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef KMFTRANSACTIONLOG_H
#define KMFTRANSACTIONLOG_H

#include <tqlistview.h>
#include <tdemacros.h>

#include "kmyfirewalltransactionlog.h"

class TDEPopupMenu;
class TDEProcess;
class KTempFile;
class TDEListView;
class TDEListViewItem;

namespace KMF {
class KMFTransaction;


class TDE_EXPORT KMFTransactionLog : public KMyFirewallTransactionLog
{
		TQ_OBJECT
  
	
	public: static KMFTransactionLog* instance();
	
	public:
		
		~KMFTransactionLog();
		/*$PUBLIC_FUNCTIONS$*/

	public slots:
		/*$PUBLIC_SLOTS$*/
		void slotUpdateView();
		
	protected:
		/*$PROTECTED_FUNCTIONS$*/

	protected slots:
		/*$PROTECTED_SLOTS$*/
		void slotUpdateStatistics();
		void slotClearStacks();
		void slotClearLog();
		void slotLog( const TQString& );
		void slotZoneRBM( TQListViewItem*, const TQPoint&, int );
		void slotShowDiff();
		void slotKompareExited( TDEProcess* );	
	private:
		KMFTransactionLog ( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
		TDEListViewItem* setupListItem( KMFTransaction*, TDEListView*, TDEListViewItem*);
		
	// DATA
	private: 
		TDEPopupMenu *m_contextMenu;
		KMFTransaction* m_currentTransaction;
		KTempFile *m_undoXMLFile;
		KTempFile *m_redoXMLFile;
		
		static KMFTransactionLog* s_instance;
		
		
};
}
#endif

