Top |
gchar * | colorspace | Read |
gchar * | connected | Read |
gint64 | created | Read |
gchar * | filename | Read |
gchar * | format | Read |
gchar * | has-vcgt | Read |
gchar * | id | Read |
gchar * | is-system-wide | Read |
gchar * | kind | Read |
gchar * | object-path | Read / Write / Construct |
guint | owner | Read |
gchar * | qualifier | Read |
guint | scope | Read |
gchar * | title | Read |
GStrv | warnings | Read |
#define | CD_PROFILE_ERROR |
#define | CD_PROFILE_TYPE_ERROR |
#define | CD_TYPE_PROFILE |
struct | CdProfileClass |
CdProfile |
A helper GObject to use for accessing colord profiles, and to be notified when it is changed.
See also: CdClient
CdProfile *
cd_profile_new_with_object_path (const gchar *object_path
);
Creates a new CdProfile object with a known object path.
Since: 0.1.8
void cd_profile_connect (CdProfile *profile
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Connects to the object and fills up initial properties.
profile |
a CdProfile instance. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_profile_connect_finish (CdProfile *profile
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_profile_set_property (CdProfile *profile
,const gchar *key
,const gchar *value
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Deletes a color device.
profile |
a CdProfile instance. |
|
key |
a key name |
|
value |
a key value |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_profile_set_property_finish (CdProfile *profile
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
void cd_profile_install_system_wide (CdProfile *profile
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Sets the profile system wide.
profile |
a CdProfile instance. |
|
cancellable |
a GCancellable, or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.8
gboolean cd_profile_install_system_wide_finish (CdProfile *profile
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.8
const gchar *
cd_profile_get_id (CdProfile *profile
);
Gets the profile ID.
Since: 0.1.0
const gchar *
cd_profile_get_filename (CdProfile *profile
);
Gets the profile filename.
Since: 0.1.0
const gchar *
cd_profile_get_qualifier (CdProfile *profile
);
Gets the profile qualifier.
Since: 0.1.0
const gchar *
cd_profile_get_format (CdProfile *profile
);
Gets the profile format.
Since: 0.1.4
const gchar *
cd_profile_get_title (CdProfile *profile
);
Gets the profile title.
Since: 0.1.0
const gchar *
cd_profile_get_object_path (CdProfile *profile
);
Gets the object path for the profile.
Since: 0.1.0
CdProfileKind
cd_profile_get_kind (CdProfile *profile
);
Gets the profile kind.
Since: 0.1.1
CdColorspace
cd_profile_get_colorspace (CdProfile *profile
);
Gets the profile colorspace.
Since: 0.1.2
CdObjectScope
cd_profile_get_scope (CdProfile *profile
);
Gets the profile scope.
Since: 0.1.10
guint
cd_profile_get_owner (CdProfile *profile
);
Gets the profile owner.
Since: 0.1.13
gchar **
cd_profile_get_warnings (CdProfile *profile
);
Gets the profile warnings as a string array.
Since: 0.1.25
gint64
cd_profile_get_created (CdProfile *profile
);
Gets the profile created date and time.
Since: 0.1.8
gint64
cd_profile_get_age (CdProfile *profile
);
Gets the profile age in seconds relative to the current time.
Since: 0.1.8
gboolean
cd_profile_get_has_vcgt (CdProfile *profile
);
Returns if the profile has a VCGT table.
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.
Since: 0.1.2
GHashTable *
cd_profile_get_metadata (CdProfile *profile
);
Returns the profile metadata.
Since: 0.1.2
const gchar * cd_profile_get_metadata_item (CdProfile *profile
,const gchar *key
);
Returns the profile metadata for a specific key.
Since: 0.1.5
void cd_profile_set_object_path (CdProfile *profile
,const gchar *object_path
);
Sets the object path of the profile.
Since: 0.1.8
gboolean
cd_profile_get_connected (CdProfile *profile
);
Gets if the profile has been connected.
Since: 0.1.9
gchar *
cd_profile_to_string (CdProfile *profile
);
Converts the profile to a string description.
Since: 0.1.0
gboolean cd_profile_equal (CdProfile *profile1
,CdProfile *profile2
);
Tests two profiles for equality.
Since: 0.1.8
gboolean
cd_profile_has_access (CdProfile *profile
);
Gets if the current user has access permissions to the profile.
Since: 0.1.13
CdIcc * cd_profile_load_icc (CdProfile *profile
,CdIccLoadFlags flags
,GCancellable *cancellable
,GError **error
);
Loads a local ICC object from the abstract profile.
profile |
a CdProfile instance. |
|
flags |
options for loading the profile |
|
cancellable |
A GCancellable, or |
|
error |
Since: 0.1.32
struct CdProfileClass { GObjectClass parent_class; void (*changed) (CdProfile *profile); };
“colorspace”
property“colorspace” gchar *
The profile colorspace.
Flags: Read
Default value: NULL
Since: 0.1.2
“connected”
property“connected” gchar *
The if the object path has been connected as is valid for use.
Flags: Read
Default value: NULL
Since: 0.1.9
“created”
property“created” gint64
When the profile was created.
Flags: Read
Allowed values: >= 0
Default value: 0
Since: 0.1.8
“filename”
property“filename” gchar *
The profile filename.
Flags: Read
Default value: NULL
Since: 0.1.0
“format”
property“format” gchar *
The profile format.
Flags: Read
Default value: NULL
Since: 0.1.4
“has-vcgt”
property“has-vcgt” gchar *
If the profile has a VCGT table.
Flags: Read
Default value: NULL
Since: 0.1.2
“is-system-wide”
property“is-system-wide” gchar *
If the profile is installed system wide for all users.
Flags: Read
Default value: NULL
Since: 0.1.2
“object-path”
property“object-path” gchar *
The object path of the remote object
Flags: Read / Write / Construct
Default value: NULL
Since: 0.1.8
“owner”
property“owner” guint
The profile owner, e.g. 500
.
Flags: Read
Default value: 0
Since: 0.1.13
“qualifier”
property“qualifier” gchar *
The profile qualifier.
Flags: Read
Default value: NULL
Since: 0.1.0
“scope”
property“scope” guint
The profile scope, e.g. CD_OBJECT_SCOPE_TEMP
.
Flags: Read
Default value: 0
Since: 0.1.10
“title”
property“title” gchar *
The profile title.
Flags: Read
Default value: NULL
Since: 0.1.0
“warnings”
property“warnings” GStrv
The profile warnings, e.g. "vcgt-non-monotonic".
Flags: Read
Since: 0.1.25
“changed”
signalvoid user_function (CdProfile *profile, gpointer user_data)
The ::changed signal is emitted when the profile data has changed.
profile |
the CdProfile instance that emitted the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.1.0