summaryrefslogtreecommitdiffstats
path: root/kcron/ktprintopt.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit37333bf25ad9a4c538250f5af2f9f1d666362883 (patch)
treec45e8df5b9efbffe07eb3d9340df7811c7e16943 /kcron/ktprintopt.h
downloadtdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.tar.gz
tdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron/ktprintopt.h')
-rw-r--r--kcron/ktprintopt.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/kcron/ktprintopt.h b/kcron/ktprintopt.h
new file mode 100644
index 0000000..0ab1810
--- /dev/null
+++ b/kcron/ktprintopt.h
@@ -0,0 +1,52 @@
+
+/***************************************************************************
+ * -------------------------------------------------------------------- *
+ * Print Options Dialog *
+ * -------------------------------------------------------------------- *
+ * Copyright (C) 1999, Robert Berry <rjmber@ntlwolrd.com> *
+ * -------------------------------------------------------------------- *
+ * 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 KTPRINTOPT_H
+#define KTPRINTOPT_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <kdeprint/kprintdialogpage.h>
+
+class QCheckBox;
+class KAccel;
+
+/**
+ *Give the user the option to print the crontab file.
+ *If the user is root ask if they want to print all the users
+ */
+
+class KTPrintOpt : public KPrintDialogPage
+{
+ Q_OBJECT
+public:
+
+/**
+ * Constructs the dialog, if root is true the print all users is not disabled
+ */
+ KTPrintOpt(bool root = false);
+
+ ~KTPrintOpt();
+
+ void setOptions(const QMap<QString,QString>& options);
+ void getOptions(QMap<QString,QString>& options, bool incldef = false);
+
+
+private:
+ QCheckBox* chkPrintCrontab;
+ QCheckBox* chkPrintAllUsers;
+};
+
+#endif