Top |
#define | CD_TYPE_ICC_STORE |
struct | CdIccStoreClass |
enum | CdIccStoreSearchFlags |
enum | CdIccStoreSearchKind |
CdIccStore |
CdIccStore *
cd_icc_store_new (void
);
Creates a new CdIccStore object.
Since: 1.0.2
gboolean cd_icc_store_search_location (CdIccStore *store
,const gchar *location
,CdIccStoreSearchFlags search_flags
,GCancellable *cancellable
,GError **error
);
Adds a location to be watched for ICC profiles
store |
a CdIccStore instance. |
|
location |
a fully qualified path |
|
search_flags |
CdIccStoreSearchFlags, e.g. |
|
cancellable |
A GCancellable or |
|
error |
Since: 1.0.2
gboolean cd_icc_store_search_kind (CdIccStore *store
,CdIccStoreSearchKind search_kind
,CdIccStoreSearchFlags search_flags
,GCancellable *cancellable
,GError **error
);
Adds a location to be watched for ICC profiles
store |
a CdIccStore instance. |
|
search_kind |
||
search_flags |
a CdIccStoreSearchFlags, e.g. |
|
cancellable |
A GCancellable or |
|
error |
Since: 1.0.2
void cd_icc_store_set_load_flags (CdIccStore *store
,CdIccLoadFlags load_flags
);
Sets the load flags to use when loading newly added profiles
Since: 1.0.2
CdIccLoadFlags
cd_icc_store_get_load_flags (CdIccStore *store
);
Gets the load flags to use when loading newly added profiles
Since: 1.0.2
void cd_icc_store_set_cache (CdIccStore *store
,GResource *cache
);
Sets an optional cache to use when reading profiles. This is probably only useful to the colord daemon. This function can only be called once.
Since: 1.0.2
GPtrArray *
cd_icc_store_get_all (CdIccStore *store
);
Gets the list of CdIcc objects in the store
Since: 1.0.2
CdIcc * cd_icc_store_find_by_filename (CdIccStore *store
,const gchar *filename
);
Finds a ICC object in the store by filename.
Since: 1.0.2
CdIcc * cd_icc_store_find_by_checksum (CdIccStore *store
,const gchar *checksum
);
Finds a ICC object in the store by checksum.
Since: 1.0.2
struct CdIccStoreClass { GObjectClass parent_class; void (* added) (CdIcc *icc); void (* removed) (CdIcc *icc); };
“added”
signalvoid user_function (CdIccStore *profile, CdIcc *icc, gpointer user_data)
The ::added signal is emitted when an ICC profile has been added.
profile |
the CdIccStore instance that emitted the signal |
|
icc |
the CdIcc that was added |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 1.0.2
“removed”
signalvoid user_function (CdIccStore *profile, CdIcc *icc, gpointer user_data)
The ::removed signal is emitted when an ICC profile has been removed.
profile |
the CdIccStore instance that emitted the signal |
|
icc |
the CdIcc that was removed |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 1.0.2