| MIME Directory Library Reference Manual |
|---|
#include <mimedir/mimedir-vfreebusy.h> struct MIMEDirVFreeBusy; enum MIMEDirVFreeBusyType; MIMEDirVFreeBusy * mimedir_vfreebusy_new (void); MIMEDirVFreeBusy * mimedir_vfreebusy_new_from_profile (MIMEDirProfile *profile,);GError **errorgboolean mimedir_vfreebusy_read_from_profile (MIMEDirVFreeBusy *vfreebusy,MIMEDirProfile *profile,);GError **errorgboolean mimedir_vfreebusy_write_to_channel (MIMEDirVFreeBusy *vfreebusy,,GIOChannel *channel); MIMEDirProfile * mimedir_vfreebusy_write_to_profile (GError **errorMIMEDirVFreeBusy *vfreebusy);gchar * mimedir_vfreebusy_write_to_string (MIMEDirVFreeBusy *vfreebusy);
struct MIMEDirVFreeBusy {
MIMEDirVComponent parent;
MIMEDirVFreeBusyPriv *priv;
};typedef enum {
MIMEDIR_VFREEBUSY_FREE,
MIMEDIR_VFREEBUSY_BUSY,
MIMEDIR_VFREEBUSY_BUSY_UNAVAILABLE,
MIMEDIR_VFREEBUSY_BUSY_TENTATIVE
} MIMEDirVFreeBusyType;MIMEDirVFreeBusy * mimedir_vfreebusy_new (void);Creates a new (empty) vFreeBusy object.
| Returns : | a new vFreeBusy object |
MIMEDirVFreeBusy * mimedir_vfreebusy_new_from_profile (MIMEDirProfile *profile,);GError **error
Create a new vFreeBusy 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 vFreeBusy object or |
gboolean mimedir_vfreebusy_read_from_profile (MIMEDirVFreeBusy *vfreebusy,MIMEDirProfile *profile,);GError **error
Clears the supplied vFreeBusy object and re-initializes it with data read
from the supplied profile. If an error occurs during the read, error
will be set and
vfreebusy : | a vFreeBusy object |
profile : | a profile object |
error : | error storage location or |
| Returns : | success indicator |
gboolean mimedir_vfreebusy_write_to_channel (MIMEDirVFreeBusy *vfreebusy,,GIOChannel *channel);GError **error
Saves the vfreebusy object to the supplied I/O channel. If an error occurs
during the write, error will be set and
vfreebusy : | a vfreebusy |
channel : | I/O channel to save to |
error : | error storage location or |
| Returns : | success indicator |
MIMEDirProfile * mimedir_vfreebusy_write_to_profile (MIMEDirVFreeBusy *vfreebusy);Saves the vfreebusy object to a newly allocated profile object.
vfreebusy : | a vfreebusy |
| Returns : | a new profile |
gchar * mimedir_vfreebusy_write_to_string (MIMEDirVFreeBusy *vfreebusy);
Saves the vfreebusy object to a newly allocated memory buffer. You should
free the returned buffer with g_free()
vfreebusy : | a vfreebusy |
| Returns : | a newly allocated memory buffer |
| <<< MIMEDirVEvent | MIMEDirVJournal >>> |