![]() | ![]() | ![]() | MIME Directory Library Reference Manual | ![]() |
---|
#include <mimedir/mimedir-vjournal.h> struct MIMEDirVJournal; MIMEDirVJournal * mimedir_vjournal_new (void
); MIMEDirVJournal * mimedir_vjournal_new_from_profile (MIMEDirProfile *profile
,);
GError **errorgboolean mimedir_vjournal_read_from_profile (MIMEDirVJournal *vjournal
,MIMEDirProfile *profile
,);
GError **errorgboolean mimedir_vjournal_write_to_channel (MIMEDirVJournal *vjournal
,,
GIOChannel *channel); MIMEDirProfile * mimedir_vjournal_write_to_profile (
GError **errorMIMEDirVJournal *vjournal
);gchar * mimedir_vjournal_write_to_string (MIMEDirVJournal *vjournal
);
struct MIMEDirVJournal { MIMEDirVComponent parent; MIMEDirVJournalPriv *priv; };
MIMEDirVJournal * mimedir_vjournal_new (void
);
Creates a new (empty) vJournal object.
Returns : | a new vJournal object |
MIMEDirVJournal * mimedir_vjournal_new_from_profile (MIMEDirProfile *profile
,);
GError **error
Create a new vJournal object and fills it with data retrieved from the
supplied profile object. If an error occurs during the read, error
will be set and
profile : | a MIMEDirProfile object |
error : | error storage location or |
Returns : | the new vJournal object or |
gboolean mimedir_vjournal_read_from_profile (MIMEDirVJournal *vjournal
,MIMEDirProfile *profile
,);
GError **error
Clears the supplied vJournal object and re-initializes it with data read
from the supplied profile. If an error occurs during the read, error
will be set and
vjournal : | a vJournal object |
profile : | a profile object |
error : | error storage location or |
Returns : | success indicator |
gboolean mimedir_vjournal_write_to_channel (MIMEDirVJournal *vjournal
,,
GIOChannel *channel);
GError **error
Saves the vjournal object to the supplied I/O channel. If an error occurs
during the write, error
will be set and
vjournal : | a vjournal |
channel : | I/O channel to save to |
error : | error storage location or |
Returns : | success indicator |
MIMEDirProfile * mimedir_vjournal_write_to_profile (MIMEDirVJournal *vjournal
);
Saves the vjournal object to a newly allocated profile object.
vjournal : | a vjournal |
Returns : | a new profile |
gchar * mimedir_vjournal_write_to_string (MIMEDirVJournal *vjournal
);
Saves the vjournal object to a newly allocated memory buffer. You should
free the returned buffer with g_free()
vjournal : | a vjournal |
Returns : | a newly allocated memory buffer |
<<< MIMEDirVFreeBusy | MIMEDirVTimeZone >>> |