blob: 662ca4d29ebff26bd993c0904802896dfa966297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
/*
Kopete Yahoo Protocol
Handles logging into to the Yahoo service
Copyright (c) 2004 Duncan Mac-Vicar P. <[email protected]>
Copyright (c) 2005 André Duffeck <[email protected]>
Kopete (c) 2002-2005 by the Kopete developers <[email protected]>
*************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef YMSG_TRANSFER_H
#define YMSG_TRANSFER_H
#include "transfer.h"
#include "yahootypes.h"
#include <qpair.h>
#include <qvaluelist.h>
class YMSGTransferPrivate;
typedef QPair< int, QCString > Param;
typedef QValueList< Param > ParamList;
/**
@author Duncan Mac-Vicar Prett
*/
class YMSGTransfer : public Transfer
{
public:
YMSGTransfer(Yahoo::Service service);
YMSGTransfer(Yahoo::Service service, Yahoo::Status status);
YMSGTransfer();
~YMSGTransfer();
TransferType type();
//! Get the validity of the transfer object
bool isValid() const;
Yahoo::Service service() const;
void setService(Yahoo::Service service);
Yahoo::Status status() const;
void setStatus(Yahoo::Status status);
unsigned int id() const;
void setId(unsigned int id);
int packetLength() const;
void setPacketLength(int len);
ParamList paramList() const;
QCString firstParam( int index ) const;
QCString nthParam( int index, int occurrence ) const;
QCString nthParamSeparated( int index, int occurrence, int separator ) const;
int paramCount( int index ) const;
void setParam(int index, const QCString &data);
void setParam(int index, int data);
QByteArray serialize() const;
int length() const;
private:
YMSGTransferPrivate* d;
};
#endif
|