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/list.h | 99 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 53 insertions(+), 46 deletions(-) (limited to 'c++-qt/src/list.h') diff --git a/c++-qt/src/list.h b/c++-qt/src/list.h index 6e5ac56..7577bad 100644 --- a/c++-qt/src/list.h +++ b/c++-qt/src/list.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_LIST_H #define GATS_LIST_H @@ -6,52 +13,52 @@ namespace Gats { - class Dictionary; - - class List : public Gats::Object, public QList - { - Q_OBJECT; - public: - List(); - virtual ~List(); - - virtual Object *clone() const; - - virtual Type getType() const { return typeList; } - - virtual void write( QIODevice &rOut ) const; - virtual void read( QIODevice &rIn, char cType ); - - void append( const char *s ); - void append( const QByteArray &s ); - void append( int32_t i ); - void append( int64_t i ); - void append( double d ); - using QList::append; - void appendStr( const QByteArray &s ); - void appendInt( int64_t i ); - void appendFloat( double d ); - void appendBool( bool b ); - void appendList( Gats::List *pL ); - void appendDict( Gats::Dictionary *pD ); - Gats::List *appendList(); - Gats::Dictionary *appendDict(); - - void prepend( const char *s ); - void prepend( const QByteArray &s ); - void prepend( int32_t i ); - void prepend( int64_t i ); - void prepend( double d ); - using QList::prepend; - void prependStr( const QByteArray &s ); - void prependInt( int64_t i ); - void prependFloat( double d ); - void prependBool( bool b ); - void prependList( Gats::List *pL ); - void prependDict( Gats::Dictionary *pD ); - Gats::List *prependList(); - Gats::Dictionary *prependDict(); - }; + class Dictionary; + + class List : public Gats::Object, public QList + { + Q_OBJECT; + public: + List(); + virtual ~List(); + + virtual Object *clone() const; + + virtual Type getType() const { return typeList; } + + virtual void write( QIODevice &rOut ) const; + virtual void read( QIODevice &rIn, char cType ); + + void append( const char *s ); + void append( const QByteArray &s ); + void append( int32_t i ); + void append( int64_t i ); + void append( double d ); + using QList::append; + void appendStr( const QByteArray &s ); + void appendInt( int64_t i ); + void appendFloat( double d ); + void appendBool( bool b ); + void appendList( Gats::List *pL ); + void appendDict( Gats::Dictionary *pD ); + Gats::List *appendList(); + Gats::Dictionary *appendDict(); + + void prepend( const char *s ); + void prepend( const QByteArray &s ); + void prepend( int32_t i ); + void prepend( int64_t i ); + void prepend( double d ); + using QList::prepend; + void prependStr( const QByteArray &s ); + void prependInt( int64_t i ); + void prependFloat( double d ); + void prependBool( bool b ); + void prependList( Gats::List *pL ); + void prependDict( Gats::Dictionary *pD ); + Gats::List *prependList(); + Gats::Dictionary *prependDict(); + }; }; //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::List &l ); -- cgit v1.2.3