~ubuntu-branches/ubuntu/karmic/kmyfirewall/karmic

« back to all changes in this revision

Viewing changes to kmyfirewall/ipteditor/kmflistview.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2005-01-04 20:17:02 UTC
  • Revision ID: james.westby@ubuntu.com-20050104201702-s1vo6slsg4f3jb11
Tags: upstream-0.9.6.2
ImportĀ upstreamĀ versionĀ 0.9.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef KMFLISTVIEW_H
 
2
#define KMFLISTVIEW_H
 
3
 
 
4
#include <klistview.h>
 
5
 
 
6
 
 
7
// QT includes
 
8
#include <qptrlist.h>
 
9
#include <qintdict.h>
 
10
#include <qstringlist.h>
 
11
#include <qvaluelist.h>
 
12
#include <qpixmap.h>
 
13
 
 
14
// Project includes
 
15
 
 
16
/**
 
17
@author Christian Hubinger
 
18
*/
 
19
 
 
20
class NetfilterObject;
 
21
class IPTable;
 
22
class IPTChain;
 
23
class IPTRule;
 
24
class IPTRuleOption;
 
25
class KMFListViewItem;
 
26
class KListViewItem;
 
27
 
 
28
class KMFListView : public KListView {
 
29
        Q_OBJECT
 
30
public:
 
31
        KMFListView( QWidget *parent = 0, const char *name = 0 );
 
32
 
 
33
        ~KMFListView();
 
34
 
 
35
        KMFListViewItem* getRootItem();
 
36
        void clearAllItems();
 
37
 
 
38
public slots:
 
39
        void slotLoadNode( NetfilterObject* );
 
40
        void slotUpdateView();
 
41
        void slotUpdateView( NetfilterObject* );
 
42
        KMFListViewItem* findKMFItem( const QString& text, int column, int obj_id, bool exact = true, KMFListViewItem* from = 0 );
 
43
        KMFListViewItem* findKMFItem( const QString& text1, int column1,const QString& text2, int column2, int obj_id );
 
44
 
 
45
signals:
 
46
        void sigUpdateItem( int );
 
47
 
 
48
private:
 
49
        void loadIcons();
 
50
        void setupTableView( IPTable* );
 
51
        void setupChainView( IPTChain*, KMFListViewItem* );
 
52
        void setupRuleView( IPTRule*, KMFListViewItem* );
 
53
        void setupRuleOptionView( IPTRuleOption*, KMFListViewItem* );
 
54
 
 
55
private slots:
 
56
        void slotChangeRoot( QListViewItem* );
 
57
 
 
58
private: // data
 
59
        NetfilterObject *m_NetfilterObject;
 
60
        IPTable *m_table;
 
61
        QString cast_error;
 
62
 
 
63
        QStringList m_existed_chains;
 
64
        QIntDict< QStringList > m_dict_existed_rules;
 
65
 
 
66
        bool m_show_desc, m_show_cmds;
 
67
 
 
68
        QPixmap icon_up, icon_down, icon_del, icon_edit, icon_rule, icon_filter, icon_rename,
 
69
        icon_chain, icon_log, icon_accept, icon_drop, icon_cmd, icon_reject, icon_return,
 
70
                icon_target, icon_queue, icon_new, icon_disabled, icon_feed, icon_fwd, icon_fwds;
 
71
signals:
 
72
        void sigLoadNode( NetfilterObject* );
 
73
};
 
74
 
 
75
#endif