7 A Linux/Unix GUI for Nokia mobile phones.
8 Copyright (C) 1999 Pavel Janík ml., Hugh Blemings
9 & Ján Derfiòák <ja@mail.upjs.sk>.
11 Released under the terms of the GNU GPL, see file COPYING for more details.
14 Revision 1.1.1.1 2001/11/25 21:59:31 short
15 :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
17 Revision 1.9 2001/09/14 13:09:26 pkot
18 Xgnokii calendar updates
20 Revision 1.8 2001/02/02 08:09:57 ja
21 New dialogs for 6210/7110 in xgnokii. Fixed the smsd for new capabilty code.
23 Revision 1.7 2001/01/29 15:22:22 machek
24 Use integer as bitfield instead of struct of int:1.
26 Be able to read phonebook saved in gnokii format from xgnokii.
28 Revision 1.6 2001/01/17 02:54:57 chris
29 More 7110 work. Use with care! (eg it is not possible to delete phonebook entries)
30 I can now edit my phonebook in xgnokii but it is 'work in progress'.
32 Revision 1.5 2001/01/15 21:10:20 ja
33 Better status reporting in xgnokii, fixed phone capabilities detection in xgnokii.
38 #ifndef XGNOKII_LOWLEVEL_H
39 #define XGNOKII_LOWLEVEL_H
43 #include "gsm-common.h"
45 #define INCALL_NUMBER_LENGTH 20
46 #define NETMON_SCREEN_LENGTH 60
55 Event_GetMemoryStatus,
56 Event_GetMemoryLocation,
57 Event_GetMemoryLocationAll,
58 Event_WriteMemoryLocation,
59 Event_WriteMemoryLocationAll,
60 Event_GetCalendarNote,
61 Event_GetCalendarNoteAll,
62 Event_WriteCalendarNote,
63 Event_DeleteCalendarNote,
65 Event_SendCallerGroup,
69 Event_DeleteSMSMessage,
73 Event_NetMonitorOnOff,
101 GSM_MessageCenter *center;
117 GSM_MemoryStatus memoryStatus;
122 GSM_PhonebookEntry *entry;
131 gint (*InsertEntry)(GSM_PhonebookEntry *);
132 gint (*ReadFailed)(gint);
133 } D_MemoryLocationAll;
136 GSM_CalendarNote *entry;
142 gint (*InsertEntry)(GSM_CalendarNote *);
143 gint (*ReadFailed)(gint);
153 GSM_NetworkInfo *info;
159 GSM_PowerSource powerSource;
174 CallState callInProgress;
175 gchar callNum[INCALL_NUMBER_LENGTH];
179 gchar screen[NETMON_SCREEN_LENGTH];
180 gchar screen3[NETMON_SCREEN_LENGTH];
181 gchar screen4[NETMON_SCREEN_LENGTH];
182 gchar screen5[NETMON_SCREEN_LENGTH];
187 extern pthread_t monitor_th;
188 extern PhoneMonitor phoneMonitor;
189 extern pthread_mutex_t memoryMutex;
190 extern pthread_cond_t memoryCond;
191 extern pthread_mutex_t calendarMutex;
192 extern pthread_cond_t calendarCond;
193 extern pthread_mutex_t smsMutex;
194 extern pthread_mutex_t sendSMSMutex;
195 extern pthread_cond_t sendSMSCond;
196 extern pthread_mutex_t callMutex;
197 extern pthread_mutex_t netMonMutex;
198 extern pthread_mutex_t speedDialMutex;
199 extern pthread_cond_t speedDialCond;
200 extern pthread_mutex_t callerGroupMutex;
201 extern pthread_cond_t callerGroupCond;
202 extern pthread_mutex_t smsCenterMutex;
203 extern pthread_cond_t smsCenterCond;
204 extern pthread_mutex_t alarmMutex;
205 extern pthread_cond_t alarmCond;
206 extern pthread_mutex_t getBitmapMutex;
207 extern pthread_cond_t getBitmapCond;
208 extern pthread_mutex_t setBitmapMutex;
209 extern pthread_cond_t setBitmapCond;
210 extern pthread_mutex_t getNetworkInfoMutex;
211 extern pthread_cond_t getNetworkInfoCond;
212 extern void GUI_InitPhoneMonitor (void);
213 extern void *GUI_Connect (void *a);
214 extern void GUI_InsertEvent (PhoneEvent *event);