summaryrefslogtreecommitdiffstats
path: root/src/kcpudock.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-12-13 18:35:41 +0100
committerSlávek Banko <[email protected]>2018-12-13 18:42:30 +0100
commit8395ccefd8ea126232281bcb7588fac2acc0d50e (patch)
treea9da7353c968154a9759e70989334dd4c6ab4312 /src/kcpudock.h
parent4ed562b360187e997a28f455d3382491cc764254 (diff)
downloadkcpuload-8395ccefd8ea126232281bcb7588fac2acc0d50e.tar.gz
kcpuload-8395ccefd8ea126232281bcb7588fac2acc0d50e.zip
Fix structure of directories
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 0557917aa98c792eb316ce176c97849f3e7bdb3e)
Diffstat (limited to 'src/kcpudock.h')
-rw-r--r--src/kcpudock.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/kcpudock.h b/src/kcpudock.h
new file mode 100644
index 0000000..f96e411
--- /dev/null
+++ b/src/kcpudock.h
@@ -0,0 +1,41 @@
+
+/***************************************************************************
+ * *
+ * KCPULoad is copyright (c) 1999-2000, Markus Gustavsson *
+ * (c) 2002, Ben Burton *
+ * *
+ * 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 __KCPUDOCK_H
+#define __KCPUDOCK_H
+
+#include "statdock.h"
+
+/**
+ * A KCPULoad system tray window for a specific CPU.
+ */
+class KCPUDock : public StatDock {
+
+public:
+ /**
+ * Constructor.
+ */
+ KCPUDock(int whichDock, StatPopup *parent = 0, const char *name = 0);
+
+ /**
+ * Sets the label for this diagram. The label will reflect which
+ * CPU the diagram represents.
+ *
+ * If multiple CPUs are not used, argument cpu should be 0.
+ * Otherwise argument cpu should be 1 or 2 for the first or second
+ * CPU respectively.
+ */
+ void setCPULabel(int cpu);
+};
+
+#endif