diff options
Diffstat (limited to 'c++-qt/src/boolean.h')
| -rw-r--r-- | c++-qt/src/boolean.h | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/c++-qt/src/boolean.h b/c++-qt/src/boolean.h index d707e4d..7e42981 100644 --- a/c++-qt/src/boolean.h +++ b/c++-qt/src/boolean.h | |||
| @@ -1,3 +1,10 @@ | |||
| 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 | |||
| 1 | #ifndef GATS_BOOLEAN_H | 8 | #ifndef GATS_BOOLEAN_H |
| 2 | #define GATS_BOOLEAN_H | 9 | #define GATS_BOOLEAN_H |
| 3 | 10 | ||
| @@ -7,26 +14,26 @@ class QIODevice; | |||
| 7 | 14 | ||
| 8 | namespace Gats | 15 | namespace Gats |
| 9 | { | 16 | { |
| 10 | class Boolean : public Gats::Object | 17 | class Boolean : public Gats::Object |
| 11 | { | 18 | { |
| 12 | Q_OBJECT; | 19 | Q_OBJECT; |
| 13 | public: | 20 | public: |
| 14 | Boolean(); | 21 | Boolean(); |
| 15 | Boolean( bool bVal ); | 22 | Boolean( bool bVal ); |
| 16 | virtual ~Boolean(); | 23 | virtual ~Boolean(); |
| 17 | 24 | ||
| 18 | virtual Object *clone() const; | 25 | virtual Object *clone() const; |
| 19 | 26 | ||
| 20 | virtual Type getType() const { return typeBoolean; } | 27 | virtual Type getType() const { return typeBoolean; } |
| 21 | bool getValue() const { return bVal; } | 28 | bool getValue() const { return bVal; } |
| 22 | void setValue( bool b ) { bVal = b; } | 29 | void setValue( bool b ) { bVal = b; } |
| 23 | 30 | ||
| 24 | virtual void write( QIODevice &rOut ) const; | 31 | virtual void write( QIODevice &rOut ) const; |
| 25 | virtual void read( QIODevice &rIn, char cType ); | 32 | virtual void read( QIODevice &rIn, char cType ); |
| 26 | 33 | ||
| 27 | private: | 34 | private: |
| 28 | bool bVal; | 35 | bool bVal; |
| 29 | }; | 36 | }; |
| 30 | }; | 37 | }; |
| 31 | 38 | ||
| 32 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ); | 39 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ); |
