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. r3082 - in
trunk/src/target/OM-2007.2/applications/openmoko-browser2: . src
([EMAIL PROTECTED])
2. r3083 - in
trunk/src/target/OM-2007.2/libraries/libmokojournal2: .
mokojournal ([EMAIL PROTECTED])
--- Begin Message ---
Author: zecke
Date: 2007-10-04 15:17:54 +0200 (Thu, 04 Oct 2007)
New Revision: 3082
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-browser2/ChangeLog
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/browser-data.c
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/browser-data.h
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/current-page.c
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/go-page.c
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/main.c
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/open-pages-page.c
Log:
2007-10-04 Holger 'Siddhartha' Freyther <[EMAIL PROTECTED]>
s/WebKitGtk/WebKit/g
s/webkit_gtk_/webkit_/g
s/WEBKIT_GTK_/WEBKIT_/g
* src/browser-data.c:
(browser_page_new):
* src/browser-data.h:
* src/current-page.c:
(current_back_clicked_closure):
(current_forward_clicked_closure):
(current_add_bookmark_clicked_closure):
(current_progress_changed):
(update_current_page_from_iter):
* src/go-page.c:
(go_clicked):
(create_new_page_clicked):
* src/main.c:
(main):
* src/open-pages-page.c:
(open_pages_page_cell_data_func):
Modified: trunk/src/target/OM-2007.2/applications/openmoko-browser2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-browser2/ChangeLog
2007-10-04 13:14:05 UTC (rev 3081)
+++ trunk/src/target/OM-2007.2/applications/openmoko-browser2/ChangeLog
2007-10-04 13:17:54 UTC (rev 3082)
@@ -1,3 +1,26 @@
+2007-10-04 Holger 'Siddhartha' Freyther <[EMAIL PROTECTED]>
+
+ s/WebKitGtk/WebKit/g
+ s/webkit_gtk_/webkit_/g
+ s/WEBKIT_GTK_/WEBKIT_/g
+
+ * src/browser-data.c:
+ (browser_page_new):
+ * src/browser-data.h:
+ * src/current-page.c:
+ (current_back_clicked_closure):
+ (current_forward_clicked_closure):
+ (current_add_bookmark_clicked_closure):
+ (current_progress_changed):
+ (update_current_page_from_iter):
+ * src/go-page.c:
+ (go_clicked):
+ (create_new_page_clicked):
+ * src/main.c:
+ (main):
+ * src/open-pages-page.c:
+ (open_pages_page_cell_data_func):
+
2007-09-30 Holger 'Siddhartha' Freyther <[EMAIL PROTECTED]>
Link to WebKitGtk as upstream changed the name from Gdk
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/browser-data.c
===================================================================
---
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/browser-data.c
2007-10-04 13:14:05 UTC (rev 3081)
+++
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/browser-data.c
2007-10-04 13:17:54 UTC (rev 3082)
@@ -50,7 +50,7 @@
}
BrowserPage*
-browser_page_new (WebKitGtkPage* webKitPage)
+browser_page_new (WebKitPage* webKitPage)
{
BrowserPage* page = BROWSER_PAGE (g_object_new (BROWSER_TYPE_PAGE, 0));
page->webKitPage = webKitPage;
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/browser-data.h
===================================================================
---
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/browser-data.h
2007-10-04 13:14:05 UTC (rev 3081)
+++
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/browser-data.h
2007-10-04 13:17:54 UTC (rev 3082)
@@ -46,7 +46,7 @@
struct _BrowserPage {
GObject parent;
- WebKitGtkPage* webKitPage;
+ WebKitPage* webKitPage;
};
struct _BrowserPageClass {
@@ -54,7 +54,7 @@
};
GType browser_page_get_type (void);
-BrowserPage* browser_page_new (WebKitGtkPage* page);
+BrowserPage* browser_page_new (WebKitPage* page);
/*
* The state of the Browser
@@ -74,8 +74,8 @@
* using HTML and JavaScript and binding the GObject(s) to
* JavaScript.
*/
- WebKitGtkPage* pagesOverviewPage;
- WebKitGtkPage* bookmarkPage;
+ WebKitPage* pagesOverviewPage;
+ WebKitPage* bookmarkPage;
/*
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/current-page.c
===================================================================
---
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/current-page.c
2007-10-04 13:14:05 UTC (rev 3081)
+++
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/current-page.c
2007-10-04 13:17:54 UTC (rev 3082)
@@ -34,21 +34,21 @@
/*
* From a list of BrowserPage's in BrowserData::currentPage show
* one as the current one. This means we will GtkContainer::{add,remove}
- * the WebKitGtkPage. To make that work, e.g. not destroying the WebKitGtkPage
+ * the WebKitPage. To make that work, e.g. not destroying the WebKitPage
* when we remove it from the container, we will keep a self added reference
- * on all WebKitGtkPages we have created.
+ * on all WebKitPages we have created.
*/
static void current_back_clicked_closure(GtkWidget* button, struct
BrowserData* data)
{
g_return_if_fail (data->currentPage);
- webkit_gtk_page_go_backward(data->currentPage->webKitPage);
+ webkit_page_go_backward(data->currentPage->webKitPage);
}
static void current_forward_clicked_closure(GtkWidget* button, struct
BrowserData* data)
{
g_return_if_fail (data->currentPage);
- webkit_gtk_page_go_forward(data->currentPage->webKitPage);
+ webkit_page_go_forward(data->currentPage->webKitPage);
}
static void current_stop_reload_clicked_closure(GtkWidget* button, struct
BrowserData* data)
@@ -58,17 +58,17 @@
static void current_add_bookmark_clicked_closure(GtkWidget* button, struct
BrowserData* data)
{
g_return_if_fail (data->currentPage);
- g_print ("Location to bookmark: %s\n", webkit_gtk_frame_get_title
(webkit_gtk_page_get_main_frame (data->currentPage->webKitPage)));
+ g_print ("Location to bookmark: %s\n", webkit_frame_get_title
(webkit_page_get_main_frame (data->currentPage->webKitPage)));
}
-static void current_progress_changed(WebKitGtkPage* page, int prog, struct
BrowserData* data)
+static void current_progress_changed(WebKitPage* page, int prog, struct
BrowserData* data)
{
g_assert (page == data->currentPage->webKitPage);
if (prog == 100) {
- gtk_widget_set_sensitive (GTK_WIDGET (data->currentBack),
webkit_gtk_page_can_go_backward (page));
- gtk_widget_set_sensitive (GTK_WIDGET (data->currentForward),
webkit_gtk_page_can_go_forward (page));
- gtk_widget_set_sensitive (GTK_WIDGET (data->currentAdd),
webkit_gtk_frame_get_title (webkit_gtk_page_get_main_frame (page)) != NULL);
+ gtk_widget_set_sensitive (GTK_WIDGET (data->currentBack),
webkit_page_can_go_backward (page));
+ gtk_widget_set_sensitive (GTK_WIDGET (data->currentForward),
webkit_page_can_go_forward (page));
+ gtk_widget_set_sensitive (GTK_WIDGET (data->currentAdd),
webkit_frame_get_title (webkit_page_get_main_frame (page)) != NULL);
}
}
@@ -176,8 +176,8 @@
* Update the GtkToolItems
*/
/* XXX ### FIXME TODO check if we should show stop/reload */
- gtk_widget_set_sensitive (GTK_WIDGET (data->currentBack),
webkit_gtk_page_can_go_backward (data->currentPage->webKitPage));
- gtk_widget_set_sensitive (GTK_WIDGET (data->currentForward),
webkit_gtk_page_can_go_forward (data->currentPage->webKitPage));
- gtk_widget_set_sensitive (GTK_WIDGET (data->currentAdd),
webkit_gtk_frame_get_title (webkit_gtk_page_get_main_frame
(data->currentPage->webKitPage)) != NULL);
+ gtk_widget_set_sensitive (GTK_WIDGET (data->currentBack),
webkit_page_can_go_backward (data->currentPage->webKitPage));
+ gtk_widget_set_sensitive (GTK_WIDGET (data->currentForward),
webkit_page_can_go_forward (data->currentPage->webKitPage));
+ gtk_widget_set_sensitive (GTK_WIDGET (data->currentAdd),
webkit_frame_get_title (webkit_page_get_main_frame
(data->currentPage->webKitPage)) != NULL);
gtk_widget_set_sensitive (GTK_WIDGET (data->currentClose), TRUE);
}
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/go-page.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/go-page.c
2007-10-04 13:14:05 UTC (rev 3081)
+++ trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/go-page.c
2007-10-04 13:17:54 UTC (rev 3082)
@@ -123,7 +123,7 @@
else
url = autocorrect_url (gtk_entry_get_text (data->goUrlEntry));
- webkit_gtk_page_open (data->currentPage->webKitPage, url);
+ webkit_page_open (data->currentPage->webKitPage, url);
gtk_notebook_set_current_page (GTK_NOTEBOOK (data->mainNotebook), 0);
}
@@ -138,10 +138,10 @@
else
url = autocorrect_url (gtk_entry_get_text (data->goUrlEntry));
- BrowserPage* page = browser_page_new (WEBKIT_GTK_PAGE (webkit_gtk_page_new
()));
+ BrowserPage* page = browser_page_new (WEBKIT_PAGE (webkit_page_new ()));
gtk_list_store_append (data->browserPages, &data->currentPageIter);
gtk_list_store_set (data->browserPages, &data->currentPageIter, 0, page,
-1);
- webkit_gtk_page_open (page->webKitPage, url);
+ webkit_page_open (page->webKitPage, url);
update_current_page_from_iter (data);
gtk_notebook_set_current_page (GTK_NOTEBOOK (data->mainNotebook), 0);
Modified: trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/main.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/main.c
2007-10-04 13:14:05 UTC (rev 3081)
+++ trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/main.c
2007-10-04 13:17:54 UTC (rev 3082)
@@ -55,7 +55,7 @@
gdk_threads_init ();
gdk_threads_enter ();
gtk_init (&argc, &argv);
- webkit_gtk_init ();
+ webkit_init ();
moko_stock_register ();
g_set_application_name (_("Browser"));
Modified:
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/open-pages-page.c
===================================================================
---
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/open-pages-page.c
2007-10-04 13:14:05 UTC (rev 3081)
+++
trunk/src/target/OM-2007.2/applications/openmoko-browser2/src/open-pages-page.c
2007-10-04 13:17:54 UTC (rev 3082)
@@ -41,7 +41,7 @@
g_assert (page);
/* XXX, FIXME, TODO check that we don't have any race conditions here. We
might get a new title inside WebKit while using that string? */
- g_object_set (G_OBJECT (ren), "text", webkit_gtk_frame_get_title
(webkit_gtk_page_get_main_frame (page->webKitPage)), NULL);
+ g_object_set (G_OBJECT (ren), "text", webkit_frame_get_title
(webkit_page_get_main_frame (page->webKitPage)), NULL);
g_object_unref (page);
}
--- End Message ---
--- Begin Message ---
Author: thomas
Date: 2007-10-04 15:50:59 +0200 (Thu, 04 Oct 2007)
New Revision: 3083
Modified:
trunk/src/target/OM-2007.2/libraries/libmokojournal2/ChangeLog
trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.c
trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.h
Log:
* mokojournal/moko-journal.c:
* mokojournal/moko-journal.h:
Move documentation in C file
Modified: trunk/src/target/OM-2007.2/libraries/libmokojournal2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokojournal2/ChangeLog
2007-10-04 13:17:54 UTC (rev 3082)
+++ trunk/src/target/OM-2007.2/libraries/libmokojournal2/ChangeLog
2007-10-04 13:50:59 UTC (rev 3083)
@@ -1,5 +1,12 @@
2007-10-04 Thomas Wood <[EMAIL PROTECTED]>
+ * mokojournal/moko-journal.c:
+ * mokojournal/moko-journal.h:
+
+ Move documentation in C file
+
+2007-10-04 Thomas Wood <[EMAIL PROTECTED]>
+
* Makefile.am:
* autogen.sh:
* configure.ac:
Modified:
trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.c
===================================================================
---
trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.c
2007-10-04 13:17:54 UTC (rev 3082)
+++
trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.c
2007-10-04 13:50:59 UTC (rev 3083)
@@ -417,6 +417,14 @@
return TRUE ;
}
+/**
+ * moko_journal_entry_get_sms_info:
+ * @entry: the current instance of journal entry
+ * @info: the resulting properties set
+ *
+ * Get the extra properties set associated to journal entries of type
+ * SMS_JOURNAL_ENTRY
+ */
static gboolean
moko_journal_entry_get_sms_info (MokoJournalEntry *a_entry,
MokoJournalSMSInfo **a_info)
@@ -434,6 +442,16 @@
return TRUE ;
}
+/**
+ * moko_journal_entry_get_email_info:
+ * @entry: the current instance of journal entry
+ * @info: extra information attached to the email info, or NULL.
+ * Client code must *NOT* of deallocate the returned info.
+ * It is the duty of the MokoJournalEntry code to deallocate it when
+ * necessary
+ *
+ * Return value: TRUE if the call succeeded, FALSE otherwise.
+ */
static gboolean
moko_journal_entry_get_email_info (MokoJournalEntry *a_entry,
MokoJournalEmailInfo **a_info)
@@ -1900,7 +1918,7 @@
* @a_entry: the current instance of voice call extra properties set
* @a_location: the gsm location
*
- * Returns TRUE upon completion, FALSE otherwise
+ * Returns: TRUE upon completion, FALSE otherwise
*/
gboolean
moko_journal_entry_get_gsm_location (MokoJournalEntry *a_info,
@@ -1965,6 +1983,11 @@
return a_entry->wifi_ap_mac ;
}
+/**
+ * moko_journal_voice_info_set_distant_number:
+ * @info: the current
+ * @info: the extra property set attached to the voice call
+ */
void
moko_journal_voice_info_set_distant_number (MokoJournalEntry *journal_entry,
const gchar *a_number)
@@ -2040,6 +2063,15 @@
return a_info->was_missed ;
}
+/**
+ * moko_journal_entry_has_voice_info:
+ * @entry: the current instance of journal entry
+ *
+ * Returns the specific property set associated to instance of MokoJournalEntry
+ * of type VOICE_JOURNAL_ENTRY.
+ *
+ * Returns: TRUE if the type is of VOICE_JOURNAL_ENTRY, FALSE otherwise.
+ */
gboolean
moko_journal_entry_has_voice_info (MokoJournalEntry *entry)
{
@@ -2051,6 +2083,16 @@
return FALSE;
}
+/**
+ * moko_journal_entry_has_fax_info:
+ * @entry: the current instance of journal entry
+ * @info: the fax info properties set
+ *
+ * get the extra properties set associated to journal entries of
+ * type FAX_JOURNAL_ENTRY
+ *
+ * Returns: TRUE i, FALSE otherwise.
+ */
gboolean
moko_journal_entry_has_fax_info (MokoJournalEntry *entry)
{
@@ -2060,6 +2102,16 @@
return moko_journal_entry_get_fax_info (entry, &info) && info;
}
+/**
+ * moko_journal_entry_has_data_info:
+ * @entry: the current instance of journal entry
+ * @info: the resulting properties set
+ *
+ * Get the extra properties set associated to journal entries of type
+ * DATA_JOURNAL_ENTRY
+ *
+ * Returns: TRUE in case of success, FALSE otherwise.
+ */
gboolean
moko_journal_entry_has_data_info (MokoJournalEntry *entry)
{
Modified:
trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.h
===================================================================
---
trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.h
2007-10-04 13:17:54 UTC (rev 3082)
+++
trunk/src/target/OM-2007.2/libraries/libmokojournal2/mokojournal/moko-journal.h
2007-10-04 13:50:59 UTC (rev 3083)
@@ -32,12 +32,14 @@
#define MOKO_JOURNAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),
MOKO_TYPE_JOURNAL, MokoJournalClass))
#define MOKO_IS_JOURNAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),
MOKO_TYPE_JOURNAL))
#define MOKO_IS_JOURNAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),
MOKO_TYPE_JOURNAL))
+#define MOKO_JOURNAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),
MOKO_TYPE_JOURNAL, MokoJournalClass))
#define MOKO_TYPE_LOCATION (moko_location_get_type())
#define MOKO_TYPE_GSM_LOCATION (moko_gsm_location_get_type())
#define MOKO_TYPE_JOURNAL_ENTRY (moko_journal_entry_get_type())
-/************************************************************
+/*
+ * ***********************************************************
* this API abstracts the process of adding
* journal entries into the default system
* journal. Journal entries contain information
@@ -63,8 +65,9 @@
} ;
/**
- * this represents the primary type of
- * a journal entry.
+ * MokoJournalEntryType:
+ *
+ * this represents the primary type of a journal entry.
*/
typedef enum {
UNDEF_ENTRY=0,
@@ -103,105 +106,18 @@
/*<journal management>*/
-/**
- * moko_journal_open_default:
- *
- * Opens the default journal.
- *
- * Return value: a pointer to the journal object
- */
MokoJournal* moko_journal_open_default () ;
-
-/**
- * moko_journal_close:
- * @journal: the journal to close
- *
- * Close the journal previously opened with moko_journal_open_default().
- * This function deallocates the memory of the Journal object.
- */
void moko_journal_close (MokoJournal *journal) ;
-
-/**
- * moko_journal_add_entry:
- * @journal: the current instance of journal
- * @entry: the new entry to add to the journal. Must be non NULL.
- * The journal is responsible
- * of deallocating the memory of the entry object.
- *
- * Add a journal entry to the journal
- *
- * Return value: TRUE if the entry got successfully added to the journal,
- * FALSE otherwise
- */
gboolean moko_journal_add_entry (MokoJournal *journal, MokoJournalEntry
*entry) ;
-
-/**
- * moko_journal_get_nb_entries:
- * @journal: the current instance of journal
- *
- * Return value: the number of entries in the journal or a negative value
- * in case of error.
- */
int moko_journal_get_nb_entries (MokoJournal *journal) ;
-
-/**
- * moko_journal_get_entry_at:
- * @journal: the current instance of journal
- * @index: the index to get the journal entry from
- * @entry: out parameter. the resulting journal entry
- *
- * Get the journal entry at a given index.
- *
- * Return value: TRUE in case of success, FALSE otherwise.
- */
gboolean moko_journal_get_entry_at (MokoJournal *journal,
guint index,
MokoJournalEntry **entry) ;
-
-/**
- * moko_journal_remove_entry_at:
- * @journal: the current instance of journal
- * @index: the index to remove the entry from
- *
- * Remove a journal entry from index #index
- *
- * Return value: TRUE in case of success, FALSE otherwise
- */
gboolean moko_journal_remove_entry_at (MokoJournal *journal,
guint index) ;
-
-/**
- * moko_journal_remove_entry_by_uid:
- * @journal: the current instance of journal
- * @uid: the uid of the journal entry to remove
- *
- * Remove the journal entry that has a given UID.
- *
- * Return value: TRUE in case of success, FALSE otherwise
- */
gboolean moko_journal_remove_entry_by_uid (MokoJournal *journal,
const gchar* uid) ;
-
-/**
- * moko_journal_write_to_storage:
- * @journal: the journal to save to storage
- *
- * Saves the journal to persistent storage (e.g disk) using the
- * appropriate backend. The backend currently used is evolution data server
- *
- * Return value: TRUE in case of success, FALSE otherwise
- */
gboolean moko_journal_write_to_storage (MokoJournal *journal) ;
-
-/**
- * moko_journal_load_from_storage:
- * @journal: the journal to load entries into
- *
- * Read the journal entries stored in the persistent storage (filesystem)
- * and load then into the current instance of MokoJournal.
- *
- * Return value: TRUE in case of success, FALSE otherwise
- */
gboolean moko_journal_load_from_storage (MokoJournal *journal) ;
/*<journal entries querying>*/
@@ -211,314 +127,68 @@
/*<journal entries management>*/
-
-/**
- * moko_journal_entry_new:
- * @type: the type of journal entry
- *
- * Create a Journal entry with no properties set.
- * Use the JEntry accessors to get/set properties.
- *
- * Return value: the newly created journal entry object
- */
MokoJournalEntry* moko_journal_entry_new (MokoJournalEntryType type) ;
-
-/**
- * moko_journal_entry_get_entry_type:
- * @entry: the current journal entry
- *
- * get the primary type of the journal entry
- *
- * Return value: the type of the journal entry
- */
MokoJournalEntryType moko_journal_entry_get_entry_type (MokoJournalEntry
*entry);
-
-/**
- * moko_journal_entry_set_type:
- * @entry: the current instance of journal entry
- * @type: the new type
- *
- * Set the type of the journal entry
- */
void moko_journal_entry_set_type (MokoJournalEntry *entry,
MokoJournalEntryType type) ;
-
-/**
- * moko_journal_entry_get_uid:
- * @entry: the current instance of journal entry
- *
- * Gets the UID of the current entry. This UID is non NULL if and
- * only if the entry has been persistet at least once.
- *
- * Return value: the UID in case the entry has been persisted at least once,
- * NULL otherwise. The client code must *NOT* free the returned string.
- */
const gchar* moko_journal_entry_get_uid (MokoJournalEntry *entry) ;
-
-/**
- * moko_journal_entry_get_contact_uid:
- * @entry: the current instance of journal entry
- *
- * get the contact uid
- *
- * Return value: the UID of the contact. It can be NULL. Client code
- * must not deallocate or attempt to alter it.
- */
const gchar* moko_journal_entry_get_contact_uid (MokoJournalEntry *entry) ;
-
-/**
- * moko_journal_entry_set_contact_uid:
- * @entry: the current instance of journal entry
- * @uid: the uid to set. This string is copied so the client code
- * must free it.
- *
- * Associate a new contact UID to the journal entry uid.
- * The UID is copied by this function so the caller is reponsible of
- * taking care of the uid string lifecycle.
- */
void moko_journal_entry_set_contact_uid (MokoJournalEntry *entry,
const gchar *uid) ;
-
-/**
- * moko_journal_entry_get_summary:
- * @entry: the current instance of journal entry
- *
- * get the summary of the journal entry
- *
- * Return value: the summary of the journal entry. It can be NULL.
- * Client code must not deallocate or alter it.
- */
const gchar* moko_journal_entry_get_summary (MokoJournalEntry *entry) ;
-
-/**
- * moko_journal_entry_set_summary:
- * @entry: the current instance of journal entry
- * @summary: the new summary of the journal entry. It is copied
- * so client code is reponsible of its lifecyle.
- *
- * Set the summary of the journal entry
- */
void moko_journal_entry_set_summary (MokoJournalEntry *entry,
const gchar* summary) ;
-
-/**
- * moko_journal_entry_get_start_location:
- * @entry: the current instance of journal entry
- * @location: the requested location
- *
- * Get the location at which the message got received or sent.
- *
- * Returns: TRUE upon sucessful completion, FALSE otherwise.
- */
gboolean moko_journal_entry_get_start_location (MokoJournalEntry *entry,
MokoLocation *location) ;
-
-/**
- * moko_journal_entry_set_location:
- * @entry: the current intance of journal entry
- * @location: the new location
- *
- * Set a new location to the journal entry
- * Location represents the longitude/latitude at which a call or message
- * occured.
- *
- * Returns: TRUE upon successful completion, FALSE otherwise.
- */
gboolean moko_journal_entry_set_start_location (MokoJournalEntry *entry,
MokoLocation *location) ;
-
-/**
- * moko_journal_entry_get_direction:
- * @entry: the current instance of journal entry
- * @direction: either DIRECTION_IN for a received message or DIRECTION_OUT
- * for a sent message.
- *
- * get the direction of the message
- *
- * Returns: TRUE in case of success, FALSE otherwise.
- */
gboolean moko_journal_entry_get_direction (MokoJournalEntry *entry,
MessageDirection *direction) ;
-
-/**
- * moko_journal_entry_set_direction:
- * @entry: the current instance of journal entry
- * @direction: the new message direction to set
- *
- * set message direction
- *
- */
void moko_journal_entry_set_direction (MokoJournalEntry *entry,
MessageDirection direction) ;
-
-/**
- * moko_journal_entry_get_dtdstart:
- * @entry: the current instance of journal entry
- *
- * get the starting date associated to the journal entry
- *
- * Returns: an icaltimetype representing the starting date expected.
- * It can be NULL. Client code must not deallocate it.
- */
const MokoTime* moko_journal_entry_get_dtstart (MokoJournalEntry *entry) ;
-
-/**
- * moko_journal_entry_set_dtstart:
- * @entry: the current instance of journal entry
- * @dtstart: the new starting date associated to the journal entry.
- */
void moko_journal_entry_set_dtstart (MokoJournalEntry *entry, MokoTime*
dtstart);
-
-/**
- * moko_journal_entry_get_source:
- * @entry: the current instance of journal entry
- *
- * Returns: the source property. It is an arbitrary string representing
- * the application that was the source of the entry (like mokodialer)
- */
const gchar* moko_journal_entry_get_source (MokoJournalEntry *entry) ;
-
-/**
- * moko_journal_entry_set_source:
- * @entry: the current instance of journal entry
- * @source: the new source to set
- *
- * Set the source property. It is an arbitrary string representing
- * the application that was the source of the entry (like mokodialer)
- */
void moko_journal_entry_set_source (MokoJournalEntry *entry,
const gchar *source) ;
-/**
- * moko_journal_entry_set_gsm_location:
- * @entry: the current instance of journal entry
- * @location: the gsm location
- *
- * Returns: TRUE upon completion, FALSE otherwise
- */
gboolean moko_journal_entry_info_set_gsm_location (MokoJournalEntry *entry,
MokoGSMLocation *location) ;
-
-/**
- * moko_journal_entry_get_gsm_location:
- * @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>*/
-/**
- * moko_journal_entry_has_voice_info:
- * @entry: the current instance of journal entry
- *
- * Returns the specific property set associated to instance of MokoJournalEntry
- * of type VOICE_JOURNAL_ENTRY.
- *
- * Returns: TRUE if the type is of VOICE_JOURNAL_ENTRY, FALSE otherwise.
- */
gboolean moko_journal_entry_has_voice_info (MokoJournalEntry *entry);
-
-
-/**
- * moko_journal_voice_info_set_distant_number:
- * @info: the current
- * @info: the extra property set attached to the voice call
- */
void moko_journal_voice_info_set_distant_number (MokoJournalEntry *info,
const gchar *number) ;
-
const gchar* moko_journal_voice_info_get_distant_number
(MokoJournalEntry *info) ;
-
void moko_journal_voice_info_set_local_number (MokoJournalEntry *info,
const gchar *number) ;
-
const gchar* moko_journal_voice_info_get_local_number
(MokoJournalEntry *info) ;
-
void moko_journal_voice_info_set_was_missed (MokoJournalEntry *info,
gboolean a_flag) ;
-
gboolean moko_journal_voice_info_get_was_missed (MokoJournalEntry *info) ;
/*</voice call info>*/
/*<fax call info>*/
-/**
- * moko_journal_entry_has_fax_info:
- * @entry: the current instance of journal entry
- * @info: the fax info properties set
- *
- * get the extra properties set associated to journal entries of
- * type FAX_JOURNAL_ENTRY
- *
- * Returns: TRUE i, FALSE otherwise.
- */
gboolean moko_journal_entry_has_fax_info (MokoJournalEntry *entry) ;
-/**
- * moko_journal_entry_has_data_info:
- * @entry: the current instance of journal entry
- * @info: the resulting properties set
- *
- * Get the extra properties set associated to journal entries of type
- * DATA_JOURNAL_ENTRY
- *
- * Returns: TRUE in case of success, FALSE otherwise.
- */
gboolean moko_journal_entry_has_data_info (MokoJournalEntry *entry) ;
/*</fax call info>*/
/*<sms info>*/
-/**
- * moko_journal_entry_get_sms_info:
- * @entry: the current instance of journal entry
- * @info: the resulting properties set
- *
- * Get the extra properties set associated to journal entries of type
- * SMS_JOURNAL_ENTRY
- */
gboolean moko_journal_entry_has_sms_info (MokoJournalEntry *entry) ;
/*</sms info>*/
/*<email info>*/
-/**
- * moko_journal_entry_get_email_info:
- * @entry: the current instance of journal entry
- * @info: extra information attached to the email info, or NULL.
- * Client code must *NOT* of deallocate the returned info.
- * It is the duty of the MokoJournalEntry code to deallocate it when
- * necessary
- *
- * Return value: TRUE if the call succeeded, FALSE otherwise.
- */
gboolean moko_journal_entry_has_email_info (MokoJournalEntry *entry) ;
/*</email info>*/
--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog