diff options
Diffstat (limited to 'c++-qt/gats-qt/boolean.h')
-rw-r--r--[l---------] | c++-qt/gats-qt/boolean.h | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/c++-qt/gats-qt/boolean.h b/c++-qt/gats-qt/boolean.h index 27e9ba3..7e42981 120000..100644 --- a/c++-qt/gats-qt/boolean.h +++ b/c++-qt/gats-qt/boolean.h | |||
@@ -1 +1,41 @@ | |||
1 | ../src/boolean.h \ No newline at end of file | 1 | /* |
2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libgats library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | #ifndef GATS_BOOLEAN_H | ||
9 | #define GATS_BOOLEAN_H | ||
10 | |||
11 | #include "gats-qt/object.h" | ||
12 | |||
13 | class QIODevice; | ||
14 | |||
15 | namespace Gats | ||
16 | { | ||
17 | class Boolean : public Gats::Object | ||
18 | { | ||
19 | Q_OBJECT; | ||
20 | public: | ||
21 | Boolean(); | ||
22 | Boolean( bool bVal ); | ||
23 | virtual ~Boolean(); | ||
24 | |||
25 | virtual Object *clone() const; | ||
26 | |||
27 | virtual Type getType() const { return typeBoolean; } | ||
28 | bool getValue() const { return bVal; } | ||
29 | void setValue( bool b ) { bVal = b; } | ||
30 | |||
31 | virtual void write( QIODevice &rOut ) const; | ||
32 | virtual void read( QIODevice &rIn, char cType ); | ||
33 | |||
34 | private: | ||
35 | bool bVal; | ||
36 | }; | ||
37 | }; | ||
38 | |||
39 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ); | ||
40 | |||
41 | #endif | ||