:pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
[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   Copyright (C) 1999 Pavel Janík ml., Hugh Blemings
7   & Ján Derfiòák <ja@mail.upjs.sk>.
8
9   Released under the terms of the GNU GPL, see file COPYING for more details.
10
11   Last modification: Mon May 01 2000
12   Modified by Jan Derfinak
13
14 */
15
16 #ifndef XGNOKII_COMMON_H
17 #define XGNOKII_COMMON_H
18
19 #include <gtk/gtk.h>
20 #include <stdlib.h>  /* for size_t */
21
22 typedef struct {
23   GtkWidget *clist;
24   gint       column;
25 } SortColumn;
26
27 /* typedef struct {
28   gchar *model;
29   gchar *number;
30 } Model;
31 */
32
33 typedef struct {
34   GtkWidget *dialog;
35   GtkWidget *text;
36 } ErrorDialog;
37
38 typedef struct {
39   GtkWidget *dialog;
40   GtkWidget *text;
41 } InfoDialog;
42
43 typedef struct {
44   GtkWidget *dialog;
45   GtkWidget *text;
46 } YesNoDialog;
47
48 typedef struct {
49   GdkPixmap *pixmap;
50   GdkBitmap *mask;
51 } QuestMark;
52
53 typedef enum {
54   GUI_EVENT_CONTACTS_CHANGED,
55   GUI_EVENT_CALLERS_GROUPS_CHANGED,
56   GUI_EVENT_SMS_NUMBER_CHANGED,
57   GUI_EVENT_SMS_CENTERS_CHANGED,
58   GUI_EVENT_NETMON_CHANGED,
59 } GUIEventType;
60
61 extern void CancelDialog (const GtkWidget *, const gpointer);
62 extern void CreateErrorDialog (ErrorDialog *, GtkWidget *);
63 extern void CreateInfoDialog (InfoDialog *, GtkWidget *);
64 extern void CreateYesNoDialog (YesNoDialog *, const GtkSignalFunc,
65                                const GtkSignalFunc, GtkWidget *);
66 extern GtkWidget* NewPixmap (gchar **, GdkWindow *, GdkColor *);
67 extern void DeleteEvent (const GtkWidget *, const GdkEvent *, const gpointer );
68 extern gint LaunchProcess (const gchar *, const gchar *, const gint,
69                            const gint, const gint);
70 extern void RemoveZombie (const gint);
71 extern void Help (const GtkWidget *, const gpointer);
72 extern gint strrncmp (const gchar * const, const gchar * const, size_t);
73 extern void GUI_Refresh (void);
74 extern void SetSortColumn (GtkWidget *, SortColumn *);
75 extern void GUIEventAdd (GUIEventType, void (*)(void));
76 extern bool GUIEventRemove (GUIEventType, void (*)(void));
77 extern void GUIEventSend (GUIEventType);
78 #endif