This commit was manufactured by cvs2svn to create branch 'uc'.
[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
7   Released under the terms of the GNU GPL, see file COPYING for more details.
8
9 */
10
11 #ifndef XGNOKII_H
12 #define XGNOKII_H
13
14 #include <gtk/gtk.h>
15 #include "config.h"
16 #include "misc.h"
17 #include "gsm-sms.h"
18
19 #define MAX_CALLER_GROUP_LENGTH 10
20 #define MAX_SMS_CENTER          10
21 #define MAX_BUSINESS_CARD_LENGTH        139
22
23 typedef struct {
24   gchar *name;
25   gchar *title;
26   gchar *company;
27   gchar *telephone;
28   gchar *fax;
29   gchar *email;
30   gchar *address;
31 } UserInf;
32
33 typedef struct {
34   gchar *initlength; /* Init length from .gnokiirc file */
35   gchar *model;      /* Model from .gnokiirc file. */
36   gchar *port;       /* Serial port from .gnokiirc file */
37   gchar *connection; /* Connection type from .gnokiirc file */
38   gchar *synchronizetime;
39   gchar *bindir;
40   gchar *xgnokiidir;
41   gchar *xgnokiidocsdir;
42   gchar *helpviewer; /* Program to showing help files */
43   gchar *mailbox;    /* Mailbox, where we can save SMS's */
44   gchar *maxSIMLen;  /* Max length of names on SIM card */
45   gchar *maxPhoneLen;/* Max length of names in phone */
46   gchar *locale;
47   GSM_MessageCenter smsSetting[MAX_SMS_CENTER];
48   UserInf user;
49   gchar *callerGroups[6];
50   gint   smsSets:4;
51   bool   alarmSupported:1;
52 } XgnokiiConfig;
53
54 /* Hold main configuration data for xgnokii */
55 extern XgnokiiConfig xgnokiiConfig;
56
57 extern gint max_phonebook_name_length;
58 extern gint max_phonebook_number_length;
59 extern gint max_phonebook_sim_name_length;
60 extern gint max_phonebook_sim_number_length;
61 extern GSM_SMSFolders folders;
62 extern void GUI_InitCallerGroupsInf (void);
63 extern void GUI_InitSMSSettings (void);
64 extern void GUI_InitSMSFoldersInf (void);
65 extern void GUI_ShowAbout (void);
66
67 #endif /* XGNOKII_H */