summaryrefslogtreecommitdiff
path: root/icqj_s7_sss_mod/capabilities.h
blob: 696053476a01791963738acc6a8787b141f15bbb (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
// ---------------------------------------------------------------------------80
//                ICQ plugin for Miranda Instant Messenger
//                ________________________________________
// 
// Copyright  2000,2001 Richard Hughes, Roland Rabien, Tristan Van de Vreede
// Copyright  2001,2002 Jon Keating, Richard Hughes
// Copyright  2002,2003,2004 Martin berg, Sam Kothari, Robert Rainwater
// Copyright  2004,2005,2006,2007 Joe Kucera
// Copyright  2006,2007 [sss], chaos.persei, [sin], Faith Healer, Theif, nullbie
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
// -----------------------------------------------------------------------------
//
// File name      : $Source$
// Revision       : $Revision: 36 $
// Last change on : $Date: 2007-08-05 03:45:10 +0300 (Вс, 05 авг 2007) $
// Last change by : $Author: sss123next $
//
// DESCRIPTION:
//
//  Contains helper functions to handle oscar user capabilities.
//
// -----------------------------------------------------------------------------



// Deletes all oscar capabilities for a given contact.
void ClearAllContactCapabilities(HANDLE hContact);

// Deletes one or many oscar capabilities for a given contact.
void ClearContactCapabilities(HANDLE hContact, DWORD fdwCapabilities);

// Sets one or many oscar capabilities for a given contact.
void SetContactCapabilities(HANDLE hContact, DWORD fdwCapabilities);

// Returns true if the given contact supports the requested capabilites.
BOOL CheckContactCapabilities(HANDLE hContact, DWORD fdwCapabilities);

// Scans a binary buffer for oscar capabilities and adds them to the db.
void AddCapabilitiesFromBuffer(HANDLE hContact, BYTE* pbyBuffer, int nLength);

// Pack binary caps to output buffer
void AddCapabilitiesToBuffer(BYTE* packet, DWORD fdwContactCaps);

// Get capability name
typedef struct 
{
	HANDLE hIcon;
	int type;
	char name[128];
	char caps[128];
} ICQ_CAPINFO;
char *GetCapabilityName(BYTE *cap, ICQ_CAPINFO *info);

// -----------------------------------------------------------------------------
extern const capstr capSrvRelay;
extern const capstr capUTF;
extern const capstr capTyping;
extern const capstr capXtraz;
extern const capstr capAimFile;
extern const capstr capPush2Talk;
extern const capstr capIcqLite;
extern const capstr capRTF;
extern const capstr capXtrazChat;
extern const capstr capVoiceChat;
extern const capstr capIcqDevil;
extern const capstr capDirect;
extern const capstr capNewCap;
extern const capstr capAimIcq;
// -----------------------------------------------------------------------------
extern const capstr capMirandaIm;
extern const capstr capMirandaMobile;
extern const capstr capMimPack;
extern const capstr capIcqJs7;
extern const capstr capIcqJp;
extern const capstr capIcqJs7s;
extern const capstr capIcqJs7old;
extern const capstr capIcqJSin;
extern const capstr capIcqJen;
extern const capstr capAimOscar;
extern const capstr capTrillian;
extern const capstr capTrilCrypt;
extern const capstr capSim;
extern const capstr capSimOld;
extern const capstr capLicq;
extern const capstr capKopete;
extern const capstr capmIcq;
extern const capstr capAndRQ;
extern const capstr capRAndQ;
extern const capstr capmChat;
extern const capstr capJimm;
extern const capstr capCorePager;
extern const capstr capDiChat;
extern const capstr capNaim;
extern const capstr capAnastasia;
extern const capstr capQip;
extern const capstr capQip_1;
extern const capstr capQipSymbian;
extern const capstr capQipPDA;
extern const capstr capQipMobile;
extern const capstr capVmICQ;
extern const capstr capSmapeR;
extern const capstr capIMPlus;
extern const capstr capYapp;
extern const capstr capQipInfium;
extern const capstr capQipPlugins;
extern const capstr capIm2;
extern const capstr capMacIcq;
extern const capstr capIs2001;
extern const capstr capIs2002;
extern const capstr capComm20012;
extern const capstr capStrIcq;
extern const capstr capAimIcon; // CAP_AIM_BUDDYICON
extern const capstr capAimDirect; // CAP_AIM_DIRECTIM
extern const capstr capAimFileShare;
extern const capstr capIcqLite;
extern const capstr capAimChat;
extern const capstr capUim;
extern const capstr capRambler;
extern const capstr capAbv;
extern const capstr capNetvigator;
extern const capstr captZers; // CAP_TZERS
extern const capstr capHtmlMsgs; // icq6
extern const capstr capLiveVideo;// icq6
extern const capstr capSimpLite;
extern const capstr capSimpPro;
extern const capstr capIMsecure; // ZoneLabs
extern const capstr capAimAudio;
extern const capstr capAimAddins;
extern const capstr capAimContactSnd;
extern const capstr capAimUnk2;
extern const capstr capPalmJicq;
extern const capstr capInluxMsgr;
extern const capstr capMipClient;
extern const capstr capIMadering;
extern const capstr capIMSecKey1;
extern const capstr capIMSecKey2;
extern const capstr capUnknown1;
extern const capstr capAimSendbuddylist;
extern const capstr capClimm;
// -----------------------------------------------------------------------------
extern const capstr capXStatus[37];
extern const char* nameXStatus[37];