summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.h')
-rw-r--r--kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.h b/kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.h
new file mode 100644
index 0000000..7f5e732
--- /dev/null
+++ b/kmyfirewall/ruleoptionplugins/tos_target_option/kmfruleeditortos.h
@@ -0,0 +1,59 @@
+/***************************************************************************
+ begin : Wed Mar 27 2002
+ copyright : (C) 2002 by Christian Hubinger
+ email : chubinger@irrsinnig.org
+***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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. *
+ * *
+ ***************************************************************************/
+
+#ifndef KMFRULEEDITORTOS_H
+#define KMFRULEEDITORTOS_H
+#include "kmyfirewallruleeditortos.h"
+
+#include <qwidget.h>
+#include <qptrlist.h>
+#include <qstring.h>
+namespace KMF {
+class IPTRule;
+
+/**
+ *@author Christian Hubinger
+ */
+
+class KMFRuleEditorTos : public KMyFirewallRuleEditorTos {
+ Q_OBJECT
+public:
+ KMFRuleEditorTos( QWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
+ ~KMFRuleEditorTos();
+ QPtrList<QString>* options;
+
+ void loadRule( IPTRule* );
+ void setType( const QString& type );
+
+public slots:
+ void accept();
+ void reject();
+ void slotHelp();
+
+private: // data
+ QString m_option_type;
+ IPTRule *m_rule;
+ void setItems();
+ int getItemNum( const QString& option );
+signals:
+/* void sigAddRuleOpt( QString *, QPtrList<QString> * );
+ void sigDelRuleOpt( QString * );
+ void sigAddTargetOpt( QString*, QPtrList<QString>* );
+ void sigDelTargetOpt( QString * );*/
+ void sigDocumentChanged();
+ void sigHideMe();
+};
+}
+#endif