Send commitlog mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r1845 -
      trunk/src/target/OM-2007/applications/openmoko-rssreader/src
      ([EMAIL PROTECTED])
   2. r1846 -
      trunk/src/target/OM-2007/applications/openmoko-rssreader/src
      ([EMAIL PROTECTED])
   3. r1847 -
      trunk/src/target/OM-2007/applications/openmoko-messages/src
      ([EMAIL PROTECTED])
   4. r1848 -
      trunk/src/target/OM-2007/applications/openmoko-appmanager/src
      ([EMAIL PROTECTED])
   5. r1849 - trunk/oe/packages/openmoko-pim ([EMAIL PROTECTED])
   6. r1850 - in trunk/src/target/OM-2007/openmoko-libs: .
      libmokojournal/src libmokojournal/tests ([EMAIL PROTECTED])
   7. r1851 -
      trunk/src/target/OM-2007/applications/openmoko-appmanager/src
      ([EMAIL PROTECTED])
--- Begin Message ---
Author: rob
Date: 2007-04-26 16:15:45 +0200 (Thu, 26 Apr 2007)
New Revision: 1845

Modified:
   trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c
Log:
Switch to using the MokoScrolledPane rather than MokoDetailsWindow for the
details pane.


Modified: trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c 
2007-04-26 12:31:50 UTC (rev 1844)
+++ trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c 
2007-04-26 14:15:45 UTC (rev 1845)
@@ -228,9 +228,9 @@
     g_object_set_property( G_OBJECT(data->textView), "cursor-visible", &value 
);
     gtk_text_view_set_wrap_mode( data->textView, GTK_WRAP_WORD_CHAR );
 
-    GtkWidget *scrollWindow = GTK_WIDGET(moko_details_window_new());
-    gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrollWindow), 
GTK_WIDGET (data->textView));
-    moko_paned_window_set_details_pane( MOKO_PANED_WINDOW(data->window), 
GTK_WIDGET(moko_details_window_put_in_box(MOKO_DETAILS_WINDOW(scrollWindow))) );
+    GtkWidget *scrollWindow = GTK_WIDGET(moko_scrolled_pane_new());
+    moko_scrolled_pane_pack_with_viewport (MOKO_SCROLLED_PANE(scrollWindow, 
GTK_WIDGET (data->textView)));
+    moko_paned_window_set_details_pane( MOKO_PANED_WINDOW(data->window), 
scrollWindow ) ;
 }
 
 /*




--- End Message ---
--- Begin Message ---
Author: rob
Date: 2007-04-26 16:18:59 +0200 (Thu, 26 Apr 2007)
New Revision: 1846

Modified:
   trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c
Log:
Add #include for moko-scrolled-pane.h.


Modified: trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c 
2007-04-26 14:15:45 UTC (rev 1845)
+++ trunk/src/target/OM-2007/applications/openmoko-rssreader/src/main.c 
2007-04-26 14:18:59 UTC (rev 1846)
@@ -31,7 +31,7 @@
 #include "callbacks.h"
 #include "rfcdate.h"
 
-#include <libmokoui/moko-details-window.h>
+#include <libmokoui/moko-scrolled-pane.h>
 
 #include <string.h>
 #include <assert.h>




--- End Message ---
--- Begin Message ---
Author: rob
Date: 2007-04-26 16:45:17 +0200 (Thu, 26 Apr 2007)
New Revision: 1847

Modified:
   trunk/src/target/OM-2007/applications/openmoko-messages/src/detail-area.c
   trunk/src/target/OM-2007/applications/openmoko-messages/src/detail-area.h
   trunk/src/target/OM-2007/applications/openmoko-messages/src/main.c
Log:
Port over to MokoScrolledPane from MokoDetailsWindow.


Modified: 
trunk/src/target/OM-2007/applications/openmoko-messages/src/detail-area.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-messages/src/detail-area.c   
2007-04-26 14:18:59 UTC (rev 1846)
+++ trunk/src/target/OM-2007/applications/openmoko-messages/src/detail-area.c   
2007-04-26 14:45:17 UTC (rev 1847)
@@ -21,7 +21,7 @@
 
 GtkWidget* detail_area_mode_read (DetailArea* self);
 
-G_DEFINE_TYPE (DetailArea, detail_area, MOKO_TYPE_DETAILS_WINDOW)
+G_DEFINE_TYPE (DetailArea, detail_area, MOKO_TYPE_SCROLLED_PANE)
 
 #define DETAIL_AREA_GET_PRIVATE(o)     (G_TYPE_INSTANCE_GET_PRIVATE ((o), 
TYPE_DETAIL_AREA, DetailAreaPrivate))
 
@@ -64,12 +64,12 @@
 static void
 detail_area_init (DetailArea *self)
 {
-  gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW(self), GTK_POLICY_NEVER, 
GTK_POLICY_NEVER );
-
   self->notebook = GTK_NOTEBOOK( gtk_notebook_new() );
   gtk_notebook_append_page (self->notebook,detail_area_mode_read(self),NULL);
   gtk_notebook_set_show_tabs (self->notebook,FALSE);
   gtk_notebook_set_show_border (self->notebook,FALSE);
+
+  moko_scrolled_pane_pack (MOKO_SCROLLED_PANE (self), self->notebook);
 }
 
 GtkWidget* detail_area_new (void)

Modified: 
trunk/src/target/OM-2007/applications/openmoko-messages/src/detail-area.h
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-messages/src/detail-area.h   
2007-04-26 14:18:59 UTC (rev 1846)
+++ trunk/src/target/OM-2007/applications/openmoko-messages/src/detail-area.h   
2007-04-26 14:45:17 UTC (rev 1847)
@@ -21,7 +21,7 @@
 
 #include <gtk/gtk.h>
 #include <glib-object.h>
-#include <libmokoui/moko-details-window.h>
+#include <libmokoui/moko-scrolled-pane.h>
 #include <libmokoui/moko-pixmap-button.h>
 #include <libmokoui/moko-tool-box.h>
 #include <libmokoui/moko-fixed.h>
@@ -57,7 +57,7 @@
 
 typedef struct _DetailArea
   {
-    MokoDetailsWindow parent;
+    MokoScrolledPane parent;
     GtkNotebook* notebook;
     GtkVBox* detailbox;
     GtkHBox* toolbox;
@@ -69,7 +69,7 @@
 
 typedef struct _DetailAreaClass
   {
-    MokoDetailsWindowClass parent_class;
+    MokoScrolledPaneClass parent_class;
   }
 DetailAreaClass;
 

Modified: trunk/src/target/OM-2007/applications/openmoko-messages/src/main.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-messages/src/main.c  
2007-04-26 14:18:59 UTC (rev 1846)
+++ trunk/src/target/OM-2007/applications/openmoko-messages/src/main.c  
2007-04-26 14:45:17 UTC (rev 1847)
@@ -403,10 +403,10 @@
 void populate_detail_area( MessengerData* d )
 {
   d->details = detail_area_new();
+
   gtk_widget_show (d->details);
-  gtk_scrolled_window_add_with_viewport( GTK_SCROLLED_WINDOW(d->details), 
detail_area_get_notebook(DETAIL_AREA(d->details)));
   moko_paned_window_set_details_pane( MOKO_PANED_WINDOW(d->window), 
-          
GTK_WIDGET(moko_details_window_put_in_box(MOKO_DETAILS_WINDOW(d->details))));
+          GTK_WIDGET(d->details));
 }
 
 void main_quit(GtkMenuItem* item, MessengerData* d)




--- End Message ---
--- Begin Message ---
Author: rob
Date: 2007-04-26 17:25:20 +0200 (Thu, 26 Apr 2007)
New Revision: 1848

Modified:
   trunk/src/target/OM-2007/applications/openmoko-appmanager/src/detail-area.c
Log:
Swich over to MokoScrolledPane.


Modified: 
trunk/src/target/OM-2007/applications/openmoko-appmanager/src/detail-area.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-appmanager/src/detail-area.c 
2007-04-26 14:45:17 UTC (rev 1847)
+++ trunk/src/target/OM-2007/applications/openmoko-appmanager/src/detail-area.c 
2007-04-26 15:25:20 UTC (rev 1848)
@@ -17,7 +17,7 @@
  *
  *  @author Chaowei Song ([EMAIL PROTECTED])
  */
-#include <libmokoui/moko-details-window.h>
+#include <libmokoui/moko-scrolled-pane.h>
 #include <string.h>
 
 #include "detail-area.h"
@@ -34,10 +34,8 @@
 {
   GtkWidget    *text;
   GtkWidget    *detail;
-  GtkWidget    *box;
 
-  detail = moko_details_window_new ();
-  box = moko_details_window_put_in_box (MOKO_DETAILS_WINDOW (detail));
+  detail = moko_scrolled_pane_new ();
 
   text = gtk_text_view_new ();
   gtk_widget_show (text);
@@ -45,7 +43,7 @@
   gtk_text_view_set_accepts_tab (GTK_TEXT_VIEW (text), FALSE);
   gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (text), GTK_WRAP_WORD);
 
-  gtk_container_add (GTK_CONTAINER (detail), text);
+  moko_scrolled_pane_pack (MOKO_SCROLLED_PANE (detail), text);
   application_manager_data_set_tvdetail (appdata, text);
 
   return GTK_WIDGET (box);




--- End Message ---
--- Begin Message ---
Author: rob
Date: 2007-04-26 18:09:48 +0200 (Thu, 26 Apr 2007)
New Revision: 1849

Added:
   trunk/oe/packages/openmoko-pim/openmoko-tasks_svn.bb
Log:
Add Tasks.


Added: trunk/oe/packages/openmoko-pim/openmoko-tasks_svn.bb
===================================================================
--- trunk/oe/packages/openmoko-pim/openmoko-tasks_svn.bb        2007-04-26 
15:25:20 UTC (rev 1848)
+++ trunk/oe/packages/openmoko-pim/openmoko-tasks_svn.bb        2007-04-26 
16:09:48 UTC (rev 1849)
@@ -0,0 +1,16 @@
+DESCRIPTION = "The OpenMoko Tasks Application"
+SECTION = "openmoko/pim"
+LICENSE = "GPL"
+DEPENDS = "glib-2.0 gtk+ libglade eds-dbus openmoko-libs"
+RDEPENDS = "libedata-cal"
+PV = "0.1+svn${SRCDATE}"
+PR = "r8"
+
+inherit gnome autotools pkgconfig gtk-icon-cache
+
+SRC_URI = "svn://svn.o-hand.com/repos/tasks/;module=trunk;proto=http
+
+S = "${WORKDIR}/openmoko"
+
+EXTRA_OECONF = "--enable-omoko --disable-gtk"
+




--- End Message ---
--- Begin Message ---
Author: dodji
Date: 2007-04-26 18:46:05 +0200 (Thu, 26 Apr 2007)
New Revision: 1850

Modified:
   trunk/src/target/OM-2007/openmoko-libs/ChangeLog
   trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c
   trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.h
   trunk/src/target/OM-2007/openmoko-libs/libmokojournal/tests/test-create.c
Log:
Added "dialed-number" and "was-missed" properties

        * src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c,h:
          added MokoJournalVoiceInfo::dialed_number
          and MokoJournalVoiceInfo::was_missed properties. These a serialized
          and deserialized.
          Started to add MokoJournalEntry::wifi_ap_mac and
          MokoJournalEntry::bluetooth_ap_mac entries. not finished
        * src/target/OM-2007/openmoko-libs/libmokojournal/tests/test-create.c:
          updated this to test dialed number an "was-missed" property.


Modified: trunk/src/target/OM-2007/openmoko-libs/ChangeLog
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/ChangeLog    2007-04-26 16:09:48 UTC 
(rev 1849)
+++ trunk/src/target/OM-2007/openmoko-libs/ChangeLog    2007-04-26 16:46:05 UTC 
(rev 1850)
@@ -1,5 +1,16 @@
 2007-04-26 Dodji Seketeli <[EMAIL PROTECTED]>
 
+       * src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c,h:
+         added MokoJournalVoiceInfo::dialed_number
+         and MokoJournalVoiceInfo::was_missed properties. These a serialized
+         and deserialized.
+         Started to add MokoJournalEntry::wifi_ap_mac and
+         MokoJournalEntry::bluetooth_ap_mac entries. not finished
+       * src/target/OM-2007/openmoko-libs/libmokojournal/tests/test-create.c:
+         updated this to test dialed number an "was-missed" property.
+
+2007-04-26 Dodji Seketeli <[EMAIL PROTECTED]>
+
        * oe/conf/distro/include/sane-srcdates.inc: this needs and update of 
the version
          of edsdbus to svn 20070426 because we pushed a couple of fixes and 
enhancement in
          there. These fixes/enhancements are mandatory for this patch to work.

Modified: 
trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c    
2007-04-26 16:09:48 UTC (rev 1849)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c    
2007-04-26 16:46:05 UTC (rev 1850)
@@ -27,6 +27,8 @@
 #include "moko-journal.h"
 #include "moko-time-priv.h"
 
+#define WIFI_AP_MAC_ADDR_LEN 48
+
 struct _MokoJournal
 {
   ECal *ecal ;
@@ -37,7 +39,8 @@
 
 struct _MokoJournalVoiceInfo
 {
-  int nothing ;
+  gchar *dialed_number ;
+  gboolean was_missed ;
 };
 
 struct _MokoJournalFaxInfo
@@ -73,6 +76,8 @@
   float start_latitude ;
   gchar *source ;
   MokoGSMLocation gsm_loc ;
+  guchar *wifi_ap_mac ;
+  guchar *bluetooth_ap_mac ;
   union
   {
     MokoJournalEmailInfo *email_info ;
@@ -283,6 +288,15 @@
 moko_journal_voice_info_free (MokoJournalVoiceInfo *a_info)
 {
   g_return_if_fail (a_info) ;
+
+  if (a_info)
+  {
+    if (a_info->dialed_number)
+    {
+      g_free (a_info->dialed_number) ;
+      a_info->dialed_number = NULL ;
+    }
+  }
   g_free (a_info) ;
 }
 
@@ -351,6 +365,16 @@
     g_free (a_entry->source) ;
     a_entry->source = NULL ;
   }
+  if (a_entry->wifi_ap_mac)
+  {
+    g_free (a_entry->wifi_ap_mac) ;
+    a_entry->wifi_ap_mac = NULL ;
+  }
+  if (a_entry->bluetooth_ap_mac)
+  {
+    g_free (a_entry->bluetooth_ap_mac) ;
+    a_entry->bluetooth_ap_mac = NULL;
+  }
 
   switch (a_entry->type)
   {
@@ -506,6 +530,36 @@
     case EMAIL_JOURNAL_ENTRY:
       break ;
     case VOICE_JOURNAL_ENTRY:
+      {
+        MokoJournalVoiceInfo *info = NULL ;
+        gchar *number="NULL" ;
+        gchar *missed=NULL ;
+
+        if (!moko_journal_entry_get_voice_info (a_entry, &info))
+          break ;
+        if (!info)
+          break ;
+
+        /*
+         * serialize dialed number
+         */
+        if (moko_journal_voice_info_get_dialed_number (info))
+          number = (gchar*)moko_journal_voice_info_get_dialed_number (info) ;
+        prop = icalproperty_new_x (number) ;
+        icalproperty_set_x_name (prop, "X-OPENMOKO-VOICE-DIALED-NUMBER") ;
+        icalcomponent_add_property (comp, prop) ;
+
+        /*
+         * serialize the "was-missed" property
+         */
+        if (moko_journal_voice_info_get_was_missed (info))
+          missed = "YES" ;
+        else
+          missed = "NO" ;
+        prop = icalproperty_new_x (missed) ;
+        icalproperty_set_x_name (prop, "X-OPENMOKO-VOICE-CALL-WAS-MISSED") ;
+        icalcomponent_add_property (comp, prop) ;
+      }
       break ;
     case FAX_JOURNAL_ENTRY:
       break ;
@@ -653,6 +707,40 @@
   {
     case VOICE_JOURNAL_ENTRY:
       {
+        MokoJournalVoiceInfo *info = NULL ;
+        prop = NULL ;
+        prop_value = NULL ;
+
+        moko_journal_entry_get_voice_info (entry, &info) ;
+        g_return_val_if_fail (info, FALSE) ;
+
+        /*
+         * deserialize dialed number
+         */
+        if (icalcomponent_find_property_as_string
+                                          (a_comp,
+                                           "X-OPENMOKO-VOICE-DIALED-NUMBER",
+                                           &prop_value))
+        {
+          if (prop_value)
+          {
+            moko_journal_voice_info_set_dialed_number (info, prop_value) ;
+          }
+        }
+        prop_value = NULL ;
+        if (icalcomponent_find_property_as_string
+                                        (a_comp,
+                                         "X-OPENMOKO-VOICE-CALL-WAS-MISSED",
+                                         &prop_value))
+        {
+          if (prop_value)
+          {
+            gboolean was_missed = FALSE ;
+            if (!strcmp ("YES", prop_value))
+              was_missed = TRUE ;
+            moko_journal_voice_info_set_was_missed (info, was_missed) ;
+          }
+        }
       }
       break ;
     case FAX_JOURNAL_ENTRY:
@@ -1634,11 +1722,63 @@
   g_return_val_if_fail (a_info, FALSE) ;
   g_return_val_if_fail (a_info, FALSE) ;
 
-  memset (a_location, &a_info->gsm_loc, sizeof (MokoGSMLocation)) ;
+  memcpy (a_location, &a_info->gsm_loc, sizeof (MokoGSMLocation)) ;
   return TRUE ;
 }
 
 /**
+ * moko_journal_entry_set_wifi_ap_mac_address:
+ * @entry: the current instance of journal entry
+ *
+ * the mac address of the wifi access point.
+ * It is must be a 48 bits long string of bytes.
+ *
+ * Returns: TRUE in case of success, FALSE otherwise.
+ */
+gboolean
+moko_journal_entry_set_wifi_ap_mac_address (MokoJournalEntry *a_entry,
+                                            const guchar *a_address)
+{
+  g_return_val_if_fail (a_entry, FALSE) ;
+
+  if (!a_address)
+  {
+    if (a_entry->wifi_ap_mac)
+    {
+      g_free (a_entry->wifi_ap_mac) ;
+      a_entry->wifi_ap_mac = NULL ;
+    }
+    return TRUE ;
+  }
+
+  if (!a_entry->wifi_ap_mac)
+  {
+    a_entry->wifi_ap_mac = g_new0 (guchar, WIFI_AP_MAC_ADDR_LEN) ;
+  }
+  g_return_val_if_fail (a_entry->wifi_ap_mac, FALSE) ;
+  memcpy (a_entry->wifi_ap_mac, a_address, WIFI_AP_MAC_ADDR_LEN) ;
+
+  return TRUE ;
+}
+
+/**
+ * moko_journal_entry_get_wifi_ap_mac_address:
+ * @entry: the current instance of journal entry
+ *
+ * Returns: the mac address of the wifi access point.
+ * It is a 48 bits long string of bytes. The calling code must
+ * *NOT* delete this pointer. This function can also return NULL if
+ * no wifi access point mac address has been set in the entry.
+ */
+const guchar*
+moko_journal_entry_get_wifi_ap_mac_address (MokoJournalEntry *a_entry)
+{
+  g_return_val_if_fail (a_entry, NULL) ;
+
+  return a_entry->wifi_ap_mac ;
+}
+
+/**
  * moko_journal_entry_get_voice_info:
  * @a_entry: the current instance of journal entry
  * @a_info: the extra property set or NULL if info is not of type
@@ -1666,6 +1806,46 @@
   return TRUE ;
 }
 
+void
+moko_journal_voice_info_set_dialed_number (MokoJournalVoiceInfo *a_info,
+                                           gchar *a_number)
+{
+  g_return_if_fail (a_info) ;
+
+  if (a_info->dialed_number)
+  {
+    g_free (a_info->dialed_number) ;
+    a_info->dialed_number = NULL ;
+  }
+  if (a_number)
+    a_info->dialed_number = g_strdup (a_number) ;
+}
+
+const gchar*
+moko_journal_voice_info_get_dialed_number (MokoJournalVoiceInfo *a_info)
+{
+  g_return_val_if_fail (a_info, NULL) ;
+
+  return a_info->dialed_number ;
+}
+
+void
+moko_journal_voice_info_set_was_missed (MokoJournalVoiceInfo *a_info,
+                                        gboolean a_flag)
+{
+  g_return_if_fail (a_info) ;
+
+  a_info->was_missed = a_flag ;
+}
+
+gboolean
+moko_journal_voice_info_get_was_missed (MokoJournalVoiceInfo *a_info)
+{
+  g_return_val_if_fail (a_info, FALSE) ;
+
+  return a_info->was_missed ;
+}
+
 /**
  * moko_journal_entry_get_fax_info:
  * @entry: the current instance of journal entry

Modified: 
trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.h
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.h    
2007-04-26 16:09:48 UTC (rev 1849)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.h    
2007-04-26 16:46:05 UTC (rev 1850)
@@ -373,7 +373,7 @@
                                     const gchar *source) ;
 /**
  * moko_journal_entry_set_gsm_location:
- * @info: the current instance of voice call extra properties set
+ * @entry: the current instance of journal entry
  * @location: the gsm location
  *
  * Returns: TRUE upon completion, FALSE otherwise
@@ -383,12 +383,36 @@
 
 /**
  * moko_journal_entry_get_gsm_location:
- * @info: the current instance of voice call extra properties set
+ * @entry: the current instance of journal entry
  *
  * Returns TRUE upon completion, FALSE otherwise
  */
 gboolean moko_journal_entry_get_gsm_location (MokoJournalEntry *entry,
                                               MokoGSMLocation *location);
+
+/**
+ * moko_journal_entry_set_wifi_ap_mac_address:
+ * @entry: the current instance of journal entry
+ *
+ * the mac address of the wifi access point.
+ * It is must be a 48 bits long string of bytes.
+ *
+ * Returns: TRUE in case of success, FALSE otherwise.
+ */
+gboolean moko_journal_entry_set_wifi_ap_mac_address (MokoJournalEntry *entry,
+                                                     const guchar *address) ;
+
+/**
+ * moko_journal_entry_get_wifi_ap_mac_address:
+ * @entry: the current instance of journal entry
+ *
+ * Returns: the mac address of the wifi access point.
+ * It is a 48 bits long string of bytes. The calling code must
+ * *NOT* delete this pointer. This function can also return NULL if
+ * no wifi access point mac address has been set in the entry.
+ */
+const guchar *moko_journal_entry_get_wifi_ap_mac_address
+                                                  (MokoJournalEntry *entry) ;
 /*<voice call info>*/
 
 /**
@@ -405,6 +429,23 @@
 gboolean moko_journal_entry_get_voice_info (MokoJournalEntry *entry,
                                             MokoJournalVoiceInfo **info) ;
 
+
+/**
+ * moko_journal_voice_info_set_dialed_number:
+ * @info: the current
+ * @info: the extra property set attached to the voice call
+ */
+void moko_journal_voice_info_set_dialed_number (MokoJournalVoiceInfo *info,
+                                                gchar *number) ;
+
+const gchar* moko_journal_voice_info_get_dialed_number
+                                                (MokoJournalVoiceInfo *info) ;
+
+void moko_journal_voice_info_set_was_missed (MokoJournalVoiceInfo *info,
+                                             gboolean a_flag) ;
+
+gboolean moko_journal_voice_info_get_was_missed (MokoJournalVoiceInfo *info) ;
+
 /*</voice call info>*/
 
 /*<fax call info>*/

Modified: 
trunk/src/target/OM-2007/openmoko-libs/libmokojournal/tests/test-create.c
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokojournal/tests/test-create.c   
2007-04-26 16:09:48 UTC (rev 1849)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokojournal/tests/test-create.c   
2007-04-26 16:46:05 UTC (rev 1850)
@@ -28,6 +28,7 @@
     MokoJournal *journal=NULL ;
     MokoJournalEntry *entry=NULL ;
     MokoJournalEmailInfo *email_info=NULL ;
+    MokoJournalVoiceInfo *voice_info=NULL ;
     MokoLocation loc ;
     MokoGSMLocation gsm_loc ;
     int result = 1 ;
@@ -90,6 +91,48 @@
      */
     entry = NULL ;
 
+    /*create a journal entry of type 'voice call journal entry'*/
+    entry = moko_journal_entry_new (VOICE_JOURNAL_ENTRY) ;
+    if (!entry)
+    {
+        g_warning ("failed to create journal entry\n") ;
+        goto out ;
+    }
+
+    /*****************************
+     * <fill the entry with data>
+     *****************************/
+    moko_journal_entry_set_contact_uid (entry, "voicejournalentryuid") ;
+    moko_journal_entry_set_summary (entry, "this was a call") ;
+    moko_journal_entry_set_dtstart (entry, moko_time_new_today ()) ;
+    moko_journal_entry_set_direction (entry, DIRECTION_OUT) ;
+    loc.latitude = 43.386013;
+    loc.longitude =  15.082932;
+    moko_journal_entry_set_start_location (entry, &loc) ;
+    gsm_loc.lac = 67 ;
+    gsm_loc.cid = 200 ;
+    moko_journal_entry_set_gsm_location (entry, &gsm_loc) ;
+    if (!moko_journal_entry_get_voice_info (entry, &voice_info) || !voice_info)
+    {
+        g_warning ("failed to get voice extra info from journal entry\n") ;
+        goto out ;
+    }
+    /*****************************
+     * </fill the entry with data>
+     *****************************/
+
+    /*add the entry we created to the journal*/
+    if (!moko_journal_add_entry (journal, entry))
+    {
+        g_warning ("could not add entry to journal\n") ;
+        goto out ;
+    }
+    /*
+     * the entry is now owned by the journal, make sure we won't ever
+     * free it ourselves (by accident)
+     */
+    entry = NULL ;
+
     /*sync the journal to persistent storage*/
     if (!moko_journal_write_to_storage (journal))
     {




--- End Message ---
--- Begin Message ---
Author: rob
Date: 2007-04-26 19:18:47 +0200 (Thu, 26 Apr 2007)
New Revision: 1851

Modified:
   trunk/src/target/OM-2007/applications/openmoko-appmanager/src/detail-area.c
Log:
Fix problem with API migration.


Modified: 
trunk/src/target/OM-2007/applications/openmoko-appmanager/src/detail-area.c
===================================================================
--- trunk/src/target/OM-2007/applications/openmoko-appmanager/src/detail-area.c 
2007-04-26 16:46:05 UTC (rev 1850)
+++ trunk/src/target/OM-2007/applications/openmoko-appmanager/src/detail-area.c 
2007-04-26 17:18:47 UTC (rev 1851)
@@ -46,7 +46,7 @@
   moko_scrolled_pane_pack (MOKO_SCROLLED_PANE (detail), text);
   application_manager_data_set_tvdetail (appdata, text);
 
-  return GTK_WIDGET (box);
+  return GTK_WIDGET (detail);
 }
 
 /*




--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to