summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/ruleoptionplugins/log_target_option/kmfruletargetoptioneditlog.h
blob: a4395be177516a68170802fe8840106feddc818f (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
67
68
69
70
71
72
73
74
75
76
77
78
//
// C++ Interface: kmfruleoptioneditiip
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KMFRULETARGETOPTIONEDITLOG_H
#define KMFRULETARGETOPTIONEDITLOG_H

#include "../../core/kmfruletargetoptioneditinterface.h"

// KDE includes
#include <tdeparts/part.h>
#include <tdeparts/plugin.h>
#include <tdeparts/factory.h>
#include <kxmlgui.h>
class TDEInstance;
namespace KMF {
class IPTRule;
class KMFRuleEditTargetLog;
/**
@author Christian Hubinger
*/
class KMFRuleTargetOptionEditLog : public KMFRuleTargetOptionEditInterface {
	Q_OBJECT
  
public:
	KMFRuleTargetOptionEditLog(TQObject *parent = 0, const char *name = 0);

	~KMFRuleTargetOptionEditLog();
	void loadRule( IPTRule* rule );	
	TQWidget* editWidget();
	const TQString& optionEditName() const;
	const TQString& description() const;
	bool setTarget( const TQString& );

private slots:
	void slotShowOverview();

private:
	KMFRuleEditTargetLog *m_edit;
	IPTRule *m_rule;
	
};



class KMFRuleTargetOptionEditLogFactory : public KLibFactory {
	Q_OBJECT
  
public:
	KMFRuleTargetOptionEditLogFactory( TQObject *parent = 0, const char *name = 0 );
	virtual ~KMFRuleTargetOptionEditLogFactory() {
/* 		delete s_instance; */
	};
	virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
	                               const char* name = "TQObject",
	                               const TQStringList &args = TQStringList() );
	/*     static TDEInstance* instance(); */

/*private:
	static TDEInstance* s_instance;*/
};

}







#endif