X G N O K I I
A Linux/Unix GUI for Nokia mobile phones.
+ Copyright (C) 1999 Pavel Janík ml., Hugh Blemings
+ & Ján Derfiòák <ja@mail.upjs.sk>.
Released under the terms of the GNU GPL, see file COPYING for more details.
$Id$
+ $Log$
+ Revision 1.1.1.5 2002/04/03 00:08:28 short
+ Found in "gnokii-working" directory, some November-patches version
+
+ Revision 1.30 2001/09/14 13:14:04 pkot
+ Xgnokii WM fixes (Martin Lucina)
+
+ Revision 1.29 2001/03/23 08:24:56 ja
+ New preview for 6210 in xgnokii's logos module.
+
+ Revision 1.28 2001/03/19 23:43:47 pkot
+ Solaris/BSD '#if defined' cleanup
+
+ Revision 1.27 2001/03/13 01:21:39 pkot
+ *BSD updates (Bert Driehuis)
+
+ Revision 1.26 2001/03/05 10:42:03 ja
+ Pavel Machek's vcard and finegrained indicators patch.
+
+ Revision 1.25 2001/02/12 15:13:46 chris
+ Fixed my bug in xgnokii_contacts.c and added <string.h> to tekram.c
+
+ Revision 1.24 2001/02/02 08:09:57 ja
+ New dialogs for 6210/7110 in xgnokii. Fixed the smsd for new capabilty code.
+
+
*/
#endif
#include <gtk/gtk.h>
-#include "gsm-api.h"
#include "gsm-common.h"
#include "xgnokii_contacts.h"
#include "xgnokii_lowlevel.h"
max_phonebook_name_length);
entry->entry.Name[max_phonebook_name_length] = '\0';
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
}
else
gtk_widget_show (errorDialog.dialog);
}
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
}
else
max_phonebook_name_length);
((EditEntryData*) data)->pbEntry->entry.Name[max_phonebook_name_length] = '\0';
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
}
else
gtk_widget_show (errorDialog.dialog);
}
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
}
else
clist_row[2] = "P";
else
clist_row[2] = "S";
- if (GetModelFeature(FN_CALLERGROUPS)!=0)
+ if (phoneMonitor.supported & PM_CALLERGROUP)
clist_row[3] = xgnokiiConfig.callerGroups[((EditEntryData*) data)->pbEntry->entry.Group];
else
clist_row[3] = "";
max_phonebook_name_length);
entry->entry.Name[max_phonebook_name_length] = '\0';
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
}
else
gtk_widget_show (errorDialog.dialog);
}
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
}
else
max_phonebook_name_length);
((EditEntryData*) data)->pbEntry->entry.Name[max_phonebook_name_length] = '\0';
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
}
else
gtk_widget_show (errorDialog.dialog);
}
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
}
else
clist_row[2] = "P";
else
clist_row[2] = "S";
- if (GetModelFeature(FN_CALLERGROUPS)!=0)
+ if (phoneMonitor.supported & PM_CALLERGROUP)
clist_row[3] = xgnokiiConfig.callerGroups[((EditEntryData*) data)->pbEntry->entry.Group];
else
clist_row[3] = "";
clist_row[2] = "P";
else
clist_row[2] = "S";
- if (GetModelFeature(FN_CALLERGROUPS)!=0)
+ if (phoneMonitor.supported & PM_CALLERGROUP)
clist_row[3] = xgnokiiConfig.callerGroups[newPbEntry->entry.Group];
else
clist_row[3] = "";
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 2);
gtk_widget_show (label);
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
button = gtk_button_new ();
editEntryData->number = gtk_label_new ("");
gtk_widget_show (editEntryData->number);
}
-/* if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT) {
+/* if (phoneMonitor.supported & PM_EXTPBK) {
hbox = gtk_hbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (editEntryData->dialog)->vbox), hbox);
gtk_entry_set_text (GTK_ENTRY (editEditEntryData.name), pbEntry->entry.Name);
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
gtk_label_set_text (GTK_LABEL (editEditEntryData.number), pbEntry->entry.Number);
else
gtk_entry_set_text (GTK_ENTRY (editEditEntryData.number), pbEntry->entry.Number);
gtk_option_menu_set_history( GTK_OPTION_MENU (editEditEntryData.group),
pbEntry->entry.Group);
- if (GetModelFeature(FN_CALLERGROUPS)!=0)
+ if (phoneMonitor.supported & PM_CALLERGROUP)
{
gtk_widget_show (editEditEntryData.group);
gtk_widget_show (editEditEntryData.groupLabel);
gtk_entry_set_text (GTK_ENTRY (newEditEntryData.name), "");
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
gtk_label_set_text (GTK_LABEL (newEditEntryData.number), "");
else
gtk_entry_set_text (GTK_ENTRY (newEditEntryData.number), "");
gtk_option_menu_set_history( GTK_OPTION_MENU (newEditEntryData.group),
pbEntry->entry.Group);
- if (GetModelFeature(FN_CALLERGROUPS)!=0)
+ if (phoneMonitor.supported & PM_CALLERGROUP)
{
gtk_widget_show (newEditEntryData.group);
gtk_widget_show (newEditEntryData.groupLabel);
gtk_entry_set_text (GTK_ENTRY (duplicateEditEntryData.name), pbEntry->entry.Name);
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
gtk_label_set_text (GTK_LABEL (duplicateEditEntryData.number), pbEntry->entry.Number);
else
gtk_entry_set_text (GTK_ENTRY (duplicateEditEntryData.number), pbEntry->entry.Number);
gtk_option_menu_set_history( GTK_OPTION_MENU (duplicateEditEntryData.group),
pbEntry->entry.Group);
- if (GetModelFeature(FN_CALLERGROUPS)!=0)
+ if (phoneMonitor.supported & PM_CALLERGROUP)
{
gtk_widget_show (duplicateEditEntryData.group);
gtk_widget_show (duplicateEditEntryData.groupLabel);
row[2] = "P";
else
row[2] = "S";
- if (GetModelFeature(FN_CALLERGROUPS)!=0)
+ if (phoneMonitor.supported & PM_CALLERGROUP)
row[3] = xgnokiiConfig.callerGroups[pbEntry->entry.Group];
else
row[3] = "";
mla->min = 1;
mla->max = memoryStatus.MaxME;
mla->type = GMT_ME;
- mla->used = memoryStatus.UsedME; //MW
mla->InsertEntry = InsertPBEntryME;
mla->ReadFailed = ReadFailedPBEntry;
mla->min = 1;
mla->max = memoryStatus.MaxSM;
mla->type = GMT_SM;
- mla->used = memoryStatus.UsedSM; //MW
mla->InsertEntry = InsertPBEntrySM;
mla->ReadFailed = ReadFailedPBEntry;
GUI_Refresh ();
GUI_InitCallerGroupsInf ();
}
- gtk_clist_set_column_visibility (GTK_CLIST (clist), 3, (GetModelFeature(FN_CALLERGROUPS)!=0));
+ gtk_clist_set_column_visibility (GTK_CLIST (clist), 3, phoneMonitor.supported & PM_CALLERGROUP);
GUI_RefreshContacts ();
gtk_widget_show (GUI_ContactsWindow);
// if (!contactsMemoryInitialized)
fprintf (f, "X_GSM_CALLERGROUP:%d\n", pbEntry->entry.Group);
/* Add ext. pbk info if required */
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
for (j = 0; j < pbEntry->entry.SubEntriesCount; j++)
{
if (pbEntry->entry.SubEntries[j].EntryType == GSM_Number)
strcat (buf, buf2);
/* Add ext. pbk info if required */
- if (GetModelFeature(FN_PHONEBOOK)==F_PBK71INT)
+ if (phoneMonitor.supported & PM_EXTPBK)
{
for (j = 0; j < pbEntry->entry.SubEntriesCount; j++)
if (pbEntry->entry.SubEntries[j].EntryType==GSM_Number)
gtk_clist_set_column_width (GTK_CLIST(selectContactData.clist), 1, 115);
gtk_clist_set_column_width (GTK_CLIST(selectContactData.clist), 3, 70);
gtk_clist_set_column_justification (GTK_CLIST(selectContactData.clist), 2, GTK_JUSTIFY_CENTER);
- gtk_clist_set_column_visibility (GTK_CLIST(selectContactData.clist), 3, (GetModelFeature(FN_CALLERGROUPS)!=0));
+ gtk_clist_set_column_visibility (GTK_CLIST(selectContactData.clist), 3, phoneMonitor.supported & PM_CALLERGROUP);
for (i = 0; i < 4; i++)
{
row[2] = "P";
else
row[2] = "S";
- if (GetModelFeature(FN_CALLERGROUPS)!=0)
+ if (phoneMonitor.supported & PM_CALLERGROUP)
row[3] = xgnokiiConfig.callerGroups[pbEntry->entry.Group];
else
row[3] = "";
InitMainMenu ();
contactsMemoryInitialized = FALSE;
GUI_ContactsWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_wmclass (GTK_WINDOW (GUI_ContactsWindow), "ContactsWindow", "Xgnokii");
gtk_window_set_title (GTK_WINDOW (GUI_ContactsWindow), _("Contacts"));
gtk_widget_set_usize (GTK_WIDGET (GUI_ContactsWindow), 436, 220);
//gtk_container_set_border_width (GTK_CONTAINER (GUI_ContactsWindow), 10);
gtk_clist_set_column_width (GTK_CLIST (clist), 1, 115);
gtk_clist_set_column_width (GTK_CLIST (clist), 3, 70);
gtk_clist_set_column_justification (GTK_CLIST (clist), 2, GTK_JUSTIFY_CENTER);
-// gtk_clist_set_column_visibility (GTK_CLIST (clist), 3, (GetModelFeature(FN_CALLERGROUPS)!=0));
+// gtk_clist_set_column_visibility (GTK_CLIST (clist), 3, phoneMonitor.supported & PM_CALLERGROUP);
for (i = 0; i < 4; i++)
{