summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/kmfwidgets/kmfprotocolpropertieswidget.h
blob: 1c5405505967def59bc99b8e4f30d08704c3639d (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
//
// C++ Interface:
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef KMFPROTOCOLPROPERTIESWIDGET_H
#define KMFPROTOCOLPROPERTIESWIDGET_H

#include "kmyfirewallprotocolpropertieswidget.h"


#include <tqptrlist.h>
#include <tqstring.h>
#include <tqguardedptr.h>
#include <tqpixmap.h>
#include <tquuid.h>

namespace KMF {
class KMFProtocol;
class KMFProtocolUsage;
class KMFProtocolCategory;

class KMFProtocolPropertiesWidget : public KMyFirewallProtocolPropertiesWidget {
		Q_OBJECT
  TQ_OBJECT

	public:
		KMFProtocolPropertiesWidget ( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
		~KMFProtocolPropertiesWidget();
		/*$PUBLIC_FUNCTIONS$*/
		
		void loadProtocolUsage( KMFProtocolUsage* );
		void loadProtocol( KMFProtocol* );
		void loadProtocolCategory( KMFProtocolCategory* );
		
	public slots:
		/*$PUBLIC_SLOTS$*/

	protected:
		/*$PROTECTED_FUNCTIONS$*/
		void blockAllSignals( bool );
		
	protected slots:
		/*$PROTECTED_SLOTS$*/
	void slotEnableProtocolLimit( bool );
	void slotSetProtocolLimitRate( int );
	void slotSetProtocolLimitInterval( const TQString& );
	void slotEnableProtocolLogging( bool );
	void slotProtocolDeleted();

	private:
		TQGuardedPtr<KMFProtocolUsage> m_protocolUsage;
		// TQGuardedPtr<KMFProtocolUsage> m_protocol;
};
}
#endif