X-Git-Url: http://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=include%2Fgsm-wap.h;fp=include%2Fgsm-wap.h;h=b47a13b2d48b79032410401f4b93c006ebdb9a96;hp=0000000000000000000000000000000000000000;hb=2e0972b02d101bb0d8e9d3e15d2ac80def491a63;hpb=cc37b87508c91b5d4f21fd4bbc298104ae7de1dc;ds=sidebyside diff --git a/include/gsm-wap.h b/include/gsm-wap.h new file mode 100644 index 0000000..b47a13b --- /dev/null +++ b/include/gsm-wap.h @@ -0,0 +1,64 @@ +/* + + G N O K I I + + A Linux/Unix toolset and driver for Nokia mobile phones. + + Released under the terms of the GNU GPL, see file COPYING for more details. + + Functions for manipulating WAP Settings and bookmarks + +*/ + +#ifndef __gsm_wap_h +#define __gsm_wap_h + +#include "gsm-sms.h" + +typedef struct { + char address[255+1]; + char title[50+1]; + u16 location; +} GSM_WAPBookmark; + +typedef struct { + u8 location; + char homepage[100+1]; + char title[20+1]; + int bearer; + bool issecurity; + bool iscontinuous; + + /* for data bearer */ + char ipaddress[20+1]; + char dialup[20+1]; + char user[50+1]; //is length OK ? + char password[50+1]; //is length OK ? + bool isspeed14400; + bool isISDNcall; + bool isnormalauthentication; + + /* for sms bearer */ + char server[21+1]; + + /* for sms or ussd bearer */ + char service[20+1]; + bool isIP; + + /* for ussd bearer */ + char code[10+1]; +} GSM_WAPSettings; + +#define WAPSETTINGS_BEARER_SMS 0x00 +#define WAPSETTINGS_BEARER_DATA 0x01 +#define WAPSETTINGS_BEARER_USSD 0x02 + +int GSM_SaveWAPBookmarkToSMS(GSM_MultiSMSMessage *SMS, + GSM_WAPBookmark *bookmark); + +GSM_Error GSM_ReadWAPBookmark(GSM_SMSMessage *message, GSM_WAPBookmark *bookmark); + +int GSM_SaveWAPSettingsToSMS(GSM_MultiSMSMessage *SMS, + GSM_WAPSettings *settings); + +#endif