1 /* 2 3 $Id$ 4 5 X G N O K I I 6 7 A Linux/Unix GUI for the mobile phones. 8 9 This file is part of gnokii. 10 11 Gnokii is free software; you can redistribute it and/or modify 12 it under the terms of the GNU General Public License as published by 13 the Free Software Foundation; either version 2 of the License, or 14 (at your option) any later version. 15 16 Gnokii is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License for more details. 20 21 You should have received a copy of the GNU General Public License 22 along with gnokii; if not, write to the Free Software 23 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 25 Copyright (C) 1999 Pavel Jan�k ml., Hugh Blemings 26 Copyright (C) 1999-2005 Jan Derfinak 27 Copyright (C) 2001 Chris Kemp 28 Copyright (C) 2002 Markus Plail 29 Copyright (C) 2002-2004 Pawel Kot 30 31 */ 32 33 #ifndef XGNOKII_H 34 #define XGNOKII_H 35 36 #include <gtk/gtk.h> 37 #include "config.h" 38 #include "misc.h" 39 #include "gnokii.h" 40 41 #define MAX_CALLER_GROUP_LENGTH 10 42 #define MAX_SMS_CENTER 10 43 #define MAX_BUSINESS_CARD_LENGTH 139 44 45 typedef struct { 46 gchar *name; 47 gchar *title; 48 gchar *company; 49 gchar *telephone; 50 gchar *fax; 51 gchar *email; 52 gchar *address; 53 } UserInf; 54 55 typedef struct { 56 gint initlength; /* Init length from the config file */ 57 gchar *model; /* Model from the config file. */ 58 gchar *port; /* Serial port from the config file */ 59 gn_connection_type connection; /* Connection type from the config file */ 60 const gchar *bindir; 61 gchar *xgnokiidir; 62 gchar *mailbox; /* Mailbox, where we can save SMS's */ 63 gchar *maxSIMLen; /* Max length of names on SIM card */ 64 gchar *maxPhoneLen; /* Max length of names in phone */ 65 gchar *locale; /* Locale for the app translations */ 66 gn_sms_message_center smsSetting[MAX_SMS_CENTER]; 67 UserInf user; 68 gint allowBreakage; 69 gchar *callerGroups[6]; 70 gint smsSets:4; 71 bool alarmSupported:1; 72 } XgnokiiConfig; 73 74 /* Hold main configuration data for xgnokii */ 75 extern XgnokiiConfig xgnokiiConfig; 76 77 extern gint lastfoldercount, foldercount; 78 extern char folders[GN_SMS_FOLDER_MAX_NUMBER][GN_SMS_MESSAGE_MAX_NUMBER]; 79 extern gint max_phonebook_name_length; 80 extern gint max_phonebook_number_length; 81 extern gint max_phonebook_sim_name_length; 82 extern gint max_phonebook_sim_number_length; 83 extern void GUI_InitCallerGroupsInf(void); 84 extern void GUI_InitSMSSettings(void); 85 extern void GUI_ShowAbout(void); 86 extern void MainExit(gchar *); 87 88 #endif /* XGNOKII_H */ 89