unit c_tmessages interface Messages ver 09 09 08 ----- CONST ---------

  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
214
215
216
217
218
219
220
unit c_tmessages;
interface
// Messages
// ver
// 09.09.08
//-----// {CONST} //-----------------------------------------------//
const
fname_opt = 'options.ini';
fname_dbmessages = 'dbmessages.txt';
null = 0;
strnull = '0';
//Plugin Panel.Caption
PC_NF = 'Выбранный плагин не имеет настроек';
// lb_plugin.Items.AddObject(<title>,<image.ico>);
// Format ListOfMessages.Lines.Strings[i]
// "<type_message>$<attribute>
LOM_First = 1;
LOM_Standart = 2;
LOM_Last = 3;
//Plugin Type
PL_System = 000;
PL_UserList = 010;
PL_UserListFrame = 011;
PL_Connect = 100;
PL_Profile = 200;
//Profile messages
MS_PrSetVar = 15; //sec(short).title(short).type(byte).parametr(_type)
MS_PrGetVar = 16; //sec(short).title(short)
// pack.secondType_
MS_PrString = 1;
MS_PrBoolean = 2;
MS_PrWord = 3;
MS_PrStrings = 4;
// use of SelectInputVariable. NOT IN .ListOfMessages.Add('17$2');
MS_PrInGetVar = 17; //sec(short).title(short)
//ICQ messages
MS_ICQEvent = 50;
MS_ICQBeginWait = 1;
MS_ICQWait = 2;
MS_ICQWaitConnect = 3;
MS_ICQEndWait = 4;
MS_ICQConnected = 5;
MS_ICQConnecting = 6;
MS_ICQDisconnecting = 7;
MS_ICQDisconnected = 8;
MS_ICQInvalidLogin = 9;
MS_ICQInvalidPass = 10;
MS_ICQInvalidUIN = 11;
MS_ICQTimeout = 12;
MS_ICQContactEvent = 55; //const Contact: ICQ_Contact
MS_ICQContactOffline = 1;
MS_ICQContactOnline = 2;
MS_ICQContactStatusUpdate = 3;
MS_ICQError = 60; //Error(Integer)
MS_ICQProcEvent = 65;
MS_ICQProcMsg = 1; //UIN: Cardinal; Date: TDateTime; const Msg: String
MS_ICQProcAdded = 2;//UIN: Cardinal; Date: TDateTime; const Nick, First, Last, Email: String
MS_ICQProcAuthRequest = 3; //UIN: Cardinal; Date: TDateTime; const Nick, First, Last, Email, Reson: String
MS_ICQProcFileRequest = 4; //UIN: Cardinal; Date: TDateTime; const Desc, FileName: String; FileSize: Integer
MS_ICQProcChatRequest = 5; //UIN: Cardinal; Date: TDateTime; const Desc: String
MS_ICQProsUserInfo = 5; //UIN: Cardinal; const Nick, First, Last, Email: String; Auth: ICQ_Auth
MS_ICQProsExtUserInfo = 6; //UIN: Cardinal; const City: String; CountryCode, CountryStat: Cardinal;
//const State: String; Age: Cardinal; Gender: ICQ_Gender; const Phone,
//HomePage, About: String
MS_ICQProsExtUserInfo2 = 7; //UIN: Cardinal; const City: String; CountryCode: Cardinal; TimeOffset: Single;
//const State: String; Age: Cardinal; Gender: ICQ_Gender; const Phone,
//HomePage, About: String
MS_ICQFound = 66;
MS_ICQUserFound = 1; //UIN: Cardinal; const Nick, First, Last, Email: String; Auth: ICQ_Auth
MS_ICQUserNotFound = 2; //UIN: Cardinal
MS_ICQSetProcedure = 70;
MS_ICQSLogin = 1;
MS_ICQSUnLogin = 2;
MS_ICQSRefrFrame = 3;
//-----// {TYPES} //-----------------------------------------------//
type
//ICQ MESSAGES
//ICQ PROCESS MESSAGES
P_ICQProcMsg = ^R_ICQProcMsg;
R_ICQProcMsg = record
UIN:Cardinal;
Date:string[64];
Msg:Pchar;
end;
P_ICQProcAdded = ^R_ICQProcAdded;
R_ICQProcAdded = record
UIN: Cardinal;
Date:string[64];
Nick, First, Last, Email: PChar;
end;
P_ICQProcAuthRequest = ^R_ICQProsAuthRequest;
R_ICQProsAuthRequest = record
UIN: Cardinal;
Date:string[64];
Nick, First, Last, Email, Reson: PChar;
end;
P_ICQProcFileRequest = ^R_ICQProcFileRequest;
R_ICQProcFileRequest = record
UIN: Cardinal;
Date:string[64];
Desc, FileName: PChar;
FileSize: Integer;
end;
P_ICQProcChatRequest = ^R_ICQProcChatRequest;
R_ICQProcChatRequest = record
UIN: Cardinal;
Date:string[64];
Desc: PChar;
end;
//USER AND USERFOUND
R_ICQAuth =
( ICQ_Auth_Authorize,
ICQ_Auth_Trust );
P_ICQProsUserinfo = ^R_ICQProsuserInfo;
R_ICQprosUserInfo = record
UIN: Cardinal;
Nick, First, Last, Email: String;
Auth: R_ICQAuth;
end;
R_ICQGender =
( ICQ_Gender_Void,
ICQ_Gender_Female,
ICQ_Gender_Male );
P_ICQProsExtUserInfo = ^R_ICQProsExtUserInfo;
R_ICQProsExtUserInfo = record
UIN: Cardinal;
City: PChar;
CountryCode, CountryStat: Cardinal;
State: PChar; Age: Cardinal;
Gender: R_ICQGender;
Phone,HomePage, About: PChar;
end;
P_ICQProsExtUserInfo2 = ^R_ICQProsExtUserInfo2;
R_ICQProsExtUserInfo2 = record
UIN: Cardinal;
City: PChar;
CountryCode:Cardinal;
TimeOffset: Single;
State: PChar; Age: Cardinal;
Gender: R_ICQGender;
Phone,HomePage, About: PChar;
end;
//ERROR and STATUS
P_ICQErro = ^R_ICQError;
R_ICQError = record
Error:integer;
end;
R_ICQStatus =
( ICQ_Status_Offline ,
ICQ_Status_Online ,
ICQ_Status_Away ,
ICQ_Status_DND ,
ICQ_Status_NA ,
ICQ_Status_Occupied ,
ICQ_Status_FreeChat ,
ICQ_Status_Invisible );
P_ICQContact = ^R_ICQContact;
R_ICQContact = record
UIN: Cardinal;
Visible: LongBool;
IP,Port,RealIP,TcpFlag: Cardinal;
Status: R_ICQStatus;
end;
//PROFILE MESSAGES
//ALL
P_PrString = ^R_PrString;
R_PrString = record
sec:shortstring;
title:shortstring;
parametr:shortstring;
end;
P_PrBoolean = ^R_PrBoolean;
R_PrBoolean = record
sec:shortstring;
title:shortstring;
parametr:boolean;
end;
P_PrWord = ^R_PrWord;
R_PrWord = record
sec:shortstring;
title:shortstring;
parametr:word;
end;
P_PrStrings = ^R_PrStrings;
R_PrStrings = record
sec:shortstring;
title:shortstring;
parametr:pointer;
end;
P_PrGetParam = ^R_PrGetParam;
R_PrGetParam = record
sec:shortstring;
title:shortstring;
defparam:shortstring;
end;
implementation
end.