summaryrefslogtreecommitdiffstats
path: root/ksysv/Properties.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 /ksysv/Properties.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 'ksysv/Properties.h')
-rw-r--r--ksysv/Properties.h110
1 files changed, 110 insertions, 0 deletions
diff --git a/ksysv/Properties.h b/ksysv/Properties.h
new file mode 100644
index 0000000..0e3225d
--- /dev/null
+++ b/ksysv/Properties.h
@@ -0,0 +1,110 @@
+// (c) 2000 Peter Putzer
+
+#ifndef PROPERTIES_H
+#define PROPERTIES_H
+
+#include <kpropertiesdialog.h>
+
+class QHBox;
+class QVBox;
+class QTextView;
+class QSpinBox;
+
+class KLineEdit;
+
+class KSVData;
+
+class KSVServicePropertiesDialog : public KPropertiesDialog
+{
+ Q_OBJECT
+
+public:
+ KSVServicePropertiesDialog (KSVData& data, QWidget* parent);
+ virtual ~KSVServicePropertiesDialog ();
+
+signals:
+ void startService (const QString&);
+ void stopService (const QString&);
+ void restartService (const QString&);
+ void editService (const QString&);
+
+private slots:
+ void doEdit ();
+ void doStart ();
+ void doStop ();
+ void doRestart ();
+
+private:
+ KSVData& mData;
+};
+
+
+class KSVEntryPropertiesDialog : public KPropertiesDialog
+{
+ Q_OBJECT
+
+public:
+ KSVEntryPropertiesDialog (KSVData& data, QWidget* parent);
+ virtual ~KSVEntryPropertiesDialog ();
+
+signals:
+ void startService (const QString&);
+ void stopService (const QString&);
+ void restartService (const QString&);
+ void editService (const QString&);
+
+private slots:
+ void doEdit ();
+ void doStart ();
+ void doStop ();
+ void doRestart ();
+
+private:
+ KSVData& mData;
+};
+
+class KSVEntryPage : public KPropsDlgPlugin
+{
+ Q_OBJECT
+
+public:
+ KSVEntryPage (KSVData& data, KPropertiesDialog* props);
+ virtual ~KSVEntryPage ();
+
+ virtual void applyChanges ();
+
+ inline int pageIndex () const { return mIndex; }
+
+private slots:
+ void emitChanged ();
+
+private:
+ KSVData& mData;
+ QFrame* mPage;
+ int mIndex;
+
+ KLineEdit* mServiceEdit;
+ KLineEdit* mLabelEdit;
+ QSpinBox* mNumberEdit;
+};
+
+class KSVServicesPage : public KPropsDlgPlugin
+{
+ Q_OBJECT
+
+public:
+ KSVServicesPage (KSVData& data, KPropertiesDialog* props);
+ virtual ~KSVServicesPage ();
+
+ virtual void applyChanges ();
+
+ inline int pageIndex () const { return mIndex; }
+
+private:
+ KSVData& mData;
+ QVBox* mPage;
+ QTextView* mDesc;
+ int mIndex;
+};
+
+#endif // PROPERTIES_H