~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to protocols/oscar/liboscar/oscartypeclasses.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
ImportĀ upstreamĀ versionĀ 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
//kate: indent-mode csands; auto-insert-doxygen on; tab-width 4;
 
50
 
 
51
#endif