summaryrefslogtreecommitdiffstats
path: root/kcron/ktprintopt.h
blob: 9c1717418df77236721e5f51c1a2895b02fe06ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

/***************************************************************************
 *   --------------------------------------------------------------------  *
 *   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 <tdeprint/kprintdialogpage.h>

class TQCheckBox;
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
  TQ_OBJECT
public:

/**
  * Constructs the dialog, if root is true the print all users is not disabled
  */
  KTPrintOpt(bool root = false);

  ~KTPrintOpt();

  void setOptions(const TQMap<TQString,TQString>& options);
  void getOptions(TQMap<TQString,TQString>& options, bool incldef = false);


private:
  TQCheckBox*      chkPrintCrontab;
  TQCheckBox*      chkPrintAllUsers;
};

#endif