From d534a56d95bca7bdd812be024d9eacba4734e2b7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2012 17:20:11 +0000 Subject: Many changes: tabconv'd the C++ code, added a license, BSD, and docs. --- c++-qt/src/boolean.h | 47 +++++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 20 deletions(-) (limited to 'c++-qt/src/boolean.h') 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 @@ +/* + * Copyright (C) 2007-2012 Xagasoft, All rights reserved. + * + * This file is part of the libgats library and is released under the + * terms of the license contained in the file LICENSE. + */ + #ifndef GATS_BOOLEAN_H #define GATS_BOOLEAN_H @@ -7,26 +14,26 @@ class QIODevice; namespace Gats { - class Boolean : public Gats::Object - { - Q_OBJECT; - public: - Boolean(); - Boolean( bool bVal ); - virtual ~Boolean(); - - virtual Object *clone() const; - - virtual Type getType() const { return typeBoolean; } - bool getValue() const { return bVal; } - void setValue( bool b ) { bVal = b; } - - virtual void write( QIODevice &rOut ) const; - virtual void read( QIODevice &rIn, char cType ); - - private: - bool bVal; - }; + class Boolean : public Gats::Object + { + Q_OBJECT; + public: + Boolean(); + Boolean( bool bVal ); + virtual ~Boolean(); + + virtual Object *clone() const; + + virtual Type getType() const { return typeBoolean; } + bool getValue() const { return bVal; } + void setValue( bool b ) { bVal = b; } + + virtual void write( QIODevice &rOut ) const; + virtual void read( QIODevice &rIn, char cType ); + + private: + bool bVal; + }; }; //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ); -- cgit v1.2.3