1 /*
2     Kopete Oscar Protocol
3     oscartypeclasses.h - Oscar Type Definitions
4 
5     Copyright (c) 2004 Matt Rogers <mattr@kde.org>
6     Copyright (c) 2004 Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
7 
8     Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
9 
10     *************************************************************************
11     *                                                                       *
12     * This library is free software; you can redistribute it and/or         *
13     * modify it under the terms of the GNU Lesser General Public            *
14     * License as published by the Free Software Foundation; either          *
15     * version 2 of the License, or (at your option) any later version.      *
16     *                                                                       *
17     *************************************************************************
18 */
19 
20 #ifndef _OSCARTYPECLASSES_H_
21 #define _OSCARTYPECLASSES_H_
22 
23 #include <qglobal.h>
24 #include <qstring.h>
25 #include <QList>
26 #include "liboscar_export.h"
27 
28 namespace Oscar
29 {
30 class LIBOSCAR_EXPORT TLV
31 {
32 public:
33 
34 	TLV();
35 	TLV( quint16, quint16, char* data );
36 	TLV( quint16, quint16, const QByteArray& );
37 	TLV( const TLV& t );
38 
39 	operator bool() const;
40 
41 	quint16 type;
42 	quint16 length;
43 	QByteArray data;
44 
45 };
46 
47 }
48 
49 #endif
50