aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/boolean.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++-qt/src/boolean.h')
-rw-r--r--c++-qt/src/boolean.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/c++-qt/src/boolean.h b/c++-qt/src/boolean.h
new file mode 100644
index 0000000..4eec690
--- /dev/null
+++ b/c++-qt/src/boolean.h
@@ -0,0 +1,32 @@
1#ifndef GATS_BOOLEAN_H
2#define GATS_BOOLEAN_H
3
4#include "gats-qt/object.h"
5
6class QIODevice;
7
8namespace Gats
9{
10 class Boolean : public Gats::Object
11 {
12 Q_OBJECT;
13 public:
14 Boolean();
15 Boolean( bool bVal );
16 virtual ~Boolean();
17
18 virtual Type getType() const { return typeBoolean; }
19 bool getValue() const { return bVal; }
20 void setValue( bool b ) { bVal = b; }
21
22 virtual void write( QIODevice &rOut ) const;
23 virtual void read( QIODevice &rIn, char cType );
24
25 private:
26 bool bVal;
27 };
28};
29
30//Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b );
31
32#endif