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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
//
//
// C++ Interface: $MODULE$
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2003
//
// Copyright: See COPYING file that comes with this distribution
//
//
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KMFGENERICINTERFACE_H
#define KMFGENERICINTERFACE_H
#include <kjanuswidget.h>
/**
@author Christian Hubinger
*/
// QT includes
#include <tqpixmap.h>
#include <tqguardedptr.h>
class TQFrame;
class TQVBox;
class TQTabWidget;
// KDE includes
// Project includes
namespace KMF {
class KMFGenericInterfaceProtocol;
class KMFGenericInterfaceNat;
class KMFGenericInterfaceHost;
class KMFGenericInterfaceLogging;
class KMFGenericInterfaceEditProtocol;
class KMFGenericInterfaceIcmp;
class KMFGenericDoc;
class KMFNetwork;
class KMFMyNetworkWidget;
class NetfilterObject;
class KMFGenericInterface : public KJanusWidget {
Q_OBJECT
TQ_OBJECT
public:
KMFGenericInterface( TQWidget *tqparent = 0, const char *name = 0 );
~KMFGenericInterface();
void loadDoc( KMFNetwork* );
private slots:
void slotPageChanged( TQWidget* );
// void slotUpdateView();
// void slotUpdateView( NetfilterObject* );
private:
void loadIcons();
signals:
void sigUpdateView();
void sigUpdateView( NetfilterObject* );
void sigTargetChanged();
private:
KMFMyNetworkWidget *m_myNetworkWidget;
KMFGenericInterfaceProtocol *m_protocolPageZones;
KMFGenericInterfaceEditProtocol *m_protocolPageEditProtocol;
KMFGenericInterfaceNat *m_natPage;
KMFGenericInterfaceHost *m_hostPage;
KMFGenericInterfaceLogging *m_loggingPage;
KMFGenericInterfaceIcmp *m_icmpPage;
TQGuardedPtr<KMFNetwork> m_network;
TQFrame *myNetworkFrame, *zoneFrame, *protocolFrame, *editProtocolFrame,*icmpFrame, *hostFrame,*natFrame, *logFrame;
TQPixmap icon_zone_page, icon_protocol_page,
icon_edit_protocol_page, icon_icmp_page,
icon_logging_page, icon_host_page, icon_nat_page;
};
}
#endif
|