summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/ruleoptionplugins/custom_option/kmfruleoptioneditcustom.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 01:04:17 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 01:04:17 +0000
commitc3b707c026782768bd8c0e6ae6b574fe8a36802d (patch)
tree5ca6782031b1546c788290cc0b95524369ff01ea /kmyfirewall/ruleoptionplugins/custom_option/kmfruleoptioneditcustom.h
downloadkmyfirewall-c3b707c026782768bd8c0e6ae6b574fe8a36802d.tar.gz
kmyfirewall-c3b707c026782768bd8c0e6ae6b574fe8a36802d.zip
Added old abandoned KDE3 version of kmyfirewall
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmyfirewall@1091559 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmyfirewall/ruleoptionplugins/custom_option/kmfruleoptioneditcustom.h')
-rw-r--r--kmyfirewall/ruleoptionplugins/custom_option/kmfruleoptioneditcustom.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/kmyfirewall/ruleoptionplugins/custom_option/kmfruleoptioneditcustom.h b/kmyfirewall/ruleoptionplugins/custom_option/kmfruleoptioneditcustom.h
new file mode 100644
index 0000000..c86fb43
--- /dev/null
+++ b/kmyfirewall/ruleoptionplugins/custom_option/kmfruleoptioneditcustom.h
@@ -0,0 +1,93 @@
+/***************************************************************************
+ Copyright (C) 2004 Christian Hubinger
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+//
+// C++ Interface: kmfruleoptioneditiip
+//
+// Description:
+//
+//
+// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2004
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef KMFRULEOPTIONEDITCUSTOM_H
+#define KMFRULEOPTIONEDITCUSTOM_H
+
+#include "../../core/kmfruleoptioneditinterface.h"
+
+// QT includes
+#include <qobject.h>
+#include <qptrlist.h>
+#include <qstring.h>
+
+// KDE includes
+#include <kparts/part.h>
+#include <kparts/plugin.h>
+#include <kparts/factory.h>
+#include <kxmlgui.h>
+class KInstance;
+
+namespace KMF {
+class IPTRule;
+class KMFRuleEditCustomOpt;
+/**
+@author Christian Hubinger
+*/
+class KMFRuleOptionEditCustom : public KMFRuleOptionEditInterface {
+ Q_OBJECT
+public:
+ KMFRuleOptionEditCustom(QObject *parent = 0, const char *name = 0, const QStringList& = QString::null);
+
+ ~KMFRuleOptionEditCustom();
+ void loadRule( IPTRule* rule );
+ QWidget* editWidget();
+ const QString& optionEditName() const;
+ const QString& description() const;
+ static KAboutData *createAboutData();
+
+private slots:
+ void slotShowOverview();
+
+private:
+ KMFRuleEditCustomOpt *m_edit;
+ IPTRule *m_rule;
+};
+
+
+
+class KMFRuleOptionEditCustomFactory : public KLibFactory {
+ Q_OBJECT
+public:
+ KMFRuleOptionEditCustomFactory( QObject *parent = 0, const char *name = 0 );
+ virtual ~KMFRuleOptionEditCustomFactory() {
+/* delete s_instance; */
+ };
+ virtual QObject* createObject( QObject* parent = 0, const char* pname = 0,
+ const char* name = "QObject",
+ const QStringList &args = QStringList() );
+ /* static KInstance* instance(); */
+
+/*private:
+ static KInstance* s_instance;*/
+};
+}
+
+
+
+
+
+
+
+
+#endif