Browse code

Add source code of the XiPC emulator

Pawel Jablonski authored on 17/03/2023 16:46:08
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+/*
2
+ * Author: Pawel Jablonski
3
+ * E-mail: pj@xirx.net
4
+ * WWW: xirx.net
5
+ * GIT: git.xirx.net
6
+ *
7
+ * License: You can use this code however you like
8
+ * but leave information about the original author.
9
+ * Code is free for non-commercial and commercial use.
10
+ */
11
+
12
+#ifndef LED_H
13
+#define LED_H
14
+
15
+#include <QObject>
16
+
17
+//! This class contains status LED functions
18
+class LED : public QObject
19
+{
20
+	Q_OBJECT
21
+
22
+	public:
23
+		LED(QObject *parent = nullptr);
24
+
25
+		void reset();
26
+
27
+		void setRun(bool enable);
28
+		void setError(bool enable);
29
+
30
+	private:
31
+		bool run; //!< Run LED status
32
+		bool error; //!< Error LED status
33
+
34
+	signals:
35
+		void updateRunSignal(bool enable);
36
+		void updateErrorSignal(bool enable);
37
+};
38
+
39
+#endif