r4299 - in trunk/src/target/OM-2007.2/applications/openmoko-messages2: . src
thomas at sita.openmoko.org
thomas at sita.openmoko.org
Wed Apr 2 17:17:26 CEST 2008
Author: thomas
Date: 2008-04-02 17:17:25 +0200 (Wed, 02 Apr 2008)
New Revision: 4299
Added:
trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/test-notes.c
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog
trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/Makefile.am
Log:
2008-04-02 Thomas Wood <thomas at openedhand.com>
* src/Makefile.am:
* src/test-notes.c:
Add a small test program to add notes to the system
Modified: trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog 2008-04-02 14:59:47 UTC (rev 4298)
+++ trunk/src/target/OM-2007.2/applications/openmoko-messages2/ChangeLog 2008-04-02 15:17:25 UTC (rev 4299)
@@ -1,5 +1,12 @@
2008-04-02 Thomas Wood <thomas at openedhand.com>
+ * src/Makefile.am:
+ * src/test-notes.c:
+
+ Add a small test program to add notes to the system
+
+2008-04-02 Thomas Wood <thomas at openedhand.com>
+
* src/sms-notes.c: Connect "Save Contact" button to moko-save-number.
2008-04-01 Thomas Wood <thomas at openedhand.com>
Modified: trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/Makefile.am
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/Makefile.am 2008-04-02 14:59:47 UTC (rev 4298)
+++ trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/Makefile.am 2008-04-02 15:17:25 UTC (rev 4299)
@@ -5,6 +5,11 @@
bin_PROGRAMS=openmoko-messages
+noinst_PROGRAMS=test-notes
+
+test_notes_SOURCES = \
+ test-notes.c
+
openmoko_messages_SOURCES = \
sms.h \
sms-main.c \
Added: 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-02 14:59:47 UTC (rev 4298)
+++ trunk/src/target/OM-2007.2/applications/openmoko-messages2/src/test-notes.c 2008-04-02 15:17:25 UTC (rev 4299)
@@ -0,0 +1,45 @@
+/*
+ * test-notes.c: small test application to add notes to the system
+ *
+ * Authored by OpenedHand Ltd <info at openedhand.com>
+ *
+ * Copyright (C) 2008 OpenMoko Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser Public License as published by
+ * the Free Software Foundation; version 2 of the license.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser Public License for more details.
+ *
+ */
+
+#include <libjana/jana-note.h>
+#include <libjana-ecal/jana-ecal.h>
+#include <glib/gprintf.h>
+
+int
+main (int argc, char **argv)
+{
+ JanaNote *note;
+ JanaStore *store;
+
+ g_type_init ();
+
+ store = jana_ecal_store_new (JANA_COMPONENT_NOTE);
+ jana_store_open (store);
+
+ note = jana_ecal_note_new ();
+ jana_note_set_author (note, "0123456789");
+ jana_note_set_body (note, "Test Message");
+
+ jana_store_add_component (store, JANA_COMPONENT (note));
+
+ g_printf ("Add a new note:\n\tAuthor: %s\n\t Body: %s\n",
+ jana_note_get_author (note),
+ jana_note_get_body (note));
+
+ return 0;
+}
More information about the commitlog
mailing list