Details
MIMEDIR_PROFILE_ERROR
#define MIMEDIR_PROFILE_ERROR mimedir_profile_error_quark () |
Error domain for MIMEDirProfile operations. Errors in this domain will be
from the MIMEDirProfileError enumeration. See GError for information on
error domains.
enum MIMEDirProfileError
typedef enum {
MIMEDIR_PROFILE_ERROR_DUPLICATE_ATTRIBUTE,
MIMEDIR_PROFILE_ERROR_UNEXPECTED_END,
MIMEDIR_PROFILE_ERROR_ATTRIBUTE_MISSING
} MIMEDirProfileError; |
Error codes returned by MIMEDirProfile operations.
MIMEDIR_PROFILE_ERROR_DUPLICATE_ATTRIBUTE_STR
#define MIMEDIR_PROFILE_ERROR_DUPLICATE_ATTRIBUTE_STR _("attribute %s defined twice") |
Default string representation of the MIMEDIR_PROFILE_ERROR_DUPLICATE_ATTRIBUTE
error code.
MIMEDIR_PROFILE_ERROR_UNEXPECTED_END_STR
#define MIMEDIR_PROFILE_ERROR_UNEXPECTED_END_STR _("unexpected end of profile") |
Default string representation of the MIMEDIR_PROFILE_ERROR_UNEXPECTED_END
error code.
MIMEDIR_PROFILE_ERROR_ATTRIBUTE_MISSING_STR
#define MIMEDIR_PROFILE_ERROR_ATTRIBUTE_MISSING_STR _("required attribute %s is missing") |
Default string representation of the MIMEDIR_PROFILE_ERROR_MISSING_STR
error code.
struct MIMEDirProfile
struct MIMEDirProfile
{
GObject parent;
MIMEDirProfilePriv *priv;
}; |
The MIMEDirProfile struct contains private data only, and
should be accessed using the functions below.
mimedir_profile_new ()
Creates a new profile of a given type.
mimedir_profile_new_from_channel ()
Creates a new profile and reads it from the supplied I/O channel.
If an error occurs during the read, error will be set and NULL
will be returned.
mimedir_profile_read_from_channel ()
Clear the supplied profile and re-initialize it with data retrieved from
the supplied I/O channel. If an error occures during the read, error
will be set and FALSE will be returned. Otherwise TRUE is returned.
mimedir_profile_write_to_channel ()
Writes the profile to the supplied I/O channel. If an error occurs
during the write, error will be set and FALSE will be returned.
Otherwise TRUE is returned.
mimedir_profile_append_attribute ()
Adds an attribute to the supplied profile.
mimedir_profile_get_attribute ()
Tries to find the first occurence of a given attribute by name and
return the MIMEDirAttribute object. If no attribute with the given
name is found, NULL is returned.
mimedir_profile_get_attribute_list ()
Return the ordered list of all the profile's attributes.