r4319 - in trunk/src/target/OM-2007.2/applications/openmoko-messages2: . src

thomas at sita.openmoko.org thomas at sita.openmoko.org
Mon Apr 7 18:00:50 CEST 2008


Author: thomas
Date: 2008-04-07 18:00:49 +0200 (Mon, 07 Apr 2008)
New Revision: 4319

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/test-notes.c
Log:
2008-04-07  Thomas Wood  <thomas at openedhand.com>

	* src/test-notes.c: (main): Add support for recipient and "Sent" flag


Modified: trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog	2008-04-07 09:55:13 UTC (rev 4318)
+++ trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog	2008-04-07 16:00:49 UTC (rev 4319)
@@ -1,3 +1,7 @@
+2008-04-07  Thomas Wood  <thomas at openedhand.com>
+
+	* src/test-notes.c: (main): Add support for recipient and "Sent" flag
+
 2008-04-03  Thomas Wood  <thomas at openedhand.com>
 
 	* src/moko-save-number.c: (create_new_contact_from_number),

Modified: trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/test-notes.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/test-notes.c	2008-04-07 09:55:13 UTC (rev 4318)
+++ trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/test-notes.c	2008-04-07 16:00:49 UTC (rev 4319)
@@ -35,13 +35,19 @@
 
   if (argc >= 3)
     body = argv[2];
-  
+
   store = jana_ecal_store_new (JANA_COMPONENT_NOTE);
   jana_store_open (store);
   
   note = jana_ecal_note_new ();
   jana_note_set_author (note, number);
   jana_note_set_body (note, body);
+
+  if (argc >= 4)
+  {
+    jana_utils_component_insert_category (JANA_COMPONENT (note), "Sent", -1);
+    jana_note_set_recipient (JANA_NOTE (note), argv[3]);
+  }
   
   jana_store_add_component (store, JANA_COMPONENT (note));
   





More information about the commitlog mailing list