summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/kmfdisclaimer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmyfirewall/kmfdisclaimer.cpp')
-rw-r--r--kmyfirewall/kmfdisclaimer.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/kmyfirewall/kmfdisclaimer.cpp b/kmyfirewall/kmfdisclaimer.cpp
new file mode 100644
index 0000000..9fa2368
--- /dev/null
+++ b/kmyfirewall/kmfdisclaimer.cpp
@@ -0,0 +1,48 @@
+/***************************************************************************
+ begin : Tue Mar 19 2002
+ copyright : (C) 2002 by Christian Hubinger
+ email : a9806056@unet.univie.ac.at
+***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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. *
+ * *
+ ***************************************************************************/
+
+#include "kmfdisclaimer.h"
+#include "kmyfirewall.h"
+// kde
+#include <kconfig.h>
+#include <ksimpleconfig.h>
+#include <kurl.h>
+#include <kdebug.h>
+#include <kstandarddirs.h>
+#include <klocale.h>
+#include <kapplication.h>
+// qt
+#include <qmessagebox.h>
+#include <qfile.h>
+#include <qstring.h>
+#include <qcheckbox.h>
+
+KMFDisclaimer::KMFDisclaimer( QWidget *parent, const char *name, bool modal, WFlags fl ) : KMyFirewallDisclaimer( parent, name, modal, fl ) {}
+KMFDisclaimer::~KMFDisclaimer() {}
+
+void KMFDisclaimer::accept() {
+ KConfig * _config = kapp->config();
+ _config->setGroup( "STARTUP" );
+ if ( c_show->isChecked() ) {
+ _config->writeEntry( "show_disclaimer", "false" );
+ _config->sync();
+ } else {
+ _config->writeEntry( "show_disclaimer", "true" );
+ _config->sync();
+ }
+ QDialog::accept();
+}
+
+#include "kmfdisclaimer.moc"