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