1
/***************************************************************************
2
Copyright (C) 2004 Christian Hubinger
3
***************************************************************************/
5
/***************************************************************************
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. *
12
***************************************************************************/
14
// C++ Interface: kmfruleoptioneditiip
19
// Author: Christian Hubinger <chubinger@gmail.com>, (C) 2004
21
// Copyright: See COPYING file that comes with this distribution
24
#ifndef KMFRULEOPTIONEDITPROTOCOL_H
25
#define KMFRULEOPTIONEDITPROTOCOL_H
27
#include "../../interfaces/kmfruleoptioneditinterface.h"
30
#include <kparts/part.h>
31
#include <kparts/plugin.h>
32
#include <kparts/factory.h>
37
class KMFRuleEditorProtocol;
39
@author Christian Hubinger
41
class KMFRuleOptionEditProtocol : public KMFRuleOptionEditInterface {
44
KMFRuleOptionEditProtocol(QObject *parent = 0, const char *name = 0);
46
~KMFRuleOptionEditProtocol();
47
void loadRule( IPTRule* rule );
48
QWidget* editWidget();
49
const QString& optionEditName() const;
50
const QString& description() const;
53
void slotAddRuleOption(QString*, QPtrList< QString >* );
54
void slotAddTargetOption(QString*, QPtrList< QString >* );
55
void slotShowOverview();
58
KMFRuleEditorProtocol *m_edit;
65
class KMFRuleOptionEditProtocolFactory : public KLibFactory {
68
KMFRuleOptionEditProtocolFactory( QObject *parent = 0, const char *name = 0 );
69
virtual ~KMFRuleOptionEditProtocolFactory() {
70
/* delete s_instance; */
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(); */
78
static KInstance* s_instance;*/