summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/phone/nokia/nfunc.h
Unidiff
Diffstat (limited to 'gammu/emb/common/phone/nokia/nfunc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--gammu/emb/common/phone/nokia/nfunc.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/gammu/emb/common/phone/nokia/nfunc.h b/gammu/emb/common/phone/nokia/nfunc.h
new file mode 100644
index 0000000..5ba3df0
--- a/dev/null
+++ b/gammu/emb/common/phone/nokia/nfunc.h
@@ -0,0 +1,99 @@
1/* (c) 2002-2004 by Marcin Wiacek */
2
3#ifndef phone_nokia_h
4#define phone_nokia_h
5
6#include "ncommon.h"
7#include "../../gsmcomon.h"
8#include "../../gsmstate.h"
9
10extern unsigned char N71_65_MEMORY_TYPES[];
11extern GSM_Profile_PhoneTableValue Profile71_65[];
12
13 GSM_Error NOKIA_ReplyGetPhoneString (GSM_Protocol_Message msg, GSM_StateMachine *s);
14 GSM_Error N71_65_ReplyGetMemoryError (unsigned char error , GSM_StateMachine *s);
15 GSM_Error N71_65_ReplyWritePhonebook (GSM_Protocol_Message msg, GSM_StateMachine *s);
16 GSM_Error N71_65_ReplyGetCalendarInfo1 (GSM_Protocol_Message msg, GSM_StateMachine *s, GSM_NOKIACalToDoLocations *LastCalendar);
17 GSM_Error N71_65_ReplyGetNextCalendar1 (GSM_Protocol_Message msg, GSM_StateMachine *s);
18 GSM_Error N71_65_ReplyGetCalendarNotePos1(GSM_Protocol_Message msg, GSM_StateMachine *s,int *FirstCalendarPos);
19 GSM_Error N71_65_ReplyAddCalendar1 (GSM_Protocol_Message msg, GSM_StateMachine *s);
20 GSM_Error N71_65_ReplyAddCalendar2 (GSM_Protocol_Message msg, GSM_StateMachine *s);
21 GSM_Error N71_65_ReplyDelCalendar (GSM_Protocol_Message msg, GSM_StateMachine *s);
22 GSM_Error N71_65_ReplyCallInfo (GSM_Protocol_Message msg, GSM_StateMachine *s);
23 GSM_Error N71_65_ReplyUSSDInfo (GSM_Protocol_Message msg, GSM_StateMachine *s);
24 GSM_Error DCT3DCT4_ReplyCallDivert (GSM_Protocol_Message msg, GSM_StateMachine *s);
25 GSM_Error DCT3DCT4_ReplyGetActiveConnectSet(GSM_Protocol_Message msg, GSM_StateMachine *s);
26 GSM_Error DCT3DCT4_ReplySetActiveConnectSet(GSM_Protocol_Message msg, GSM_StateMachine *s);
27 GSM_Error DCT3DCT4_ReplyGetWAPBookmark (GSM_Protocol_Message msg, GSM_StateMachine *s, bool FullLength);
28 GSM_Error DCT3DCT4_ReplySetWAPBookmark (GSM_Protocol_Message msg, GSM_StateMachine *s);
29 GSM_Error DCT3DCT4_ReplyDelWAPBookmark (GSM_Protocol_Message msg, GSM_StateMachine *s);
30 GSM_Error DCT3DCT4_ReplyEnableConnectFunc(GSM_Protocol_Message msg, GSM_StateMachine *s);
31GSM_Error DCT3DCT4_ReplyDisableConnectFunc (GSM_Protocol_Message msg, GSM_StateMachine *s);
32 GSM_Error DCT3DCT4_ReplyGetModelFirmware(GSM_Protocol_Message msg, GSM_StateMachine *s);
33 GSM_Error N71_65_ReplySendDTMF (GSM_Protocol_Message msg, GSM_StateMachine *s);
34
35 GSM_Error NOKIA_GetManufacturer (GSM_StateMachine *s);
36 GSM_Error NOKIA_GetPhoneString (GSM_StateMachine *s, unsigned char *msgframe, int msglen, unsigned char msgtype, char *retvalue, GSM_Phone_RequestID request, int startresponse);
37 GSM_Error NOKIA_SetIncomingSMS (GSM_StateMachine *s, bool enable);
38 GSM_Error NOKIA_SetIncomingCall (GSM_StateMachine *s, bool enable);
39 GSM_Error NOKIA_SetIncomingUSSD (GSM_StateMachine *s, bool enable);
40 GSM_Error N71_65_EnableFunctions (GSM_StateMachine *s, char *buff,int len);
41 GSM_Error N71_65_GetNextCalendar1 (GSM_StateMachine *s, GSM_CalendarEntry *Note, bool start, GSM_NOKIACalToDoLocations *LastCalendar, int *LastCalendarYear, int *LastCalendarPos);
42 GSM_Error N71_65_AddCalendar2 (GSM_StateMachine *s, GSM_CalendarEntry *Note);
43 GSM_Error N71_65_AddCalendar1 (GSM_StateMachine *s, GSM_CalendarEntry *Note, int *FirstCalendarPos);
44 GSM_Error N71_65_DelCalendar (GSM_StateMachine *s, GSM_CalendarEntry *Note);
45 GSM_Error N71_65_GetCalendarInfo1 (GSM_StateMachine *s, GSM_NOKIACalToDoLocations *LastCalendar);
46 GSM_Error DCT3DCT4_EnableWAPFunctions (GSM_StateMachine *s);
47 GSM_Error DCT3DCT4_SendDTMF (GSM_StateMachine *s, char *sequence);
48 GSM_Error DCT3DCT4_DeleteWAPBookmarkPart(GSM_StateMachine *s, GSM_WAPBookmark *bookmark);
49 GSM_Error DCT3DCT4_GetWAPBookmarkPart (GSM_StateMachine *s, GSM_WAPBookmark *bookmark);
50 GSM_Error DCT3DCT4_DisableConnectionFunctions(GSM_StateMachine *s);
51 GSM_Error DCT3DCT4_GetModel (GSM_StateMachine *s);
52 GSM_Error DCT3DCT4_GetFirmware (GSM_StateMachine *s);
53 GSM_Error DCT3DCT4_AnswerCall (GSM_StateMachine *s, int ID);
54 GSM_Error DCT3DCT4_CancelCall (GSM_StateMachine *s, int ID);
55 GSM_Error DCT3DCT4_GetActiveConnectSet (GSM_StateMachine *s);
56 GSM_Error DCT3DCT4_SetActiveConnectSet (GSM_StateMachine *s, GSM_MultiWAPSettings *settings);
57 GSM_Error DCT3DCT4_CancelAllDiverts (GSM_StateMachine *s);
58 GSM_Error DCT3DCT4_SetCallDivert (GSM_StateMachine *s, GSM_MultiCallDivert *divert);
59 GSM_Error DCT3DCT4_GetCallDivert (GSM_StateMachine *s, GSM_MultiCallDivert *divert);
60
61GSM_CalendarNoteType N71_65_FindCalendarType(GSM_CalendarNoteType Type, OnePhoneModel *model);
62 void N71_65_GetCalendarRecurrance(GSM_StateMachine *s, unsigned char *buffer, GSM_CalendarEntry *entry);
63 int NOKIA_SetUnicodeString (GSM_StateMachine *s, unsigned char *dest, unsigned char *string, bool FullLength);
64 void NOKIA_GetUnicodeString (GSM_StateMachine *s, int *current, unsigned char *input, unsigned char *output, bool FullLength);
65 GSM_MemoryType NOKIA_GetMemoryType (GSM_StateMachine *s, GSM_MemoryType memory_type, unsigned char *ID);
66 void NOKIA_DecodeSMSState (GSM_StateMachine *s, unsigned char state, GSM_SMSMessage *sms);
67 void NOKIA_EncodeDateTime (GSM_StateMachine *s, unsigned char* buffer, GSM_DateTime *datetime);
68 void NOKIA_DecodeDateTime (GSM_StateMachine *s, unsigned char* buffer, GSM_DateTime *datetime);
69 void NOKIA_SortSMSFolderStatus(GSM_StateMachine *s, GSM_NOKIASMSFolder *Folder);
70 void NOKIA_GetDefaultCallerGroupName(GSM_StateMachine *s, GSM_Bitmap *Bitmap);
71 void NOKIA_GetDefaultProfileName(GSM_StateMachine *s, GSM_Profile *Profile);
72 void NOKIA_FindFeatureValue(GSM_StateMachine *s,
73 GSM_Profile_PhoneTableValue ProfileTable[],
74 unsigned char ID,
75 unsigned char Value,
76 GSM_Phone_Data *Data,
77 bool CallerGroups);
78 bool NOKIA_FindPhoneFeatureValue(GSM_StateMachine *s,
79 GSM_Profile_PhoneTableValue ProfileTable[],
80 GSM_Profile_Feat_ID FeatureID,
81 GSM_Profile_Feat_Value FeatureValue,
82 unsigned char *PhoneID,
83 unsigned char *PhoneValue);
84
85 GSM_Error N71_65_DecodePhonebook (GSM_StateMachine*s,
86 GSM_MemoryEntry *entry,
87 GSM_Bitmap *bitmap,
88 GSM_SpeedDial *speed,
89 unsigned char *MessageBuffer,
90 int MessageLength,
91 bool DayMonthReverse);
92 int N71_65_EncodePhonebookFrame(GSM_StateMachine *s, unsigned char *req, GSM_MemoryEntry entry, int *block2, bool DCT4, bool VoiceTag);
93 int N71_65_PackPBKBlock (GSM_StateMachine *s, int id, int size, int no, unsigned char *buf, unsigned char *block);
94
95#endif
96
97/* How should editor hadle tabs in this file? Add editor commands here.
98 * vim: noexpandtab sw=8 ts=8 sts=8:
99 */