blob: 31aaf866bea6fb4b55a82ca6d7b8f408519bd23f (
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
|
//
// C++ Interface: kmfrulesetdoc
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KMFRULESETDOC_H
#define KMFRULESETDOC_H
/**
@author Christian Hubinger <chubinger@irrsinnig.org>
*/
//TQt Includes
#include <tqguardedptr.h>
// KDE includes
#include <kdemacros.h>
namespace KMF {
class KMFTarget;
class KMFNetwork;
class KMFError;
class KDE_EXPORT KMFRulesetDoc{
public:
KMFRulesetDoc( KMFTarget* );
virtual ~KMFRulesetDoc();
KMFTarget* target();
KMFNetwork* network();
void setTarget( KMFTarget* );
/** return a TQString containing the documents script to
setup the firewall configuration */
virtual const TQString& compile() = 0;
/** Writes the shellscrip that contains the iptables commands to settup
the firewall to file.
If file = TQString() a SaveAs dialog will popup. */
KMFError* createFirewallScript( const TQString& fi );
protected:
private:
KMFRulesetDoc();
private: // DATA
TQGuardedPtr<KMFTarget> m_target;
};
}
#endif
|