8 #include "../../misc/coding/coding.h" 9 #include "../../gsmstate.h" 10 #include "../../service/gsmcal.h" 19 if (buffer[0] == 0x00 && buffer[1] == 0x00 && buffer[2] == 0xff && buffer[3] == 0xff) {
24 diff = ((
unsigned int)buffer[0]) << 24;
25 diff += ((
unsigned int)buffer[1]) << 16;
26 diff += ((
unsigned int)buffer[2]) << 8;
28 smprintf(s,
" Difference : %li seconds\n", diff);
30 switch (entry->
Type) {
47 smprintf(s,
"Alarm date : %02i-%02i-%04i %02i:%02i:%02i\n",
55 smprintf(s,
"Alarm type : Silent\n");
71 smprintf(s,
"Calendar note received method 2\n");
79 if (msg->
Buffer[21] != 0x04) {
86 diff = ((
unsigned int)msg->
Buffer[12]) << 24;
87 diff += ((
unsigned int)msg->
Buffer[13]) << 16;
88 diff += ((
unsigned int)msg->
Buffer[14]) << 8;
90 smprintf(s,
" Difference : %li seconds\n", diff);
99 if (msg->
Buffer[21] == 0x01) {
100 smprintf(s,
"Meeting or Reminder\n");
110 N71_65_GetCalendarAlarm(s, msg->
Buffer+16, entry, 0, Data);
125 N71_65_GetCalendarAlarm(s, msg->
Buffer+16, entry, 0, Data);
155 N71_65_GetCalendarAlarm(s, msg->
Buffer+16, entry, 0, Data);
161 smprintf(s,
"Birthday date: %02i-%02i-%04i\n",
203 *LastCalendarYear = date_time.
Year;
209 req[4] = *LastCalendarPos / 256;
210 req[5] = *LastCalendarPos % 256;
216 smprintf(s,
"Getting calendar note method 2\n");
char * DecodeUnicodeString(const unsigned char *src)
void GetTimeDifference(unsigned long diff, GSM_DateTime *DT, gboolean Plus, int multi)
#define N6110_FRAME_HEADER
GSM_PhoneModel * ModelInfo
void GSM_GetCalendarRecurranceRepeat(GSM_Debug_Info *di, unsigned char *rec, unsigned char *endday, GSM_CalendarEntry *entry)
GSM_CalendarNoteType Type
GSM_Error GSM_WaitFor(GSM_StateMachine *s, unsigned const char *buffer, size_t length, int type, int timeout, GSM_Phone_RequestID request)
GSM_CalendarType EntryType
GSM_Error(* GetDateTime)(GSM_StateMachine *s, GSM_DateTime *date_time)
GSM_SubCalendarEntry Entries[GSM_CALENDAR_ENTRIES]
void GSM_GetCurrentDateTime(GSM_DateTime *Date)
gboolean GSM_IsPhoneFeatureAvailable(GSM_PhoneModel *model, GSM_Feature feature)
GSM_Phone_Functions * Functions
unsigned char Text[(GSM_MAX_CALENDAR_TEXT_LENGTH+1) *2]
int smprintf(GSM_StateMachine *s, const char *format,...)