summaryrefslogtreecommitdiffstats
path: root/ksysv/RunlevelAuthIcon.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/RunlevelAuthIcon.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/RunlevelAuthIcon.h')
-rw-r--r--ksysv/RunlevelAuthIcon.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/ksysv/RunlevelAuthIcon.h b/ksysv/RunlevelAuthIcon.h
new file mode 100644
index 0000000..d33f24d
--- /dev/null
+++ b/ksysv/RunlevelAuthIcon.h
@@ -0,0 +1,49 @@
+#ifndef RUNLEVEL_AUTH_ICON_H
+#define RUNLEVEL_AUTH_ICON_H
+
+// (c) 2000 Peter Putzer <[email protected]>
+#include <kauthicon.h>
+
+class QTimer;
+class QFileInfo;
+
+class RunlevelAuthIcon : public KAuthIcon
+{
+ Q_OBJECT
+ Q_PROPERTY (int refreshInterval READ refreshInterval WRITE setRefreshInterval)
+
+public:
+ RunlevelAuthIcon (const QString& scriptPath, const QString& runlevelPath,
+ QWidget* parent = 0L, const char* name = 0L);
+
+ virtual ~RunlevelAuthIcon ();
+
+ virtual bool status () const;
+
+ inline int refreshInterval () const { return mInterval; }
+ inline bool isCheckEnabled () const { return mCheckEnabled; }
+
+public slots:
+ virtual void updateStatus ();
+
+ void setServicesPath (const QString& servicesPath);
+ void setRunlevelPath (const QString& runlevelPath);
+
+ void setRefreshInterval (int);
+
+ void setCheckEnabled(bool);
+
+private slots:
+ void timerEvent ();
+
+private:
+ QTimer* mTimer;
+ QFileInfo* mServicesInfo;
+ QFileInfo** mRLInfo;
+ bool mOld;
+ int mInterval;
+
+ bool mCheckEnabled;
+};
+
+#endif // RUNLEVEL_AUTH_ICON_H