blob: 1a650a68f94bbbd8b301291da65fd62afcbf3b34 (
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
79
80
81
82
83
84
85
86
87
|
//
// C++ Interface: kmfprotocolcategory
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KMFPROTOCOLCATEGORY_H
#define KMFPROTOCOLCATEGORY_H
#include "netfilterobject.h"
// QT includes
#include <tqstringlist.h>
#include <tqstring.h>
#include <tqguardedptr.h>
#include <tqvaluelist.h>
#include <tqmap.h>
#include <tquuid.h>
#include <tqobject.h>
// KDE includes
#include <kdemacros.h>
#include <kurl.h>
namespace KMF {
class KMFProtocol;
/**
@author Christian Hubinger <chubinger@irrsinnig.org>
*/
class KDE_EXPORT KMFProtocolCategory : public NetfilterObject
{
Q_OBJECT
TQ_OBJECT
public:
static KMFProtocolCategory* createCategory( const TQString& name );
static KMFProtocolCategory* getCustomCategory();
private:
static const TQUuid& customCategoryUuid();
static const TQUuid& miscCategoryUuid();
public:
~KMFProtocolCategory();
KMFProtocol* createProtocol( const TQString& name );
TQValueList< KMFProtocol* >& protocols() const;
KMFProtocol* findProtocolByUuid( const TQUuid& name ) const;
virtual int type();
virtual void clear();
virtual const TQDomDocument& getDOMTree();
virtual void loadXML(const TQDomDocument&, TQStringList& errors );
virtual void loadXML( TQDomNode, TQStringList& errors );
void delProtocol( KMFProtocol*, bool destructive /* = false */);
public slots:
void slotOnProtocolDeleted( TQObject* protocol );
private:
KMFProtocol* findProtocolByName( const TQString& name ) const;
KMFProtocol* addProtocol( KMFProtocol* );
private: // DATA
KMFProtocolCategory( NetfilterObject* tqparent, const char* name );
TQString m_icon;
TQValueList< KMFProtocol* > m_protocols;
};
}
#endif
|