![]() | ![]() | ![]() | MIME Directory Library Reference Manual | ![]() |
---|
#include <mimedir/mimedir-vevent.h> struct MIMEDirVEvent; MIMEDirVEvent * mimedir_vevent_new (void
); MIMEDirVEvent * mimedir_vevent_new_from_profile (MIMEDirProfile *profile
,);
GError **errorgboolean mimedir_vevent_read_from_profile (MIMEDirVEvent *vevent
,MIMEDirProfile *profile
,);
GError **errorgboolean mimedir_vevent_write_to_channel (MIMEDirVEvent *vevent
,,
GIOChannel *channel); MIMEDirProfile * mimedir_vevent_write_to_profile (
GError **errorMIMEDirVEvent *vevent
);gchar * mimedir_vevent_write_to_string (MIMEDirVEvent *vevent
);
MIMEDirVEvent * mimedir_vevent_new (void
);
Creates a new (empty) vevent object.
Returns : | a new vevent object |
MIMEDirVEvent * mimedir_vevent_new_from_profile (MIMEDirProfile *profile
,);
GError **error
Create a new vEvent 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 vEvent object or |
gboolean mimedir_vevent_read_from_profile (MIMEDirVEvent *vevent
,MIMEDirProfile *profile
,);
GError **error
Clears the supplied vEvent object and re-initializes it with data read
from the supplied profile. If an error occurs during the read, error
will be set and
vevent : | a vEvent object |
profile : | a profile object |
error : | error storage location or |
Returns : | success indicator |
gboolean mimedir_vevent_write_to_channel (MIMEDirVEvent *vevent
,,
GIOChannel *channel);
GError **error
Saves the vEvent object to the supplied I/O channel. If an error occurs
during the write, error
will be set and
vevent : | a MIMEDirVEvent object |
channel : | I/O channel to save to |
error : | error storage location or |
Returns : | success indicator |
MIMEDirProfile * mimedir_vevent_write_to_profile (MIMEDirVEvent *vevent
);
Saves the vEvent object to a newly allocated profile object.
vevent : | a MIMEDirVEvent object |
Returns : | a new profile |
gchar * mimedir_vevent_write_to_string (MIMEDirVEvent *vevent
);
Saves the vevent object to a newly allocated memory buffer. You should
free the returned buffer with g_free()
vevent : | a MIMEDirVEvent object |
Returns : | a newly allocated memory buffer |
<<< MIMEDirVAlarm | MIMEDirVFreeBusy >>> |