blob: ac054721d5c2f2e40e87f01e25430f26de90dc1b (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
/*
Kopete Oscar Protocol
icquserinfo.h - ICQ User Info Data Types
Copyright (c) 2004 Matt Rogers <[email protected]>
Kopete (c) 2002-2004 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 _ICQUSERINFO_H_
#define _ICQUSERINFO_H_
#include <qcstring.h>
#include <qvaluelist.h>
#include <qdatetime.h>
#include "kopete_export.h"
class Buffer;
/**
* @file icquserinfo.h
* Classes encapsulating user data retrieved from the server
*/
class KOPETE_EXPORT ICQInfoBase
{
public:
ICQInfoBase() : m_sequence( 0 ) {}
virtual ~ICQInfoBase() {}
virtual void fill( Buffer* buffer ) = 0;
void setSequenceNumber( int number ) { m_sequence = number; }
int sequenceNumber() { return m_sequence; }
private:
int m_sequence;
};
class KOPETE_EXPORT ICQShortInfo : public ICQInfoBase
{
public:
ICQShortInfo();
~ICQShortInfo() {}
void fill( Buffer* buffer );
public:
unsigned long uin;
QCString nickname;
QCString firstName;
QCString lastName;
QCString email;
bool needsAuth;
unsigned int gender; // 0=offline, 1=online, 2=not webaware
};
class KOPETE_EXPORT ICQGeneralUserInfo : public ICQInfoBase
{
public:
ICQGeneralUserInfo();
~ICQGeneralUserInfo() {}
void fill( Buffer* buffer );
public:
unsigned long uin;
QCString nickname;
QCString firstName;
QCString lastName;
QCString email;
QCString city;
QCString state;
QCString phoneNumber;
QCString faxNumber;
QCString address;
QCString cellNumber;
QCString zip;
int country;
char timezone;
bool publishEmail;
bool allowsDC;
bool webaware;
};
class KOPETE_EXPORT ICQWorkUserInfo : public ICQInfoBase
{
public:
ICQWorkUserInfo();
~ICQWorkUserInfo() {}
void fill( Buffer* buffer );
public:
QCString city;
QCString state;
QCString phone;
QCString fax;
QCString address;
QCString zip;
int country;
QCString company;
QCString department;
QCString position;
int occupation;
QCString homepage;
};
class KOPETE_EXPORT ICQMoreUserInfo : public ICQInfoBase
{
public:
ICQMoreUserInfo();
~ICQMoreUserInfo() {}
void fill( Buffer* buffer );
public:
int age;
unsigned int gender;
QCString homepage;
QDate birthday;
unsigned int lang1;
unsigned int lang2;
unsigned int lang3;
QCString ocity;
QCString ostate;
int ocountry;
int marital;
};
class KOPETE_EXPORT ICQEmailInfo : public ICQInfoBase
{
public:
ICQEmailInfo();
~ICQEmailInfo() {}
void fill( Buffer* buffer );
public:
QValueList<QCString> emailList;
};
class KOPETE_EXPORT ICQInterestInfo : public ICQInfoBase
{
public:
ICQInterestInfo();
~ICQInterestInfo() {}
void fill( Buffer* buffer );
public:
int count;
int topics[4];
QCString descriptions[4];
};
class KOPETE_EXPORT ICQSearchResult
{
public:
ICQSearchResult();
void fill( Buffer* buffer );
Q_UINT32 uin;
QCString firstName;
QCString lastName;
QCString nickName;
QCString email;
bool auth;
bool online;
char gender;
Q_UINT16 age;
};
class KOPETE_EXPORT ICQWPSearchInfo
{
public:
ICQWPSearchInfo();
QCString firstName;
QCString lastName;
QCString nickName;
QCString email;
int age;
int gender;
int language;
QCString city;
QCString state;
int country;
QCString company;
QCString department;
QCString position;
int occupation;
bool onlineOnly;
};
/*
class ICQInfoItem
{
public:
int category;
QCString description;
};
typedef QValueList<ICQInfoItem> ICQInfoItemList;
*/
#endif
//kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;
|