:pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Tue Nov 27 05:17 CET 2001
[gnokii.git] / xgnokii / xgnokii.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: Wed Apr 26 2000
12   Modified by Jan Derfinak
13
14 */
15
16 #ifndef XGNOKII_H
17 #define XGNOKII_H
18
19 #include <gtk/gtk.h>
20 #include "config.h"
21 #include "misc.h"
22 #include "gsm-common.h"
23
24 #define MAX_CALLER_GROUP_LENGTH 10
25 #define MAX_SMS_CENTER          10
26 #define MAX_BUSINESS_CARD_LENGTH        139
27
28 typedef struct {
29   gchar *name;
30   gchar *title;
31   gchar *company;
32   gchar *telephone;
33   gchar *fax;
34   gchar *email;
35   gchar *address;
36 } UserInf;
37
38 typedef struct {
39   gchar *initlength; /* Init length from .gnokiirc file */
40   gchar *model;      /* Model from .gnokiirc file. */
41   gchar *port;       /* Serial port from .gnokiirc file */
42   gchar *connection; /* Connection type from .gnokiirc file */
43   gchar *bindir;
44   gchar *xgnokiidir;
45   gchar *helpviewer; /* Program to showing help files */
46   gchar *mailbox;    /* Mailbox, where we can save SMS's */
47   gchar *maxSIMLen;  /* Max length of names on SIM card */
48   gchar *maxPhoneLen;/* Max length of names in phone */
49   gchar *locale;
50   GSM_MessageCenter smsSetting[MAX_SMS_CENTER];
51   UserInf user;
52   gchar *callerGroups[6];
53   gint   smsSets:4;
54   bool   alarmSupported:1;
55 } XgnokiiConfig;
56
57 /* Hold main configuration data for xgnokii */
58 extern XgnokiiConfig xgnokiiConfig;
59
60 extern gint max_phonebook_name_length;
61 extern gint max_phonebook_number_length;
62 extern gint max_phonebook_sim_name_length;
63 extern gint max_phonebook_sim_number_length;
64 extern void GUI_InitCallerGroupsInf (void);
65 extern void GUI_InitSMSSettings (void);
66 extern void GUI_ShowAbout (void);
67
68 #endif /* XGNOKII_H */