![]() |
![]() |
![]() |
colord Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#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;
A helper GObject to use for accessing colord profiles, and to be notified when it is changed.
See also: CdClient
typedef enum { CD_PROFILE_ERROR_FAILED, CD_PROFILE_ERROR_LAST } CdProfileError;
Errors that can be thrown
GQuark cd_profile_error_quark (void
);
Returns : |
An error quark. |
Since 0.1.0
CdProfile * cd_profile_new (void
);
Creates a new CdProfile object.
Returns : |
a new CdProfile object. |
Since 0.1.0
gchar * cd_profile_to_string (CdProfile *profile
);
Converts the profile to a string description.
|
a CdProfile instance. |
Returns : |
text representation of CdProfile |
Since 0.1.0
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.
|
a CdProfile instance. |
|
The colord object path. |
|
a GCancellable or NULL
|
|
a GError, or NULL .
|
Returns : |
TRUE for success, else FALSE and error is used
|
Since 0.1.0
gboolean cd_profile_set_filename_sync (CdProfile *profile
,const gchar *value
,GCancellable *cancellable
,GError **error
);
Sets the profile model.
|
a CdProfile instance. |
|
The filename. |
|
a GCancellable or NULL
|
|
a GError, or NULL .
|
Returns : |
TRUE for success, else FALSE and error is used
|
Since 0.1.0
gboolean cd_profile_install_system_wide_sync (CdProfile *profile
,GCancellable *cancellable
,GError **error
);
Sets the profile system wide.
|
a CdProfile instance. |
|
a GCancellable or NULL
|
|
a GError, or NULL .
|
Returns : |
TRUE for success, else FALSE and error is used
|
Since 0.1.1
gboolean cd_profile_set_qualifier_sync (CdProfile *profile
,const gchar *value
,GCancellable *cancellable
,GError **error
);
Sets the profile model.
|
a CdProfile instance. |
|
The qualifier. |
|
a GCancellable or NULL
|
|
a GError, or NULL .
|
Returns : |
TRUE for success, else FALSE and error is used
|
Since 0.1.0
const gchar * cd_profile_get_id (CdProfile *profile
);
Gets the profile ID.
|
a CdProfile instance. |
Returns : |
A string, or NULL for invalid
|
Since 0.1.0
const gchar * cd_profile_get_filename (CdProfile *profile
);
Gets the profile filename.
|
a CdProfile instance. |
Returns : |
A string, or NULL for invalid
|
Since 0.1.0
const gchar * cd_profile_get_qualifier (CdProfile *profile
);
Gets the profile qualifier.
|
a CdProfile instance. |
Returns : |
A string, or NULL for invalid
|
Since 0.1.0
const gchar * cd_profile_get_title (CdProfile *profile
);
Gets the profile title.
|
a CdProfile instance. |
Returns : |
A string, or NULL for invalid
|
Since 0.1.0
const gchar * cd_profile_get_object_path (CdProfile *profile
);
Gets the object path for the profile.
|
a CdProfile instance. |
Returns : |
the object path, or NULL
|
Since 0.1.0
CdProfileKind cd_profile_get_kind (CdProfile *profile
);
Gets the profile kind.
|
a CdProfile instance. |
Returns : |
A CdProfileKind, e.g. CD_PROFILE_KIND_DISPLAY_DEVICE
|
Since 0.1.1
CdColorspace cd_profile_get_colorspace (CdProfile *profile
);
Gets the profile colorspace.
|
a CdProfile instance. |
Returns : |
A CdColorspace, e.g. CD_COLORSPACE_RGB
|
Since 0.1.2
gboolean cd_profile_get_has_vcgt (CdProfile *profile
);
Returns if the profile has a VCGT table.
|
a CdProfile instance. |
Returns : |
TRUE if VCGT is valid.
|
Since 0.1.2
gboolean cd_profile_get_is_system_wide (CdProfile *profile
);
Returns if the profile is installed system wide and available for all users.
|
a CdProfile instance. |
Returns : |
TRUE if system wide.
|
Since 0.1.2
GHashTable * cd_profile_get_metadata (CdProfile *profile
);
Returns the profile metadata.
|
a CdProfile instance. |
Returns : |
a GHashTable, free with g_hash_table_unref() .
|
Since 0.1.2