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

« back to all changes in this revision

Viewing changes to kmyfirewall/compilers/pf/kmfpfcompiler.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
// C++ Interface: kmfpfcompiler
 
3
//
 
4
// Description:
 
5
//
 
6
//
 
7
// Author: Christian Hubinger <e9806056@student.tuwien.ac.at>, (C) 2004
 
8
//
 
9
// Copyright: See COPYING file that comes with this distribution
 
10
//
 
11
//
 
12
#ifndef KMFPFCOMPILER_H
 
13
#define KMFPFCOMPILER_H
 
14
 
 
15
#include "../../interfaces/kmfcompilerinterface.h"
 
16
 
 
17
/**
 
18
@author Christian Hubinger
 
19
*/
 
20
 
 
21
// QT includes
 
22
#include <qstring.h>
 
23
#include <qobject.h>
 
24
 
 
25
// KDE includes
 
26
#include <kparts/part.h>
 
27
#include <kparts/plugin.h>
 
28
#include <kparts/factory.h>
 
29
#include <kxmlgui.h>
 
30
 
 
31
// Project includes
 
32
class KMFGenericDoc;
 
33
class KMFIPTDoc;
 
34
class KMFNetZone;
 
35
class IPTChain;
 
36
 
 
37
#include "../../interfaces/kmfplugin.h"
 
38
#include "../../interfaces/kmfcompilerinterface.h"
 
39
 
 
40
 
 
41
class KMFPFCompiler :  public KMFPlugin, public virtual KMFCompilerInterface {
 
42
        Q_OBJECT
 
43
public:
 
44
        KMFPFCompiler( QObject* parent, const char* name );
 
45
        ~KMFPFCompiler();
 
46
        void compile();
 
47
        const QString& compile( KMFGenericDoc* );
 
48
        const QString& osName();
 
49
        const QString& osGUIName();
 
50
        const QString& backendName();
 
51
        const QString& backendGUIName();
 
52
 
 
53
private:
 
54
        KMFGenericDoc *m_doc;
 
55
        QString m_osName;
 
56
        QString m_osGUIName;
 
57
        QString m_backendName;
 
58
        QString m_backendGUIName;
 
59
private slots:
 
60
        void slotExportPF();
 
61
        void slotShowPFScript();
 
62
};
 
63
 
 
64
 
 
65
 
 
66
 
 
67
class KInstance;
 
68
 
 
69
class KMFPFCompilerFactory : public KLibFactory {
 
70
        Q_OBJECT
 
71
public:
 
72
        KMFPFCompilerFactory( QObject *parent = 0, const char *name = 0 );
 
73
        virtual ~KMFPFCompilerFactory() {
 
74
/*              delete s_instance; */
 
75
        };
 
76
        virtual QObject* createObject( QObject* parent = 0, const char* pname = 0,
 
77
                                       const char* name = "QObject",
 
78
                                       const QStringList &args = QStringList() );
 
79
        /*     static KInstance* instance(); */
 
80
 
 
81
/*private:
 
82
        static KInstance* s_instance;*/
 
83
};
 
84
 
 
85
 
 
86
 
 
87
#endif