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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
//
//
// 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 KMFGENERICINTERFACEPROTOCOL_H
#define KMFGENERICINTERFACEPROTOCOL_H
#include <kmyfirewallgenericinterfaceprotocolwidget.h>
// QT includes
class TQListViewItem;
#include <tqptrlist.h>
#include <tqstring.h>
#include <tqguardedptr.h>
#include <tqpixmap.h>
#include <tquuid.h>
// KDE includes
class KPopupMenu;
// Project includes
#include "../core/kmfprotocol.h"
#include "../core/kmfprotocolusage.h"
#include "../core/kmfprotocolcategory.h"
class TQCheckBox;
class TQTextEdit;
/*class KMFErrorHandler;*/
namespace KMF {
class KMFNetwork;
class KMFGenericDoc;
class KMFNetZone;
class KMFListViewItem;
class KMFNetHost;
class KMFNetworkWidget;
class KMFNetHostPropertiesWidget;
class KMFProtocolPropertiesWidget;
class KMFProtocolListView;
class KMFGenericInterfaceProtocol : public KMyFirewallGenericInterfaceProtocolWidget {
Q_OBJECT
public:
KMFGenericInterfaceProtocol( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~KMFGenericInterfaceProtocol();
void loadDoc( KMFNetwork* );
// void setType( int );
// enum { INCOMING, OUTGOING };
public slots:
void slotUpdateView();
void slotUpdateView( NetfilterObject* );
private slots:
// void slotNewProtocolSelected( TQListViewItem* );
void slotNewItemSelected( TQListViewItem* );
void slotZoneRBM( TQListViewItem*, const TQPoint&, int );
void slotAddZone();
void slotDelZone();
void slotAddHost();
void slotDelHost();
void slotAddressChanged( const TQString& );
void slotZoneChanged( KMFNetZone* );
void slotCurrentZoneChanged( const TQString& );
void slotRenameZone();
void slotRenameHost();
void slotRenameItem( TQListViewItem* item, int, const TQString& name );
void slotRestrictionChanged();
void slotProtocolClicked( KMFProtocolUsage*, bool );
void slotProtocolCategoryClicked( KMFProtocolCategory* );
private:
void loadIcons();
KMFListViewItem* findItem( const TQUuid& obj_id );
private:
TQGuardedPtr<KMFNetwork> m_doc;
KPopupMenu* m_contextMenu;
KMFNetworkWidget *m_network_widget;
KMFNetHostPropertiesWidget *m_nethostProperties_widget;
KMFProtocolPropertiesWidget *m_protocolProperties_widget;
KMFProtocolListView *m_protocolLIstView;
TQPtrList<KMFNetZone> m_zones;
TQGuardedPtr<KMFProtocolUsage> m_protocolUsage;
TQGuardedPtr<KMFNetZone> m_zone;
TQGuardedPtr<KMFNetHost> m_host;
int m_type;
TQPixmap icon_up, icon_down, icon_del, icon_edit, icon_rule, icon_filter, icon_rename,
icon_chain, icon_log, icon_accept, icon_drop, icon_cmd, icon_reject, icon_return,
icon_target, icon_queue, icon_new, icon_copy, icon_move;
};
}
#endif
|