summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/kmfwidgets/kmfprotocollistview.h
blob: 9a21510a80ce5fb70a7652e1be1d37f43d097080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// C++ Interface:
//
// Description:
//
//
// Author: Christian Hubinger <[email protected]>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef KMFPROTOCOLLISTVIEW_H
#define KMFPROTOCOLLISTVIEW_H

#include "kmyfirewallprotocollistview.h"

#include <qptrlist.h>
#include <qstring.h>
#include <qguardedptr.h>
#include <qpixmap.h>
#include <quuid.h>



class QListViewItem;

namespace KMF {
class KMFProtocolUsage;
class KMFProtocolCategory;
class KMFNetZone;
class KMFNetHost;

class KMFProtocolListView : public KMyFirewallProtocolListView {
		Q_OBJECT

	public:
		KMFProtocolListView ( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
		~KMFProtocolListView();
		/*$PUBLIC_FUNCTIONS$*/
		void setHost( KMFNetHost* host );
		void setZone( KMFNetZone* zone );
		void loadProtocols();
	public slots:
		/*$PUBLIC_SLOTS$*/

	protected:
		/*$PROTECTED_FUNCTIONS$*/

	protected slots:
		/*$PROTECTED_SLOTS$*/
		void slotNewProtocolSelected( QListViewItem* );
		void slotOnProtocolDeleted( QObject* );
		
	private:
		QGuardedPtr<KMFNetHost> *m_host;
		QGuardedPtr<KMFNetZone> *m_zone;
		bool m_reloading;
		
	signals:
		void sigProtocolClicked( KMFProtocolUsage*, bool );
		void sigProtocolCategoryClicked( KMFProtocolCategory* );
};
}
#endif