cd-profile

cd-profile — Client object for accessing information about colord profiles

Synopsis

#define             CD_PROFILE_ERROR
#define             CD_PROFILE_TYPE_ERROR
void                (*changed)                          (CdProfile *profile);
void                (*_cd_profile_reserved1)            (void);
void                (*_cd_profile_reserved2)            (void);
void                (*_cd_profile_reserved3)            (void);
void                (*_cd_profile_reserved4)            (void);
void                (*_cd_profile_reserved5)            (void);
void                (*_cd_profile_reserved6)            (void);
void                (*_cd_profile_reserved7)            (void);
void                (*_cd_profile_reserved8)            (void);
enum                CdProfileError;
GQuark              cd_profile_error_quark              (void);
CdProfile *         cd_profile_new                      (void);
gchar *             cd_profile_to_string                (CdProfile *profile);
gboolean            cd_profile_set_object_path_sync     (CdProfile *profile,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GError **error);
gboolean            cd_profile_set_filename_sync        (CdProfile *profile,
                                                         const gchar *value,
                                                         GCancellable *cancellable,
                                                         GError **error);
gboolean            cd_profile_install_system_wide_sync (CdProfile *profile,
                                                         GCancellable *cancellable,
                                                         GError **error);
gboolean            cd_profile_set_qualifier_sync       (CdProfile *profile,
                                                         const gchar *value,
                                                         GCancellable *cancellable,
                                                         GError **error);
const gchar *       cd_profile_get_id                   (CdProfile *profile);
const gchar *       cd_profile_get_filename             (CdProfile *profile);
const gchar *       cd_profile_get_qualifier            (CdProfile *profile);
const gchar *       cd_profile_get_title                (CdProfile *profile);
const gchar *       cd_profile_get_object_path          (CdProfile *profile);
CdProfileKind       cd_profile_get_kind                 (CdProfile *profile);
CdColorspace        cd_profile_get_colorspace           (CdProfile *profile);
gboolean            cd_profile_get_has_vcgt             (CdProfile *profile);
gboolean            cd_profile_get_is_system_wide       (CdProfile *profile);
GHashTable *        cd_profile_get_metadata             (CdProfile *profile);
                    CdProfilePrivate;

Description

A helper GObject to use for accessing colord profiles, and to be notified when it is changed.

See also: CdClient

Details

CD_PROFILE_ERROR

#define CD_PROFILE_ERROR (cd_profile_error_quark ())


CD_PROFILE_TYPE_ERROR

#define CD_PROFILE_TYPE_ERROR (cd_profile_error_get_type ())


changed ()

void                (*changed)                          (CdProfile *profile);

profile :


_cd_profile_reserved1 ()

void                (*_cd_profile_reserved1)            (void);


_cd_profile_reserved2 ()

void                (*_cd_profile_reserved2)            (void);


_cd_profile_reserved3 ()

void                (*_cd_profile_reserved3)            (void);


_cd_profile_reserved4 ()

void                (*_cd_profile_reserved4)            (void);


_cd_profile_reserved5 ()

void                (*_cd_profile_reserved5)            (void);


_cd_profile_reserved6 ()

void                (*_cd_profile_reserved6)            (void);


_cd_profile_reserved7 ()

void                (*_cd_profile_reserved7)            (void);


_cd_profile_reserved8 ()

void                (*_cd_profile_reserved8)            (void);


enum CdProfileError

typedef enum
{
	CD_PROFILE_ERROR_FAILED,
	CD_PROFILE_ERROR_LAST
} CdProfileError;

Errors that can be thrown

CD_PROFILE_ERROR_FAILED

the transaction failed for an unknown reason

CD_PROFILE_ERROR_LAST


cd_profile_error_quark ()

GQuark              cd_profile_error_quark              (void);

Returns :

An error quark.

Since 0.1.0


cd_profile_new ()

CdProfile *         cd_profile_new                      (void);

Creates a new CdProfile object.

Returns :

a new CdProfile object.

Since 0.1.0


cd_profile_to_string ()

gchar *             cd_profile_to_string                (CdProfile *profile);

Converts the profile to a string description.

profile :

a CdProfile instance.

Returns :

text representation of CdProfile

Since 0.1.0


cd_profile_set_object_path_sync ()

gboolean            cd_profile_set_object_path_sync     (CdProfile *profile,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GError **error);

Sets the object path of the object and fills up initial properties.

profile :

a CdProfile instance.

object_path :

The colord object path.

cancellable :

a GCancellable or NULL

error :

a GError, or NULL.

Returns :

TRUE for success, else FALSE and error is used

Since 0.1.0


cd_profile_set_filename_sync ()

gboolean            cd_profile_set_filename_sync        (CdProfile *profile,
                                                         const gchar *value,
                                                         GCancellable *cancellable,
                                                         GError **error);

Sets the profile model.

profile :

a CdProfile instance.

value :

The filename.

cancellable :

a GCancellable or NULL

error :

a GError, or NULL.

Returns :

TRUE for success, else FALSE and error is used

Since 0.1.0


cd_profile_install_system_wide_sync ()

gboolean            cd_profile_install_system_wide_sync (CdProfile *profile,
                                                         GCancellable *cancellable,
                                                         GError **error);

Sets the profile system wide.

profile :

a CdProfile instance.

cancellable :

a GCancellable or NULL

error :

a GError, or NULL.

Returns :

TRUE for success, else FALSE and error is used

Since 0.1.1


cd_profile_set_qualifier_sync ()

gboolean            cd_profile_set_qualifier_sync       (CdProfile *profile,
                                                         const gchar *value,
                                                         GCancellable *cancellable,
                                                         GError **error);

Sets the profile model.

profile :

a CdProfile instance.

value :

The qualifier.

cancellable :

a GCancellable or NULL

error :

a GError, or NULL.

Returns :

TRUE for success, else FALSE and error is used

Since 0.1.0


cd_profile_get_id ()

const gchar *       cd_profile_get_id                   (CdProfile *profile);

Gets the profile ID.

profile :

a CdProfile instance.

Returns :

A string, or NULL for invalid

Since 0.1.0


cd_profile_get_filename ()

const gchar *       cd_profile_get_filename             (CdProfile *profile);

Gets the profile filename.

profile :

a CdProfile instance.

Returns :

A string, or NULL for invalid

Since 0.1.0


cd_profile_get_qualifier ()

const gchar *       cd_profile_get_qualifier            (CdProfile *profile);

Gets the profile qualifier.

profile :

a CdProfile instance.

Returns :

A string, or NULL for invalid

Since 0.1.0


cd_profile_get_title ()

const gchar *       cd_profile_get_title                (CdProfile *profile);

Gets the profile title.

profile :

a CdProfile instance.

Returns :

A string, or NULL for invalid

Since 0.1.0


cd_profile_get_object_path ()

const gchar *       cd_profile_get_object_path          (CdProfile *profile);

Gets the object path for the profile.

profile :

a CdProfile instance.

Returns :

the object path, or NULL

Since 0.1.0


cd_profile_get_kind ()

CdProfileKind       cd_profile_get_kind                 (CdProfile *profile);

Gets the profile kind.

profile :

a CdProfile instance.

Returns :

A CdProfileKind, e.g. CD_PROFILE_KIND_DISPLAY_DEVICE

Since 0.1.1


cd_profile_get_colorspace ()

CdColorspace        cd_profile_get_colorspace           (CdProfile *profile);

Gets the profile colorspace.

profile :

a CdProfile instance.

Returns :

A CdColorspace, e.g. CD_COLORSPACE_RGB

Since 0.1.2


cd_profile_get_has_vcgt ()

gboolean            cd_profile_get_has_vcgt             (CdProfile *profile);

Returns if the profile has a VCGT table.

profile :

a CdProfile instance.

Returns :

TRUE if VCGT is valid.

Since 0.1.2


cd_profile_get_is_system_wide ()

gboolean            cd_profile_get_is_system_wide       (CdProfile *profile);

Returns if the profile is installed system wide and available for all users.

profile :

a CdProfile instance.

Returns :

TRUE if system wide.

Since 0.1.2


cd_profile_get_metadata ()

GHashTable *        cd_profile_get_metadata             (CdProfile *profile);

Returns the profile metadata.

profile :

a CdProfile instance.

Returns :

a GHashTable, free with g_hash_table_unref().

Since 0.1.2


CdProfilePrivate

typedef struct _CdProfilePrivate CdProfilePrivate;

Private PkProfile data