gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Motorola C350 patch 2


From: Ron Yorston
Subject: Motorola C350 patch 2
Date: Sun, 15 Feb 2004 11:34:51 GMT

As a further step in getting the Motorola C350 to work with xgnokii
here's a patch which calculates the number of free/used phonebook
entries after the contents of the phonebook have been read.  This is
necessary because the C350 doesn't report the number of used/total
entries in response to a '+CPBS?' query.

Ron

---
*** gnokii.latest/xgnokii/xgnokii_contacts.c    2004-02-15 11:05:07.000000000 
+0000
--- gnokii/xgnokii/xgnokii_contacts.c   2003-08-25 14:35:50.000000000 +0100
***************
*** 2513,2529 ****
                        gtk_widget_hide(progressDialog.dialog);
                        return;
                }
- 
-               memoryStatus.FreeME = memoryStatus.UsedME = 0;
-               for (i = 0; i < memoryStatus.MaxME; i++) {
-                       pbEntry = g_ptr_array_index(contactsMemory, i);
- 
-                       if (pbEntry->status == E_Empty)
-                               memoryStatus.FreeME++;
-                       else
-                               memoryStatus.UsedME++;
-               }
-               RefreshStatusInfo();
        }
  
        mla->min = 1;
--- 2513,2518 ----
***************
*** 2547,2563 ****
                return;
        }
  
-       memoryStatus.FreeSM = memoryStatus.UsedSM = 0;
-       for (i = memoryStatus.MaxME; i < memoryStatus.MaxME+memoryStatus.MaxSM; 
i++) {
-               pbEntry = g_ptr_array_index(contactsMemory, i);
- 
-               if (pbEntry->status == E_Empty)
-                       memoryStatus.FreeSM++;
-               else
-                       memoryStatus.UsedSM++;
-       }
-       RefreshStatusInfo();
- 
        g_free(mla);
  
        gtk_widget_hide(progressDialog.dialog);
--- 2536,2541 ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]