X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=xgnokii%2Fxgnokii_common.h;fp=xgnokii%2Fxgnokii_common.h;h=e90439a825e2c6a66c2d1210216621d1c42f82d0;hb=5d49fe8eea4e11457b4f9904eb0d5db435679841;hp=0000000000000000000000000000000000000000;hpb=a51604573a1dfaaad4304ffbf918e91617acf468;p=gnokii.git diff --git a/xgnokii/xgnokii_common.h b/xgnokii/xgnokii_common.h new file mode 100644 index 0000000..e90439a --- /dev/null +++ b/xgnokii/xgnokii_common.h @@ -0,0 +1,77 @@ +/* + + X G N O K I I + + A Linux/Unix GUI for Nokia mobile phones. + + Released under the terms of the GNU GPL, see file COPYING for more details. + +*/ + +#ifndef XGNOKII_COMMON_H +#define XGNOKII_COMMON_H + +#include +#include /* for size_t */ + +typedef struct { + GtkWidget *clist; + gint column; +} SortColumn; + +typedef struct { + GtkWidget *dialog; + GtkWidget *text; +} ErrorDialog; + +typedef struct { + GtkWidget *dialog; + GtkWidget *text; +} InfoDialog; + +typedef struct { + GtkWidget *dialog; + GtkWidget *text; +} YesNoDialog; + +typedef struct { + GdkPixmap *pixmap; + GdkBitmap *mask; +} QuestMark; + +typedef enum { + GUI_EVENT_CONTACTS_CHANGED, + GUI_EVENT_CALLERS_GROUPS_CHANGED, + GUI_EVENT_SMS_NUMBER_CHANGED, + GUI_EVENT_SMS_CENTERS_CHANGED, + GUI_EVENT_NETMON_CHANGED, + GUI_EVENT_SMS_FOLDERS_CHANGED +} GUIEventType; + +extern void CancelDialog (const GtkWidget *, const gpointer); +extern void CreateErrorDialog (ErrorDialog *, GtkWidget *); +extern void CreateInfoDialog (InfoDialog *, GtkWidget *); +extern void CreateYesNoDialog (YesNoDialog *, const GtkSignalFunc, + const GtkSignalFunc, GtkWidget *); +extern GtkWidget* NewPixmap (gchar **, GdkWindow *, GdkColor *); +extern void DeleteEvent (const GtkWidget *, const GdkEvent *, const gpointer ); +extern gint LaunchProcess (const gchar *, const gchar *, const gint, + const gint, const gint); +extern void RemoveZombie (const gint); +extern void Help (const GtkWidget *, const gpointer); +extern gint strrncmp (const gchar * const, const gchar * const, size_t); +extern gchar *GetModel (const gchar *); +extern bool CallerGroupSupported (const gchar *); +extern bool NetmonitorSupported (const gchar *); +extern bool KeyboardSupported (const gchar *); +extern bool SMSSupported (const gchar *); +extern bool CalendarSupported (const gchar *); +extern bool DTMFSupported (const gchar *); +extern bool DataSupported (const gchar *); +extern bool SpeedDialSupported (const gchar *); +extern void GUI_Refresh (void); +extern void SetSortColumn (GtkWidget *, SortColumn *); +extern void GUIEventAdd (GUIEventType, void (*)(void)); +extern bool GUIEventRemove (GUIEventType, void (*)(void)); +extern void GUIEventSend (GUIEventType); +#endif