| Top | Description | Object Hierarchy | Signals |
struct CdIccStore; struct CdIccStoreClass; enum CdIccStoreSearchFlags; enum CdIccStoreSearchKind; CdIccStore * cd_icc_store_new (void); gboolean cd_icc_store_search_location (CdIccStore *store,const gchar *location,CdIccStoreSearchFlags search_flags,GCancellable *cancellable,GError **error); gboolean cd_icc_store_search_kind (CdIccStore *store,CdIccStoreSearchKind search_kind,CdIccStoreSearchFlags search_flags,GCancellable *cancellable,GError **error); void cd_icc_store_set_load_flags (CdIccStore *store,CdIccLoadFlags load_flags); CdIccLoadFlags cd_icc_store_get_load_flags (CdIccStore *store); void cd_icc_store_set_cache (CdIccStore *store,GResource *cache); GPtrArray * cd_icc_store_get_all (CdIccStore *store); CdIcc * cd_icc_store_find_by_filename (CdIccStore *store,const gchar *filename); CdIcc * cd_icc_store_find_by_checksum (CdIccStore *store,const gchar *checksum);
struct CdIccStoreClass {
GObjectClass parent_class;
void (* added) (CdIcc *icc);
void (* removed) (CdIcc *icc);
};
typedef enum {
CD_ICC_STORE_SEARCH_FLAGS_NONE = 0,
CD_ICC_STORE_SEARCH_FLAGS_CREATE_LOCATION = 1,
} CdIccStoreSearchFlags;
Flags used when adding scan locations.
| No flags set. | |
| Create the location if it does not exist |
Since 1.1.1
typedef enum {
CD_ICC_STORE_SEARCH_KIND_SYSTEM,
CD_ICC_STORE_SEARCH_KIND_MACHINE,
CD_ICC_STORE_SEARCH_KIND_USER,
} CdIccStoreSearchKind;
The kind of profiles locations to search.
| Per-system locations | |
| Per-machine locations | |
| Per-user locations |
Since 1.1.1
CdIccStore * cd_icc_store_new (void);
Creates a new CdIccStore object.
Returns : |
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
|
a CdIccStore instance. |
|
a fully qualified path |
|
CdIccStoreSearchFlags, e.g. CD_ICC_STORE_SEARCH_FLAGS_CREATE_LOCATION
|
|
A GCancellable or NULL
|
|
A GError or NULL
|
Returns : |
TRUE for success |
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
|
a CdIccStore instance. |
|
a CdIccStoreSearchKind, e.g. CD_ICC_STORE_SEARCH_KIND_USER
|
|
a CdIccStoreSearchFlags, e.g. CD_ICC_STORE_SEARCH_FLAGS_CREATE_LOCATION
|
|
A GCancellable or NULL
|
|
A GError or NULL
|
Returns : |
TRUE for success |
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
|
a CdIccStore instance. |
|
CdIccLoadFlags, e.g. CD_ICC_LOAD_FLAGS_TRANSLATIONS
|
Since 1.0.2
CdIccLoadFlags cd_icc_store_get_load_flags (CdIccStore *store);
Gets the load flags to use when loading newly added profiles
|
a CdIccStore instance. |
Returns : |
the load flags to use |
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.
|
a CdIccStore instance. |
|
a GResource |
Since 1.0.2
GPtrArray * cd_icc_store_get_all (CdIccStore *store);
Gets the list of CdIcc objects in the store
|
a CdIccStore instance. |
Returns : |
ICC profile objects. [transfer container][element-type CdIcc] |
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.
|
a CdIccStore instance. |
|
a fully qualified filename |
Returns : |
an ICC profile object or NULL. [transfer full]
|
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.
|
a CdIccStore instance. |
|
a checksum value |
Returns : |
an ICC profile object or NULL. [transfer full]
|
Since 1.0.2
"added" signalvoid user_function (CdIccStore *profile,
CdIcc *icc,
gpointer user_data) : Run Last
The ::added signal is emitted when an ICC profile has been added.
|
the CdIccStore instance that emitted the signal |
|
the CdIcc that was added |
|
user data set when the signal handler was connected. |
Since 1.0.2
"removed" signalvoid user_function (CdIccStore *profile,
CdIcc *icc,
gpointer user_data) : Run Last
The ::removed signal is emitted when an ICC profile has been removed.
|
the CdIccStore instance that emitted the signal |
|
the CdIcc that was removed |
|
user data set when the signal handler was connected. |
Since 1.0.2