Changeset 1620

Show
Ignore:
Timestamp:
04/02/07 14:53:07 (3 years ago)
Author:
dodji
Message:

Went forward with the mokojournal API mockup

  • openmoko-libs/libmokojournal/moko-journal.[c|h]: went forward with the API proposal
Location:
trunk/src/target/OM-2007/openmoko-libs
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007/openmoko-libs/ChangeLog

    r1568 r1620  
     12007-04-02 Dodji Seketeli 
     2 
     3        * openmoko-libs/libmokojournal/moko-journal.[c|h]: went forward with the 
     4          API proposal 
     5 
    162007-03-30 Dodji Seketeli 
    27 
  • trunk/src/target/OM-2007/openmoko-libs/libmokojournal/moko-journal.c

    r1552 r1620  
    2020 */ 
    2121#include "moko-journal.h" 
     22 
     23/** 
     24 * moko_j_email_info_new: 
     25 * 
     26 * allocate a MokoJEmailInfo object. 
     27 * 
     28 * Return value: the newly allocated email info 
     29 * Must be deallocated using moko_j_email_info_free() 
     30 */ 
     31MokoJEmailInfo *moko_j_email_info_new () ; 
     32 
     33/** 
     34 * moko_j_email_info_free: 
     35 * @info: the journal email info to deallocate 
     36 * 
     37 * Deallocates an instance of journal email info. 
     38 */ 
     39void moko_j_email_info_free (MokoJEmailInfo *info) ; 
  • trunk/src/target/OM-2007/openmoko-libs/libmokojournal/moko-journal.h

    r1568 r1620  
    3535typedef struct _MokoJournal MokoJournal ; 
    3636typedef struct _MokoJEntry MokoJEntry ; 
     37typedef struct _MokoJEmailInfo MokoJEmailInfo ; 
     38typedef struct _MokoJSMSInfo MokoJSMSInfo ; 
     39typedef struct _MokoJMMSInfo MokoJMMSInfo ; 
     40typedef struct _MokoJCallInfo MokoJCallInfo ; 
    3741 
    3842/** 
     
    170174 */ 
    171175void moko_j_entry_set_dtstart (MokoJEntry *entry, icaltimetype dtstart); 
     176 
     177/*<email info>*/ 
     178 
     179/** 
     180 * moko_j_entry_get_email_info: 
     181 * @entry: the current instance of journal entry 
     182 * @info: extra information attached to the email info, or NULL. 
     183 * Client code must *NOT* of deallocate the returned info. 
     184 * It is the duty of the MokoJEntry code to deallocate it when 
     185 * necessary 
     186 * 
     187 * Return value: TRUE if the call succeeded, FALSE otherwise. 
     188 */ 
     189gboolean moko_j_entry_get_email_info (MokoJEntry *entry, 
     190                                      MokoJEmailInfo **info) ; 
     191 
     192/** 
     193 * moko_j_email_info_get_was_sent: 
     194 * @info: the current instance of email extra info 
     195 * 
     196 * Return value: TRUE if the email was sent, FALSE if it was received. 
     197 */ 
     198gboolean moko_j_email_info_get_was_sent (MokoJEmailInfo *info) ; 
     199 
     200/*</email info>*/ 
    172201/*</journal entries management>*/ 
    173202