Gammu internals  1.38.0
gammu-wap.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_wap_h
8 #define __gammu_wap_h
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
19 #include <gammu-types.h>
20 #include <gammu-error.h>
21 #include <gammu-statemachine.h>
22 
23 #include <stdlib.h> /* Needed for size_t declaration */
24 
30 typedef struct {
34  int Location;
38  unsigned char Address[(255 + 1) * 2];
42  unsigned char Title[(50 + 1) * 2];
44 
45 /* --------------------------- WAP or MMS settings ------------------------- */
46 
52 typedef enum {
57 
63 typedef enum {
69 
75 typedef struct {
79  char Title[(20 + 1) * 2];
83  char HomePage[(100 + 1) * 2];
87  WAPSettings_Bearer Bearer;
96 
105 
109  char Server[(21 + 1) * 2];
110 
114  char Service[(20 + 1) * 2];
119 
123  char Code[(10 + 1) * 2];
124 
128  char IPAddress[(20 + 1) * 2];
136  char DialUp[(20 + 1) * 2];
142  char User[(50 + 1) * 2];
148  char Password[(50 + 1) * 2];
152  WAPSettings_Speed Speed;
154 
160 typedef struct {
164  int Location;
168  unsigned char Number;
172  GSM_WAPSettings Settings[4];
184  char Proxy[(100 + 1) * 2];
192  char Proxy2[(100 + 1) * 2];
200  WAPSettings_Bearer ActiveBearer;
202 
214 GSM_Error GSM_EncodeURLFile(unsigned char *Buffer, size_t * Length,
215  GSM_WAPBookmark * bookmark);
216 
227 GSM_Error GSM_GetWAPBookmark(GSM_StateMachine * s, GSM_WAPBookmark * bookmark);
228 
239 GSM_Error GSM_SetWAPBookmark(GSM_StateMachine * s, GSM_WAPBookmark * bookmark);
240 
252  GSM_WAPBookmark * bookmark);
253 
265  GSM_MultiWAPSettings * settings);
266 
278  GSM_MultiWAPSettings * settings);
279 #ifdef __cplusplus
280 }
281 #endif
282 #endif
283 
284 /* Editor configuration
285  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
286  */
GSM_Error GSM_SetWAPSettings(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
Definition: api.c:1170
WAPSettings_Bearer ActiveBearer
Definition: gammu-wap.h:200
gboolean IsNormalAuthentication
Definition: gammu-wap.h:104
gboolean IsSecurity
Definition: gammu-wap.h:91
GSM_Error
Definition: gammu-error.h:23
unsigned char Number
Definition: gammu-wap.h:168
WAPSettings_Bearer Bearer
Definition: gammu-wap.h:87
gboolean IsIP
Definition: gammu-wap.h:118
int gboolean
Definition: gammu-types.h:23
WAPSettings_Bearer
Definition: gammu-wap.h:63
gboolean ManualLogin
Definition: gammu-wap.h:132
GSM_Error GSM_EncodeURLFile(unsigned char *Buffer, size_t *Length, GSM_WAPBookmark *bookmark)
Definition: gsmdata.c:288
WAPSettings_Speed Speed
Definition: gammu-wap.h:152
WAPSettings_Speed
Definition: gammu-wap.h:52
GSM_Error GSM_DeleteWAPBookmark(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
Definition: api.c:1144
GSM_Error GSM_GetWAPBookmark(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
Definition: api.c:1118
gboolean IsISDNCall
Definition: gammu-wap.h:100
GSM_Error GSM_SetWAPBookmark(GSM_StateMachine *s, GSM_WAPBookmark *bookmark)
Definition: api.c:1131
gboolean IsContinuous
Definition: gammu-wap.h:95
GSM_Error GSM_GetWAPSettings(GSM_StateMachine *s, GSM_MultiWAPSettings *settings)
Definition: api.c:1157