![]() |
![]() |
![]() |
GNOME Color Manager Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
struct GcmProfileStore; struct GcmProfileStoreClass; enum GcmProfileSearchFlags; GcmProfileStore * gcm_profile_store_new (void
); GcmProfile * gcm_profile_store_get_by_filename (GcmProfileStore *profile_store
,const gchar *filename
); GcmProfile * gcm_profile_store_get_by_checksum (GcmProfileStore *profile_store
,const gchar *checksum
); GPtrArray * gcm_profile_store_get_array (GcmProfileStore *profile_store
); gboolean gcm_profile_store_search (GcmProfileStore *profile_store
,GcmProfileSearchFlags flags
); gboolean gcm_profile_store_search_path (GcmProfileStore *profile_store
,const gchar *path
); GcmProfileStorePrivate;
This object holds an array of GcmProfiles
, and watches both the directories
for changes.
struct GcmProfileStoreClass { GObjectClass parent_class; void (* added) (GcmProfile *profile); void (* removed) (GcmProfile *profile); void (* changed) (void); /* padding for future expansion */ void (*_gcm_reserved1) (void); void (*_gcm_reserved2) (void); void (*_gcm_reserved3) (void); void (*_gcm_reserved4) (void); void (*_gcm_reserved5) (void); };
typedef enum { GCM_PROFILE_STORE_SEARCH_ALL = 0, GCM_PROFILE_STORE_SEARCH_SYSTEM = 1, GCM_PROFILE_STORE_SEARCH_VOLUMES = 2, GCM_PROFILE_STORE_SEARCH_USER = 4, GCM_PROFILE_STORE_SEARCH_MACHINE = 8 } GcmProfileSearchFlags;
GcmProfileStore * gcm_profile_store_new (void
);
Returns : |
a new GcmProfileStore object. |
Since 2.91.1
GcmProfile * gcm_profile_store_get_by_filename (GcmProfileStore *profile_store
,const gchar *filename
);
Gets a profile.
|
a valid GcmProfileStore instance |
|
the profile filename |
Returns : |
a valid GcmProfile or NULL . Free with g_object_unref()
|
Since 2.91.1
GcmProfile * gcm_profile_store_get_by_checksum (GcmProfileStore *profile_store
,const gchar *checksum
);
Gets a profile.
|
a valid GcmProfileStore instance |
|
the profile checksum |
Returns : |
a valid GcmProfile or NULL . Free with g_object_unref()
|
Since 2.91.1
GPtrArray * gcm_profile_store_get_array (GcmProfileStore *profile_store
);
Gets the profile list.
|
a valid GcmProfileStore instance |
Returns : |
an array, free with g_ptr_array_unref()
|
Since 2.91.1
gboolean gcm_profile_store_search (GcmProfileStore *profile_store
,GcmProfileSearchFlags flags
);
Searches specified locations for ICC profiles.
|
a valid GcmProfileStore instance |
|
the GcmProfileSearchFlags locations to search |
Returns : |
TRUE if any profile were added |
Since 2.91.1
gboolean gcm_profile_store_search_path (GcmProfileStore *profile_store
,const gchar *path
);
Searches a specified location for ICC profiles.
|
a valid GcmProfileStore instance |
|
the filesystem path to search |
Returns : |
if any profile were added |
Since 2.91.1
typedef struct _GcmProfileStorePrivate GcmProfileStorePrivate;
Private GcmProfileStore data
"added"
signalvoid user_function (GcmProfileStore *arg0,
GObject *arg1,
gpointer user_data) : Run Last
|
user data set when the signal handler was connected. |
Since 2.91.1
"changed"
signalvoid user_function (GcmProfileStore *arg0,
gpointer user_data) : Run Last
|
user data set when the signal handler was connected. |
Since 2.91.1
"removed"
signalvoid user_function (GcmProfileStore *arg0,
GObject *arg1,
gpointer user_data) : Run Last
|
user data set when the signal handler was connected. |
Since 2.91.1