author | zautrix <zautrix> | 2004-10-05 11:13:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-05 11:13:51 (UTC) |
commit | 50ab40e1e02ad7c65c17a78d08116a808b1257aa (patch) (unidiff) | |
tree | 0d1939e2297fa7bbd8e1f2030f154463854164c6 /gammu/emb/common/phone/nokia/dct4/n3650.c | |
parent | cf8616f64f20e5448d4ff644f7cc15750cf3f85f (diff) | |
download | kdepimpi-50ab40e1e02ad7c65c17a78d08116a808b1257aa.zip kdepimpi-50ab40e1e02ad7c65c17a78d08116a808b1257aa.tar.gz kdepimpi-50ab40e1e02ad7c65c17a78d08116a808b1257aa.tar.bz2 |
updated to latest gammu version
Diffstat (limited to 'gammu/emb/common/phone/nokia/dct4/n3650.c') (more/less context) (ignore whitespace changes)
-rw-r--r-- | gammu/emb/common/phone/nokia/dct4/n3650.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gammu/emb/common/phone/nokia/dct4/n3650.c b/gammu/emb/common/phone/nokia/dct4/n3650.c index 2da55bf..d4746a7 100644 --- a/gammu/emb/common/phone/nokia/dct4/n3650.c +++ b/gammu/emb/common/phone/nokia/dct4/n3650.c | |||
@@ -222,171 +222,172 @@ static GSM_Error N3650_GetNextFileFolder(GSM_StateMachine *s, GSM_File *File, bo | |||
222 | File->Hidden = false; | 222 | File->Hidden = false; |
223 | 223 | ||
224 | return N3650_GetFolderInfo(s, File); | 224 | return N3650_GetFolderInfo(s, File); |
225 | } | 225 | } |
226 | 226 | ||
227 | static GSM_Error N3650_Initialise (GSM_StateMachine *s) | 227 | static GSM_Error N3650_Initialise (GSM_StateMachine *s) |
228 | { | 228 | { |
229 | GSM_Phone_N3650Data *Priv = &s->Phone.Data.Priv.N3650; | 229 | GSM_Phone_N3650Data *Priv = &s->Phone.Data.Priv.N3650; |
230 | int i; | 230 | int i; |
231 | 231 | ||
232 | for (i=0;i<10000;i++) { | 232 | for (i=0;i<10000;i++) { |
233 | Priv->Files[i] = malloc(sizeof(GSM_File)); | 233 | Priv->Files[i] = malloc(sizeof(GSM_File)); |
234 | if (Priv->Files[i] == NULL) return ERR_MOREMEMORY; | 234 | if (Priv->Files[i] == NULL) return ERR_MOREMEMORY; |
235 | } | 235 | } |
236 | return ERR_NONE; | 236 | return ERR_NONE; |
237 | } | 237 | } |
238 | 238 | ||
239 | static GSM_Error N3650_Terminate(GSM_StateMachine *s) | 239 | static GSM_Error N3650_Terminate(GSM_StateMachine *s) |
240 | { | 240 | { |
241 | GSM_Phone_N3650Data *Priv = &s->Phone.Data.Priv.N3650; | 241 | GSM_Phone_N3650Data *Priv = &s->Phone.Data.Priv.N3650; |
242 | int i; | 242 | int i; |
243 | 243 | ||
244 | for (i=0;i<10000;i++) free(Priv->Files[i]); | 244 | for (i=0;i<10000;i++) free(Priv->Files[i]); |
245 | return ERR_NONE; | 245 | return ERR_NONE; |
246 | } | 246 | } |
247 | 247 | ||
248 | static GSM_Reply_Function N3650ReplyFunctions[] = { | 248 | static GSM_Reply_Function N3650ReplyFunctions[] = { |
249 | {DCT4_ReplySetPhoneMode, "\x15",0x03,0x64,ID_Reset }, | 249 | {DCT4_ReplySetPhoneMode, "\x15",0x03,0x64,ID_Reset }, |
250 | {DCT4_ReplyGetPhoneMode, "\x15",0x03,0x65,ID_Reset }, | 250 | {DCT4_ReplyGetPhoneMode, "\x15",0x03,0x65,ID_Reset }, |
251 | {NoneReply, "\x15",0x03,0x68,ID_Reset }, | 251 | {NoneReply, "\x15",0x03,0x68,ID_Reset }, |
252 | 252 | ||
253 | {DCT4_ReplyGetIMEI, "\x1B",0x03,0x01,ID_GetIMEI }, | 253 | {DCT4_ReplyGetIMEI, "\x1B",0x03,0x01,ID_GetIMEI }, |
254 | {NOKIA_ReplyGetPhoneString, "\x1B",0x03,0x08,ID_GetHardware }, | 254 | {NOKIA_ReplyGetPhoneString, "\x1B",0x03,0x08,ID_GetHardware }, |
255 | {NOKIA_ReplyGetPhoneString, "\x1B",0x03,0x0C,ID_GetProductCode }, | 255 | {NOKIA_ReplyGetPhoneString, "\x1B",0x03,0x0C,ID_GetProductCode }, |
256 | 256 | ||
257 | {N3650_ReplyGetFolderInfo, "\x58",0x03,0x0C,ID_GetFile }, | 257 | {N3650_ReplyGetFolderInfo, "\x58",0x03,0x0C,ID_GetFile }, |
258 | {N3650_ReplyGetFilePart, "\x58",0x03,0x0E,ID_GetFile }, | 258 | {N3650_ReplyGetFilePart, "\x58",0x03,0x0E,ID_GetFile }, |
259 | 259 | ||
260 | {NULL, "\x00",0x00,0x00,ID_None } | 260 | {NULL, "\x00",0x00,0x00,ID_None } |
261 | }; | 261 | }; |
262 | 262 | ||
263 | GSM_Phone_Functions N3650Phone = { | 263 | GSM_Phone_Functions N3650Phone = { |
264 | "3650|NGAGE", | 264 | "3650|NGAGE", |
265 | N3650ReplyFunctions, | 265 | N3650ReplyFunctions, |
266 | N3650_Initialise, | 266 | N3650_Initialise, |
267 | N3650_Terminate, | 267 | N3650_Terminate, |
268 | GSM_DispatchMessage, | 268 | GSM_DispatchMessage, |
269 | NOTSUPPORTED, /* ShowStartInfo */ | 269 | NOTSUPPORTED, /* ShowStartInfo */ |
270 | NOKIA_GetManufacturer, | 270 | NOKIA_GetManufacturer, |
271 | DCT3DCT4_GetModel, | 271 | DCT3DCT4_GetModel, |
272 | DCT3DCT4_GetFirmware, | 272 | DCT3DCT4_GetFirmware, |
273 | DCT4_GetIMEI, | 273 | DCT4_GetIMEI, |
274 | NOTSUPPORTED, /* GetOriginalIMEI */ | 274 | NOTSUPPORTED, /* GetOriginalIMEI */ |
275 | NOTSUPPORTED, /* GetManufactureMonth*/ | 275 | NOTSUPPORTED, /* GetManufactureMonth*/ |
276 | DCT4_GetProductCode, | 276 | DCT4_GetProductCode, |
277 | DCT4_GetHardware, | 277 | DCT4_GetHardware, |
278 | NOTSUPPORTED, /* GetPPM */ | 278 | NOTSUPPORTED, /* GetPPM */ |
279 | NOTSUPPORTED, /* GetSIMIMSI */ | 279 | NOTSUPPORTED, /* GetSIMIMSI */ |
280 | NOTSUPPORTED, /* GetDateTime */ | 280 | NOTSUPPORTED, /* GetDateTime */ |
281 | NOTSUPPORTED, /* SetDateTime */ | 281 | NOTSUPPORTED, /* SetDateTime */ |
282 | NOTSUPPORTED, /* GetAlarm */ | 282 | NOTSUPPORTED, /* GetAlarm */ |
283 | NOTSUPPORTED, /* SetAlarm */ | 283 | NOTSUPPORTED, /* SetAlarm */ |
284 | NOTSUPPORTED, /* GetLocale */ | 284 | NOTSUPPORTED, /* GetLocale */ |
285 | NOTSUPPORTED, /* SetLocale */ | 285 | NOTSUPPORTED, /* SetLocale */ |
286 | NOTSUPPORTED, /* PressKey */ | 286 | NOTSUPPORTED, /* PressKey */ |
287 | DCT4_Reset, | 287 | DCT4_Reset, |
288 | NOTSUPPORTED, /* ResetPhoneSettings*/ | 288 | NOTSUPPORTED, /* ResetPhoneSettings*/ |
289 | NOTSUPPORTED, /* EnterSecurityCode*/ | 289 | NOTSUPPORTED, /* EnterSecurityCode*/ |
290 | NOTSUPPORTED, /* GetSecurityStatus*/ | 290 | NOTSUPPORTED, /* GetSecurityStatus*/ |
291 | NOTSUPPORTED, /* GetDisplayStatus*/ | 291 | NOTSUPPORTED, /* GetDisplayStatus*/ |
292 | NOTSUPPORTED, /* SetAutoNetworkLogin*/ | 292 | NOTSUPPORTED, /* SetAutoNetworkLogin*/ |
293 | NOTSUPPORTED, /* GetBatteryCharge*/ | 293 | NOTSUPPORTED, /* GetBatteryCharge*/ |
294 | NOTSUPPORTED, /* GetSignalQuality*/ | 294 | NOTSUPPORTED, /* GetSignalQuality*/ |
295 | NOTSUPPORTED, /* GetNetworkInfo */ | 295 | NOTSUPPORTED, /* GetNetworkInfo */ |
296 | NOTSUPPORTED, /* GetCategory */ | 296 | NOTSUPPORTED, /* GetCategory */ |
297 | NOTSUPPORTED, /* AddCategory */ | 297 | NOTSUPPORTED, /* AddCategory */ |
298 | NOTSUPPORTED, /* GetCategoryStatus */ | 298 | NOTSUPPORTED, /* GetCategoryStatus */ |
299 | NOTSUPPORTED, /* GetMemoryStatus */ | 299 | NOTSUPPORTED, /* GetMemoryStatus */ |
300 | NOTSUPPORTED, /* GetMemory */ | 300 | NOTSUPPORTED, /* GetMemory */ |
301 | NOTSUPPORTED, /* GetNextMemory */ | 301 | NOTSUPPORTED, /* GetNextMemory */ |
302 | NOTSUPPORTED, /* SetMemory */ | 302 | NOTSUPPORTED, /* SetMemory */ |
303 | NOTSUPPORTED, /* AddMemory */ | 303 | NOTSUPPORTED, /* AddMemory */ |
304 | NOTSUPPORTED, /* DeleteMemory */ | 304 | NOTSUPPORTED, /* DeleteMemory */ |
305 | NOTIMPLEMENTED, /* DeleteAllMemory */ | 305 | NOTIMPLEMENTED, /* DeleteAllMemory */ |
306 | NOTSUPPORTED, /* GetSpeedDial */ | 306 | NOTSUPPORTED, /* GetSpeedDial */ |
307 | NOTSUPPORTED, /* SetSpeedDial */ | 307 | NOTSUPPORTED, /* SetSpeedDial */ |
308 | NOTSUPPORTED, /* GetSMSC */ | 308 | NOTSUPPORTED, /* GetSMSC */ |
309 | NOTSUPPORTED, /* SetSMSC */ | 309 | NOTSUPPORTED, /* SetSMSC */ |
310 | NOTSUPPORTED, /* GetSMSStatus */ | 310 | NOTSUPPORTED, /* GetSMSStatus */ |
311 | NOTSUPPORTED, /* GetSMS */ | 311 | NOTSUPPORTED, /* GetSMS */ |
312 | NOTSUPPORTED, /* GetNextSMS */ | 312 | NOTSUPPORTED, /* GetNextSMS */ |
313 | NOTSUPPORTED, /* SetSMS */ | 313 | NOTSUPPORTED, /* SetSMS */ |
314 | NOTSUPPORTED, /* AddSMS */ | 314 | NOTSUPPORTED, /* AddSMS */ |
315 | NOTSUPPORTED, /* DeleteSMS */ | 315 | NOTSUPPORTED, /* DeleteSMS */ |
316 | NOTSUPPORTED, /* SendSMS */ | 316 | NOTSUPPORTED, /* SendSMS */ |
317 | NOTSUPPORTED, /* SendSavedSMS */ | 317 | NOTSUPPORTED, /* SendSavedSMS */ |
318 | NOTSUPPORTED, /* SetFastSMSSending*/ | ||
318 | NOTSUPPORTED, /* SetIncomingSMS */ | 319 | NOTSUPPORTED, /* SetIncomingSMS */ |
319 | NOTSUPPORTED, /* SetIncomingCB */ | 320 | NOTSUPPORTED, /* SetIncomingCB */ |
320 | NOTSUPPORTED, /* GetSMSFolders */ | 321 | NOTSUPPORTED, /* GetSMSFolders */ |
321 | NOTSUPPORTED, /* AddSMSFolder */ | 322 | NOTSUPPORTED, /* AddSMSFolder */ |
322 | NOTSUPPORTED, /* DeleteSMSFolder */ | 323 | NOTSUPPORTED, /* DeleteSMSFolder */ |
323 | NOTIMPLEMENTED, /* DialVoice */ | 324 | NOTIMPLEMENTED, /* DialVoice */ |
324 | NOTIMPLEMENTED, /* AnswerCall */ | 325 | NOTIMPLEMENTED, /* AnswerCall */ |
325 | NOTIMPLEMENTED, /* CancelCall */ | 326 | NOTIMPLEMENTED, /* CancelCall */ |
326 | NOTIMPLEMENTED, /* HoldCall */ | 327 | NOTIMPLEMENTED, /* HoldCall */ |
327 | NOTIMPLEMENTED, /* UnholdCall */ | 328 | NOTIMPLEMENTED, /* UnholdCall */ |
328 | NOTIMPLEMENTED, /* ConferenceCall */ | 329 | NOTIMPLEMENTED, /* ConferenceCall */ |
329 | NOTIMPLEMENTED, /* SplitCall */ | 330 | NOTIMPLEMENTED, /* SplitCall */ |
330 | NOTIMPLEMENTED, /* TransferCall */ | 331 | NOTIMPLEMENTED, /* TransferCall */ |
331 | NOTIMPLEMENTED, /* SwitchCall */ | 332 | NOTIMPLEMENTED, /* SwitchCall */ |
332 | NOTSUPPORTED, /* GetCallDivert */ | 333 | NOTSUPPORTED, /* GetCallDivert */ |
333 | NOTSUPPORTED, /* SetCallDivert */ | 334 | NOTSUPPORTED, /* SetCallDivert */ |
334 | NOTSUPPORTED, /* CancelAllDiverts*/ | 335 | NOTSUPPORTED, /* CancelAllDiverts*/ |
335 | NOTIMPLEMENTED, /* SetIncomingCall */ | 336 | NOTIMPLEMENTED, /* SetIncomingCall */ |
336 | NOTIMPLEMENTED, /* SetIncomingUSSD */ | 337 | NOTIMPLEMENTED, /* SetIncomingUSSD */ |
337 | NOTSUPPORTED, /* SendDTMF */ | 338 | NOTSUPPORTED, /* SendDTMF */ |
338 | NOTSUPPORTED, /* GetRingtone */ | 339 | NOTSUPPORTED, /* GetRingtone */ |
339 | NOTSUPPORTED, /* SetRingtone */ | 340 | NOTSUPPORTED, /* SetRingtone */ |
340 | NOTSUPPORTED, /* GetRingtonesInfo*/ | 341 | NOTSUPPORTED, /* GetRingtonesInfo*/ |
341 | NOTIMPLEMENTED, /* DeleteUserRingtones*/ | 342 | NOTIMPLEMENTED, /* DeleteUserRingtones*/ |
342 | NOTSUPPORTED, /* PlayTone */ | 343 | NOTSUPPORTED, /* PlayTone */ |
343 | NOTSUPPORTED, /* GetWAPBookmark */ | 344 | NOTSUPPORTED, /* GetWAPBookmark */ |
344 | NOTSUPPORTED, /* SetWAPBookmark */ | 345 | NOTSUPPORTED, /* SetWAPBookmark */ |
345 | NOTSUPPORTED, /* DeleteWAPBookmark */ | 346 | NOTSUPPORTED, /* DeleteWAPBookmark */ |
346 | NOTSUPPORTED, /* GetWAPSettings */ | 347 | NOTSUPPORTED, /* GetWAPSettings */ |
347 | NOTSUPPORTED, /* SetWAPSettings */ | 348 | NOTSUPPORTED, /* SetWAPSettings */ |
348 | NOTSUPPORTED, /* GetMMSSettings */ | 349 | NOTSUPPORTED, /* GetMMSSettings */ |
349 | NOTSUPPORTED, /* SetMMSSettings */ | 350 | NOTSUPPORTED, /* SetMMSSettings */ |
350 | NOTSUPPORTED, /* GetSyncMLSettings*/ | 351 | NOTSUPPORTED, /* GetSyncMLSettings*/ |
351 | NOTSUPPORTED, /* SetSyncMLSettings*/ | 352 | NOTSUPPORTED, /* SetSyncMLSettings*/ |
352 | NOTSUPPORTED, /* GetChatSettings */ | 353 | NOTSUPPORTED, /* GetChatSettings */ |
353 | NOTSUPPORTED, /* SetChatSettings */ | 354 | NOTSUPPORTED, /* SetChatSettings */ |
354 | NOTSUPPORTED, /* GetBitmap */ | 355 | NOTSUPPORTED, /* GetBitmap */ |
355 | NOTSUPPORTED, /* SetBitmap */ | 356 | NOTSUPPORTED, /* SetBitmap */ |
356 | NOTSUPPORTED, /* GetToDoStatus */ | 357 | NOTSUPPORTED, /* GetToDoStatus */ |
357 | NOTSUPPORTED, /* GetToDo */ | 358 | NOTSUPPORTED, /* GetToDo */ |
358 | NOTSUPPORTED, /* GetNextToDo */ | 359 | NOTSUPPORTED, /* GetNextToDo */ |
359 | NOTSUPPORTED, /* SetToDo */ | 360 | NOTSUPPORTED, /* SetToDo */ |
360 | NOTSUPPORTED, /* AddToDo */ | 361 | NOTSUPPORTED, /* AddToDo */ |
361 | NOTSUPPORTED, /* DeleteToDo */ | 362 | NOTSUPPORTED, /* DeleteToDo */ |
362 | NOTSUPPORTED, /* DeleteAllToDo */ | 363 | NOTSUPPORTED, /* DeleteAllToDo */ |
363 | NOTIMPLEMENTED, /* GetCalendarStatus*/ | 364 | NOTIMPLEMENTED, /* GetCalendarStatus*/ |
364 | NOTIMPLEMENTED, /* GetCalendar */ | 365 | NOTIMPLEMENTED, /* GetCalendar */ |
365 | NOTSUPPORTED, /* GetNextCalendar */ | 366 | NOTSUPPORTED, /* GetNextCalendar */ |
366 | NOTIMPLEMENTED, /* SetCalendar */ | 367 | NOTIMPLEMENTED, /* SetCalendar */ |
367 | NOTSUPPORTED, /* AddCalendar */ | 368 | NOTSUPPORTED, /* AddCalendar */ |
368 | NOTSUPPORTED, /* DeleteCalendar */ | 369 | NOTSUPPORTED, /* DeleteCalendar */ |
369 | NOTIMPLEMENTED, /* DeleteAllCalendar*/ | 370 | NOTIMPLEMENTED, /* DeleteAllCalendar*/ |
370 | NOTSUPPORTED, /* GetCalendarSettings*/ | 371 | NOTSUPPORTED, /* GetCalendarSettings*/ |
371 | NOTSUPPORTED, /* SetCalendarSettings*/ | 372 | NOTSUPPORTED, /* SetCalendarSettings*/ |
372 | NOTSUPPORTED, /* GetNote */ | 373 | NOTSUPPORTED, /* GetNextNote */ |
373 | NOTSUPPORTED, /* GetProfile */ | 374 | NOTSUPPORTED, /* GetProfile */ |
374 | NOTSUPPORTED, /* SetProfile */ | 375 | NOTSUPPORTED, /* SetProfile */ |
375 | NOTSUPPORTED, /* GetFMStation */ | 376 | NOTSUPPORTED, /* GetFMStation */ |
376 | NOTSUPPORTED, /* SetFMStation */ | 377 | NOTSUPPORTED, /* SetFMStation */ |
377 | NOTSUPPORTED, /* ClearFMStations */ | 378 | NOTSUPPORTED, /* ClearFMStations */ |
378 | N3650_GetNextFileFolder, | 379 | N3650_GetNextFileFolder, |
379 | N3650_GetFilePart, | 380 | N3650_GetFilePart, |
380 | NOTIMPLEMENTED, /* AddFilePart */ | 381 | NOTIMPLEMENTED, /* AddFilePart */ |
381 | NOTSUPPORTED, /* GetFileSystemStatus*/ | 382 | NOTSUPPORTED, /* GetFileSystemStatus*/ |
382 | NOTIMPLEMENTED, /* DeleteFile */ | 383 | NOTIMPLEMENTED, /* DeleteFile */ |
383 | NOTIMPLEMENTED, /* AddFolder */ | 384 | NOTIMPLEMENTED, /* AddFolder */ |
384 | NOTSUPPORTED, /* GetGPRSAccessPoint*/ | 385 | NOTSUPPORTED, /* GetGPRSAccessPoint*/ |
385 | NOTSUPPORTED /* SetGPRSAccessPoint*/ | 386 | NOTSUPPORTED /* SetGPRSAccessPoint*/ |
386 | }; | 387 | }; |
387 | 388 | ||
388 | #endif | 389 | #endif |
389 | 390 | ||
390 | /* How should editor hadle tabs in this file? Add editor commands here. | 391 | /* How should editor hadle tabs in this file? Add editor commands here. |
391 | * vim: noexpandtab sw=8 ts=8 sts=8: | 392 | * vim: noexpandtab sw=8 ts=8 sts=8: |
392 | */ | 393 | */ |