http://marcin-wiacek.fkn.pl/english/zips/mygnokii.tar.gz
[gnokii.git] / xgnokii / xgnokii_common.h
1 /*
2
3   X G N O K I I
4
5   A Linux/Unix GUI for Nokia mobile phones.
6
7   Released under the terms of the GNU GPL, see file COPYING for more details.
8
9 */
10
11 #ifndef XGNOKII_COMMON_H
12 #define XGNOKII_COMMON_H
13
14 #include <gtk/gtk.h>
15 #include <stdlib.h>  /* for size_t */
16
17 typedef struct {
18   GtkWidget *clist;
19   gint       column;
20 } SortColumn;
21
22 typedef struct {
23   GtkWidget *dialog;
24   GtkWidget *text;
25 } ErrorDialog;
26
27 typedef struct {
28   GtkWidget *dialog;
29   GtkWidget *text;
30 } InfoDialog;
31
32 typedef struct {
33   GtkWidget *dialog;
34   GtkWidget *text;
35 } YesNoDialog;
36
37 typedef struct {
38   GdkPixmap *pixmap;
39   GdkBitmap *mask;
40 } QuestMark;
41
42 typedef enum {
43   GUI_EVENT_CONTACTS_CHANGED,
44   GUI_EVENT_CALLERS_GROUPS_CHANGED,
45   GUI_EVENT_SMS_NUMBER_CHANGED,
46   GUI_EVENT_SMS_CENTERS_CHANGED,
47   GUI_EVENT_NETMON_CHANGED,
48   GUI_EVENT_SMS_FOLDERS_CHANGED
49 } GUIEventType;
50
51 extern void CancelDialog (const GtkWidget *, const gpointer);
52 extern void CreateErrorDialog (ErrorDialog *, GtkWidget *);
53 extern void CreateInfoDialog (InfoDialog *, GtkWidget *);
54 extern void CreateYesNoDialog (YesNoDialog *, const GtkSignalFunc,
55                                const GtkSignalFunc, GtkWidget *);
56 extern GtkWidget* NewPixmap (gchar **, GdkWindow *, GdkColor *);
57 extern void DeleteEvent (const GtkWidget *, const GdkEvent *, const gpointer );
58 extern gint LaunchProcess (const gchar *, const gchar *, const gint,
59                            const gint, const gint);
60 extern void RemoveZombie (const gint);
61 extern void Help (const GtkWidget *, const gpointer);
62 extern gint strrncmp (const gchar * const, const gchar * const, size_t);
63 extern gchar *GetModel (const gchar *);
64 extern bool CallerGroupSupported (const gchar *);
65 extern bool NetmonitorSupported (const gchar *);
66 extern bool KeyboardSupported (const gchar *);
67 extern bool SMSSupported (const gchar *);
68 extern bool CalendarSupported (const gchar *);
69 extern bool DTMFSupported (const gchar *);
70 extern bool DataSupported (const gchar *);
71 extern bool SpeedDialSupported (const gchar *);
72 extern void GUI_Refresh (void);
73 extern void SetSortColumn (GtkWidget *, SortColumn *);
74 extern void GUIEventAdd (GUIEventType, void (*)(void));
75 extern bool GUIEventRemove (GUIEventType, void (*)(void));
76 extern void GUIEventSend (GUIEventType);
77 #endif