Top |
Deprecated Application Registry APIDeprecated Application Registry API — formerly used for managing applications. Replaced by GnomeVFS MIME Database API |
This API was formerly used to manage the applications known to GnomeVFS, providing editing capabilities. The system was overengineered and not very performant, so it has been replaced by a new API, described in the GnomeVFS MIME Database section.
gboolean
gnome_vfs_application_registry_exists (const char *app_id
);
gnome_vfs_application_registry_exists
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function will return TRUE if there is an entry for app_id
in
the registry, otherwise FALSE.
GList *
gnome_vfs_application_registry_get_keys
(const char *app_id
);
gnome_vfs_application_registry_get_keys
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function wil return a list of strings which is the list of
keys set for app_id
in the application registry.
const char * gnome_vfs_application_registry_peek_value (const char *app_id
,const char *key
);
gnome_vfs_application_registry_peek_value
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This will return the value associated with key
for app_id
in the
application registry. There is no need to free the return value.
gboolean gnome_vfs_application_registry_get_bool_value (const char *app_id
,const char *key
,gboolean *got_key
);
gnome_vfs_application_registry_get_bool_value
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This will look up a key in the structure pointed to by app_id and return the boolean value of that key. It will return false if there are no applications associated with the app_id.
void
gnome_vfs_application_registry_remove_application
(const char *app_id
);
gnome_vfs_application_registry_remove_application
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
Given the registry id this function will remove all applications that has been set by the user. You will need to call gnome_vfs_application_registry_sync to save the changes.
void gnome_vfs_application_registry_set_value (const char *app_id
,const char *key
,const char *value
);
gnome_vfs_application_registry_set_value
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function will set values pertaining to registry entry pointed to by app_id. You will need to call gnome_vfs_application_registry_sync to realize the changes.
void gnome_vfs_application_registry_set_bool_value (const char *app_id
,const char *key
,gboolean value
);
gnome_vfs_application_registry_set_bool_value
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function will modify those registry values that are of type boolean to a value specified by the user. You will need to call gnome_vfs_application_registry_sync to save your changes.
void gnome_vfs_application_registry_unset_key (const char *app_id
,const char *key
);
gnome_vfs_application_registry_unset_key
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function given the application and the target will wipe the current value that the key contains.
GList *
gnome_vfs_application_registry_get_applications
(const char *mime_type
);
gnome_vfs_application_registry_get_applications
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This will return all applications from the registry that are associated with the given mime type string, if NULL it returns all applications.
GList *
gnome_vfs_application_registry_get_mime_types
(const char *app_id
);
gnome_vfs_application_registry_get_mime_types
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function returns a list of strings that represent the mime types that can be handled by an application.
gboolean gnome_vfs_application_registry_supports_mime_type (const char *app_id
,const char *mime_type
);
gnome_vfs_application_registry_supports_mime_type
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
Use this function to see if there is an application associated with a given mime type. The function will return true or false.
gboolean gnome_vfs_application_registry_supports_uri_scheme (const char *app_id
,const char *uri_scheme
);
gnome_vfs_application_registry_supports_uri_scheme
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
Given the id of the application this function will determine if the uri scheme will given is supported.
gboolean
gnome_vfs_application_is_user_owned_application
(const GnomeVFSMimeApplication *application
);
gnome_vfs_application_is_user_owned_application
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function will determine if a mime application is user owned or not. By user ownered this means that the application is not a system application located in the prerequisite /usr area but rather in the user's area.
void
gnome_vfs_application_registry_clear_mime_types
(const char *app_id
);
gnome_vfs_application_registry_clear_mime_types
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function will remove the mime types associated with the application. Changes are not realized until the gnome_vfs_application_registry_sync function is called to save the changes to the file.
void gnome_vfs_application_registry_add_mime_type (const char *app_id
,const char *mime_type
);
gnome_vfs_application_registry_add_mime_type
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function will associate a mime type with an application given the application registry id and the mime type. Changes are not realized until the gnome_vfs_application_registry_sync function is called to save the changes to the file.
void gnome_vfs_application_registry_remove_mime_type (const char *app_id
,const char *mime_type
);
gnome_vfs_application_registry_remove_mime_type
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function will de-associate a mime type from an application registry. Given the application registry id and the mime type. Changes are not realized until the gnome_vfs_application_registry_sync function is called to save the changes to the file.
GnomeVFSResult
gnome_vfs_application_registry_sync (void
);
gnome_vfs_application_registry_sync
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This function will sync the registry. Typically you would use this function after a modification of the registry. When you modify the registry a dirty flag is set. Calling this function will save your modifications to disk and reset the flag.
If successful, will return GNOME_VFS_OK
void
gnome_vfs_application_registry_shutdown
(void
);
gnome_vfs_application_registry_shutdown
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
Synchronize gnome-vfs application registry data to disk, and free resources.
void
gnome_vfs_application_registry_reload (void
);
gnome_vfs_application_registry_reload
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
If this function is called for the first time it will initialize the registry. Subsequent calls to the function will clear out the current registry contents and load registry contents from the save file. Make certain that you've saved your registry before calling this function. It will destroy unsaved changes.
GnomeVFSMimeApplication *
gnome_vfs_application_registry_get_mime_application
(const char *app_id
);
gnome_vfs_application_registry_get_mime_application
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
Returns a structure that contains the application that handles the mime type associated by the application referred by app_id.
void
gnome_vfs_application_registry_save_mime_application
(const GnomeVFSMimeApplication *application
);
gnome_vfs_application_registry_save_mime_application
is deprecated and should not be used in newly-written code.
All application registry functions have been deprecated. Use the functions available in gnome-mime-handlers instead.
This will save to the registry the application that will be associated with a defined mime type. The defined mime type is located within the GnomeVFSMimeApplication structure. Changes are not realized until the gnome_vfs_application_registry_sync function is called.
#define GNOME_VFS_APPLICATION_REGISTRY_COMMAND "command"
GNOME_VFS_APPLICATION_REGISTRY_COMMAND
is deprecated and should not be used in newly-written code.
Application registry key for fetching the command to execute an application.
#define GNOME_VFS_APPLICATION_REGISTRY_NAME "name"
GNOME_VFS_APPLICATION_REGISTRY_NAME
is deprecated and should not be used in newly-written code.
Application registry key for fetching the name of an application.
#define GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES "can_open_multiple_files"
GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES
is deprecated and should not be used in newly-written code.
Application registry key for determining if an application can open multiple files in the same invocation.
#define GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL "requires_terminal"
GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL
is deprecated and should not be used in newly-written code.
Application registry key for determining if an application needs to run from within a terminal (for example, mpg123)