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

« back to all changes in this revision

Viewing changes to kmyfirewall/ruleoptionplugins/protocol_option/kmfruleoptioneditprotocol.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2005-12-17 13:42:07 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20051217134207-mo1m08da6szv41u7
Tags: 1.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    Copyright (C) 2004 Christian Hubinger
 
3
 ***************************************************************************/
 
4
 
 
5
/***************************************************************************
 
6
 *                                                                         *
 
7
 *   This program is free software; you can redistribute it and/or modify  *
 
8
 *   it under the terms of the GNU General Public License as published by  *
 
9
 *   the Free Software Foundation; either version 2 of the License, or     *
 
10
 *   (at your option) any later version.                                   *
 
11
 *                                                                         *
 
12
 ***************************************************************************/
 
13
//
 
14
// C++ Interface: kmfruleoptioneditiip
 
15
//
 
16
// Description:
 
17
//
 
18
//
 
19
// Author: Christian Hubinger <chubinger@gmail.com>, (C) 2004
 
20
//
 
21
// Copyright: See COPYING file that comes with this distribution
 
22
//
 
23
//
 
24
#ifndef KMFRULEOPTIONEDITPROTOCOL_H
 
25
#define KMFRULEOPTIONEDITPROTOCOL_H
 
26
 
 
27
#include "../../interfaces/kmfruleoptioneditinterface.h"
 
28
 
 
29
// KDE includes
 
30
#include <kparts/part.h>
 
31
#include <kparts/plugin.h>
 
32
#include <kparts/factory.h>
 
33
#include <kxmlgui.h>
 
34
 
 
35
 
 
36
class IPTRule;
 
37
class KMFRuleEditorProtocol;
 
38
/**
 
39
@author Christian Hubinger
 
40
*/
 
41
class KMFRuleOptionEditProtocol : public KMFRuleOptionEditInterface {
 
42
        Q_OBJECT
 
43
public:
 
44
        KMFRuleOptionEditProtocol(QObject *parent = 0, const char *name = 0);
 
45
 
 
46
        ~KMFRuleOptionEditProtocol();
 
47
        void loadRule( IPTRule* rule ); 
 
48
        QWidget* editWidget();
 
49
        const QString& optionEditName() const;
 
50
        const QString& description() const;
 
51
 
 
52
private slots:
 
53
        void slotAddRuleOption(QString*, QPtrList< QString >* );
 
54
        void slotAddTargetOption(QString*, QPtrList< QString >* );
 
55
        void slotShowOverview();
 
56
 
 
57
private:
 
58
        KMFRuleEditorProtocol *m_edit;
 
59
        IPTRule *m_rule;
 
60
        
 
61
};
 
62
 
 
63
class KInstance;
 
64
 
 
65
class KMFRuleOptionEditProtocolFactory : public KLibFactory {
 
66
        Q_OBJECT
 
67
public:
 
68
        KMFRuleOptionEditProtocolFactory( QObject *parent = 0, const char *name = 0 );
 
69
        virtual ~KMFRuleOptionEditProtocolFactory() {
 
70
/*              delete s_instance; */
 
71
        };
 
72
        virtual QObject* createObject( QObject* parent = 0, const char* pname = 0,
 
73
                                       const char* name = "QObject",
 
74
                                       const QStringList &args = QStringList() );
 
75
        /*     static KInstance* instance(); */
 
76
 
 
77
/*private:
 
78
        static KInstance* s_instance;*/
 
79
};
 
80
 
 
81
 
 
82
 
 
83
 
 
84
 
 
85
 
 
86
 
 
87
 
 
88
 
 
89
#endif