diff options
Diffstat (limited to 'c++-qt/src/list.h')
-rw-r--r-- | c++-qt/src/list.h | 99 |
1 files changed, 53 insertions, 46 deletions
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 @@ | |||
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_LIST_H | 8 | #ifndef GATS_LIST_H |
2 | #define GATS_LIST_H | 9 | #define GATS_LIST_H |
3 | 10 | ||
@@ -6,52 +13,52 @@ | |||
6 | 13 | ||
7 | namespace Gats | 14 | namespace Gats |
8 | { | 15 | { |
9 | class Dictionary; | 16 | class Dictionary; |
10 | 17 | ||
11 | class List : public Gats::Object, public QList<Gats::Object *> | 18 | class List : public Gats::Object, public QList<Gats::Object *> |
12 | { | 19 | { |
13 | Q_OBJECT; | 20 | Q_OBJECT; |
14 | public: | 21 | public: |
15 | List(); | 22 | List(); |
16 | virtual ~List(); | 23 | virtual ~List(); |
17 | 24 | ||
18 | virtual Object *clone() const; | 25 | virtual Object *clone() const; |
19 | 26 | ||
20 | virtual Type getType() const { return typeList; } | 27 | virtual Type getType() const { return typeList; } |
21 | 28 | ||
22 | virtual void write( QIODevice &rOut ) const; | 29 | virtual void write( QIODevice &rOut ) const; |
23 | virtual void read( QIODevice &rIn, char cType ); | 30 | virtual void read( QIODevice &rIn, char cType ); |
24 | 31 | ||
25 | void append( const char *s ); | 32 | void append( const char *s ); |
26 | void append( const QByteArray &s ); | 33 | void append( const QByteArray &s ); |
27 | void append( int32_t i ); | 34 | void append( int32_t i ); |
28 | void append( int64_t i ); | 35 | void append( int64_t i ); |
29 | void append( double d ); | 36 | void append( double d ); |
30 | using QList<Gats::Object *>::append; | 37 | using QList<Gats::Object *>::append; |
31 | void appendStr( const QByteArray &s ); | 38 | void appendStr( const QByteArray &s ); |
32 | void appendInt( int64_t i ); | 39 | void appendInt( int64_t i ); |
33 | void appendFloat( double d ); | 40 | void appendFloat( double d ); |
34 | void appendBool( bool b ); | 41 | void appendBool( bool b ); |
35 | void appendList( Gats::List *pL ); | 42 | void appendList( Gats::List *pL ); |
36 | void appendDict( Gats::Dictionary *pD ); | 43 | void appendDict( Gats::Dictionary *pD ); |
37 | Gats::List *appendList(); | 44 | Gats::List *appendList(); |
38 | Gats::Dictionary *appendDict(); | 45 | Gats::Dictionary *appendDict(); |
39 | 46 | ||
40 | void prepend( const char *s ); | 47 | void prepend( const char *s ); |
41 | void prepend( const QByteArray &s ); | 48 | void prepend( const QByteArray &s ); |
42 | void prepend( int32_t i ); | 49 | void prepend( int32_t i ); |
43 | void prepend( int64_t i ); | 50 | void prepend( int64_t i ); |
44 | void prepend( double d ); | 51 | void prepend( double d ); |
45 | using QList<Gats::Object *>::prepend; | 52 | using QList<Gats::Object *>::prepend; |
46 | void prependStr( const QByteArray &s ); | 53 | void prependStr( const QByteArray &s ); |
47 | void prependInt( int64_t i ); | 54 | void prependInt( int64_t i ); |
48 | void prependFloat( double d ); | 55 | void prependFloat( double d ); |
49 | void prependBool( bool b ); | 56 | void prependBool( bool b ); |
50 | void prependList( Gats::List *pL ); | 57 | void prependList( Gats::List *pL ); |
51 | void prependDict( Gats::Dictionary *pD ); | 58 | void prependDict( Gats::Dictionary *pD ); |
52 | Gats::List *prependList(); | 59 | Gats::List *prependList(); |
53 | Gats::Dictionary *prependDict(); | 60 | Gats::Dictionary *prependDict(); |
54 | }; | 61 | }; |
55 | }; | 62 | }; |
56 | 63 | ||
57 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::List &l ); | 64 | //Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::List &l ); |