Gammu internals  1.38.0
nauto.c
Go to the documentation of this file.
1 /* (c) 2002-2003 by Marcin Wiacek */
2 
3 #include <string.h>
4 #include <time.h>
5 
6 #include "../../gsmcomon.h"
7 #include "../../gsmstate.h"
8 #include "nfunc.h"
9 
10 #if defined(GSM_ENABLE_NOKIA_DCT3) || defined(GSM_ENABLE_NOKIA_DCT4)
11 
12 static GSM_Reply_Function NAUTOReplyFunctions[] = {
13  {DCT3DCT4_ReplyGetModelFirmware,"\xD2",0x02,0x00,ID_GetModel },
15 
16  {NULL, "\x00",0x00,0x00,ID_None }
17 };
18 
24 static GSM_Error NAUTO_Initialise(GSM_StateMachine *s)
25 {
26  GSM_Error error = ERR_TIMEOUT;
27  int repeats = 3;
28 
29  while (repeats > 0 && error == ERR_TIMEOUT) {
30  error = DCT3DCT4_GetModel(s);
31  if (error == ERR_NONE) return ERR_NONE;
32  repeats--;
33  }
34 
35  return error;
36 }
37 
39  "NAUTO",
40  NAUTOReplyFunctions,
41  NOTSUPPORTED, /* Install */
42  NAUTO_Initialise, /* Initialise */
43  NONEFUNCTION, /* Terminate */
45  NOTSUPPORTED, /* ShowStartInfo */
49  NOTSUPPORTED, /* GetIMEI */
50  NOTSUPPORTED, /* GetOriginalIMEI */
51  NOTSUPPORTED, /* GetManufactureMonth */
52  NOTSUPPORTED, /* GetProductCode */
53  NOTSUPPORTED, /* GetHardware */
54  NOTSUPPORTED, /* GetPPM */
55  NOTSUPPORTED, /* GetSIMIMSI */
56  NOTSUPPORTED, /* GetDateTime */
57  NOTSUPPORTED, /* SetDateTime */
58  NOTSUPPORTED, /* GetAlarm */
59  NOTSUPPORTED, /* SetAlarm */
60  NOTSUPPORTED, /* GetLocale */
61  NOTSUPPORTED, /* SetLocale */
62  NOTSUPPORTED, /* PressKey */
63  NOTSUPPORTED, /* Reset */
64  NOTSUPPORTED, /* ResetPhoneSettings */
65  NOTSUPPORTED, /* EnterSecurityCode */
66  NOTSUPPORTED, /* GetSecurityStatus */
67  NOTSUPPORTED, /* GetDisplayStatus */
68  NOTSUPPORTED, /* SetAutoNetworkLogin */
69  NOTSUPPORTED, /* GetBatteryCharge */
70  NOTSUPPORTED, /* GetSignalQuality */
71  NOTSUPPORTED, /* GetNetworkInfo */
72  NOTSUPPORTED, /* GetCategory */
73  NOTSUPPORTED, /* AddCategory */
74  NOTSUPPORTED, /* GetCategoryStatus */
75  NOTSUPPORTED, /* GetMemoryStatus */
76  NOTSUPPORTED, /* GetMemory */
77  NOTSUPPORTED, /* GetNextMemory */
78  NOTSUPPORTED, /* SetMemory */
79  NOTSUPPORTED, /* AddMemory */
80  NOTSUPPORTED, /* DeleteMemory */
81  NOTIMPLEMENTED, /* DeleteAllMemory */
82  NOTSUPPORTED, /* GetSpeedDial */
83  NOTSUPPORTED, /* SetSpeedDial */
84  NOTSUPPORTED, /* GetSMSC */
85  NOTSUPPORTED, /* SetSMSC */
86  NOTSUPPORTED, /* GetSMSStatus */
87  NOTSUPPORTED, /* GetSMS */
88  NOTSUPPORTED, /* GetNextSMS */
89  NOTSUPPORTED, /* SetSMS */
90  NOTSUPPORTED, /* AddSMS */
91  NOTSUPPORTED, /* DeleteSMS */
92  NOTSUPPORTED, /* SendSMSMessage */
93  NOTSUPPORTED, /* SendSavedSMS */
94  NOTSUPPORTED, /* SetFastSMSSending */
95  NOTSUPPORTED, /* SetIncomingSMS */
96  NOTSUPPORTED, /* SetIncomingCB */
97  NOTSUPPORTED, /* GetSMSFolders */
98  NOTSUPPORTED, /* AddSMSFolder */
99  NOTSUPPORTED, /* DeleteSMSFolder */
100  NOTSUPPORTED, /* DialVoice */
101  NOTIMPLEMENTED, /* DialService */
102  NOTSUPPORTED, /* AnswerCall */
103  NOTSUPPORTED, /* CancelCall */
104  NOTSUPPORTED, /* HoldCall */
105  NOTSUPPORTED, /* UnholdCall */
106  NOTSUPPORTED, /* ConferenceCall */
107  NOTSUPPORTED, /* SplitCall */
108  NOTSUPPORTED, /* TransferCall */
109  NOTSUPPORTED, /* SwitchCall */
110  NOTSUPPORTED, /* GetCallDivert */
111  NOTSUPPORTED, /* SetCallDivert */
112  NOTSUPPORTED, /* CancelAllDiverts */
113  NOTSUPPORTED, /* SetIncomingCall */
114  NOTSUPPORTED, /* SetIncomingUSSD */
115  NOTSUPPORTED, /* SendDTMF */
116  NOTSUPPORTED, /* GetRingtone */
117  NOTSUPPORTED, /* SetRingtone */
118  NOTSUPPORTED, /* GetRingtonesInfo */
119  NOTSUPPORTED, /* DeleteUserRingtones */
120  NOTSUPPORTED, /* PlayTone */
121  NOTSUPPORTED, /* GetWAPBookmark */
122  NOTSUPPORTED, /* SetWAPBookmark */
123  NOTSUPPORTED, /* DeleteWAPBookmark */
124  NOTSUPPORTED, /* GetWAPSettings */
125  NOTSUPPORTED, /* SetWAPSettings */
126  NOTSUPPORTED, /* GetSyncMLSettings */
127  NOTSUPPORTED, /* SetSyncMLSettings */
128  NOTSUPPORTED, /* GetChatSettings */
129  NOTSUPPORTED, /* SetChatSettings */
130  NOTSUPPORTED, /* GetMMSSettings */
131  NOTSUPPORTED, /* SetMMSSettings */
132  NOTSUPPORTED, /* GetMMSFolders */
133  NOTSUPPORTED, /* GetNextMMSFileInfo */
134  NOTSUPPORTED, /* GetBitmap */
135  NOTSUPPORTED, /* SetBitmap */
136  NOTSUPPORTED, /* GetToDoStatus */
137  NOTSUPPORTED, /* GetToDo */
138  NOTSUPPORTED, /* GetNextToDo */
139  NOTSUPPORTED, /* SetToDo */
140  NOTSUPPORTED, /* AddToDo */
141  NOTSUPPORTED, /* DeleteToDo */
142  NOTSUPPORTED, /* DeleteAllToDo */
143  NOTSUPPORTED, /* GetCalendarStatus */
144  NOTSUPPORTED, /* GetCalendar */
145  NOTSUPPORTED, /* GetNextCalendar */
146  NOTSUPPORTED, /* SetCalendar */
147  NOTSUPPORTED, /* AddCalendar */
148  NOTSUPPORTED, /* DeleteCalendar */
149  NOTSUPPORTED, /* DeleteAllCalendar */
150  NOTSUPPORTED, /* GetCalendarSettings */
151  NOTSUPPORTED, /* SetCalendarSettings */
152  NOTSUPPORTED, /* GetNoteStatus */
153  NOTSUPPORTED, /* GetNote */
154  NOTSUPPORTED, /* GetNextNote */
155  NOTSUPPORTED, /* SetNote */
156  NOTSUPPORTED, /* AddNote */
157  NOTSUPPORTED, /* DeleteNote */
158  NOTSUPPORTED, /* DeleteAllNotes */
159  NOTSUPPORTED, /* GetProfile */
160  NOTSUPPORTED, /* SetProfile */
161  NOTSUPPORTED, /* GetFMStation */
162  NOTSUPPORTED, /* SetFMStation */
163  NOTSUPPORTED, /* ClearFMStations */
164  NOTSUPPORTED, /* GetNextFileFolder */
165  NOTSUPPORTED, /* GetFolderListing */
166  NOTSUPPORTED, /* GetNextRootFolder */
167  NOTSUPPORTED, /* SetFileAttributes */
168  NOTSUPPORTED, /* GetFilePart */
169  NOTSUPPORTED, /* AddFilePart */
170  NOTSUPPORTED, /* SendFilePart */
171  NOTSUPPORTED, /* GetFileSystemStatus */
172  NOTSUPPORTED, /* DeleteFile */
173  NOTSUPPORTED, /* AddFolder */
174  NOTSUPPORTED, /* DeleteFolder */
175  NOTSUPPORTED, /* GetGPRSAccessPoint */
176  NOTSUPPORTED, /* SetGPRSAccessPoint */
177  NOTSUPPORTED, /* GetScreenshot */
178  NOTSUPPORTED, /* SetPower */
179  NOTSUPPORTED, /* PostConnect */
180  NONEFUNCTION /* PreAPICall */
181 };
182 
183 #endif
184 
185 /* How should editor hadle tabs in this file? Add editor commands here.
186  * vim: noexpandtab sw=8 ts=8 sts=8:
187  */
GSM_Error DCT3DCT4_GetModel(GSM_StateMachine *s)
GSM_Phone_Functions NAUTOPhone
#define NOTSUPPORTED
Definition: gsmcomon.h:14
GSM_Error GSM_DispatchMessage(GSM_StateMachine *s)
Definition: gsmstate.c:1131
#define NONEFUNCTION
Definition: gsmcomon.h:12
GSM_Error
Definition: gammu-error.h:23
GSM_Error DCT3DCT4_GetFirmware(GSM_StateMachine *s)
#define NOTIMPLEMENTED
Definition: gsmcomon.h:13
GSM_Error DCT3DCT4_ReplyGetModelFirmware(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error NOKIA_GetManufacturer(GSM_StateMachine *s)