~ubuntu-branches/ubuntu/natty/kdeadmin/natty-proposed

« back to all changes in this revision

Viewing changes to ksysv/Properties.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-02-27 21:36:45 UTC
  • mfrom: (1.2.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20100227213645-ronst6mahkgf6j9w
Tags: 4:4.4.1-0ubuntu1
* New upstream release
  - Bump build-depends
  - Update kcron.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
   Copyright 2000 Peter Putzer <putzer@kde.org>
3
 
 
4
 
   This program is free software; you can redistribute it and/or
5
 
   modify it under the terms of the GNU General Public
6
 
   License as published by the Free Software Foundation; either
7
 
   version 2 of the License, or (at your option) any later version.
8
 
 
9
 
   This program is distributed in the hope that it will be useful,
10
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
   General Public License for more details.
13
 
 
14
 
   You should have received a copy of the GNU General Public License
15
 
   along with this program; if not, write to the Free Software
16
 
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
 
*/
18
 
 
19
 
#ifndef PROPERTIES_H
20
 
#define PROPERTIES_H
21
 
 
22
 
#include <kpropertiesdialog.h>
23
 
//Added by qt3to4:
24
 
#include <QFrame>
25
 
 
26
 
class Q3HBox;
27
 
class Q3VBox;
28
 
class Q3TextView;
29
 
class KIntSpinBox;
30
 
 
31
 
class KLineEdit;
32
 
 
33
 
class KSVData;
34
 
 
35
 
class KSVServicePropertiesDialog : public KPropertiesDialog
36
 
{
37
 
  Q_OBJECT
38
 
 
39
 
public:
40
 
  KSVServicePropertiesDialog (KSVData& data, QWidget* parent);
41
 
  virtual ~KSVServicePropertiesDialog ();
42
 
 
43
 
signals:
44
 
  void startService (const QString&);
45
 
  void stopService (const QString&);
46
 
  void restartService (const QString&);
47
 
  void editService (const QString&);
48
 
 
49
 
private slots:
50
 
  void doEdit ();
51
 
  void doStart ();
52
 
  void doStop ();
53
 
  void doRestart ();
54
 
 
55
 
private:
56
 
  KSVData& mData;
57
 
};
58
 
 
59
 
 
60
 
class KSVEntryPropertiesDialog : public KPropertiesDialog
61
 
{
62
 
  Q_OBJECT
63
 
 
64
 
public:
65
 
  KSVEntryPropertiesDialog (KSVData& data, QWidget* parent);
66
 
  virtual ~KSVEntryPropertiesDialog ();
67
 
 
68
 
signals:
69
 
  void startService (const QString&);
70
 
  void stopService (const QString&);
71
 
  void restartService (const QString&);
72
 
  void editService (const QString&);
73
 
 
74
 
private slots:
75
 
  void doEdit ();
76
 
  void doStart ();
77
 
  void doStop ();
78
 
  void doRestart ();
79
 
 
80
 
private:
81
 
  KSVData& mData;
82
 
};
83
 
 
84
 
class KSVEntryPage : public KPropertiesDialogPlugin
85
 
{
86
 
  Q_OBJECT
87
 
 
88
 
public:
89
 
  KSVEntryPage (KSVData& data, KPropertiesDialog* props);
90
 
  virtual ~KSVEntryPage ();
91
 
 
92
 
  virtual void applyChanges ();
93
 
 
94
 
  inline int pageIndex () const { return mIndex; }
95
 
 
96
 
private slots:
97
 
  void emitChanged ();
98
 
 
99
 
private:
100
 
  KSVData& mData;
101
 
  QFrame* mPage;
102
 
  int mIndex;
103
 
 
104
 
  KLineEdit* mServiceEdit;
105
 
  KLineEdit* mLabelEdit;
106
 
  KIntSpinBox* mNumberEdit;
107
 
};
108
 
 
109
 
class KSVServicesPage : public KPropertiesDialogPlugin
110
 
{
111
 
  Q_OBJECT
112
 
 
113
 
public:
114
 
  KSVServicesPage (KSVData& data, KPropertiesDialog* props);
115
 
  virtual ~KSVServicesPage ();
116
 
 
117
 
  virtual void applyChanges ();
118
 
 
119
 
  inline int pageIndex () const { return mIndex; }
120
 
 
121
 
private:
122
 
  KSVData& mData;
123
 
  QFrame* mPage;
124
 
  Q3TextView* mDesc;
125
 
  int mIndex;
126
 
};
127
 
 
128
 
#endif // PROPERTIES_H