/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-application-registry.h is in libgnomevfs2-dev 1:2.24.4-6.1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* gnome-vfs-application-registry.h
*
* Copyright (C) 1998 Miguel de Icaza
* Copyright (C) 2000 Eazel, Inc
*
* The Gnome Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* The Gnome Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with the Gnome Library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
* Authors: George Lebl
* Based on original mime-info database code by Miguel de Icaza
*/
/* DEPRECATED
*
* Do not use in new code.
*
* Use the api in gnome-vfs-mime-handlers.h instead.
*
*/
#ifndef GNOME_VFS_DISABLE_DEPRECATED
#ifndef GNOME_VFS_APPLICATION_REGISTRY_H
#define GNOME_VFS_APPLICATION_REGISTRY_H
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
G_BEGIN_DECLS
/**
* GNOME_VFS_APPLICATION_REGISTRY_COMMAND:
*
* Application registry key for fetching the command to execute
* an application.
**/
#define GNOME_VFS_APPLICATION_REGISTRY_COMMAND "command"
/**
* GNOME_VFS_APPLICATION_REGISTRY_NAME:
*
* Application registry key for fetching the name of an application.
**/
#define GNOME_VFS_APPLICATION_REGISTRY_NAME "name"
/**
* GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES:
*
* Application registry key for determining if an application
* can open multiple files in the same invocation.
**/
#define GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES "can_open_multiple_files"
/**
* GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL:
*
* Application registry key for determining if an application
* needs to run from within a terminal (for example, mpg123)
**/
#define GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL "requires_terminal"
/**
* GNOME_VFS_APPLICATION_REGISTRY_USES_GNOMEVFS
*
* Application registry key for determining if an application
* is using gnome-vfs and thus can open any URI supported by
* gnome-vfs
*/
#define GNOME_VFS_APPLICATION_REGISTRY_USES_GNOMEVFS "uses_gnomevfs"
/**
* GNOME_VFS_APPLICATION_REGISTRY_STARTUP_NOTIFY:
*
* Application registry key for determining if an application
* supports freedesktop.org-style startup notification.
**/
#define GNOME_VFS_APPLICATION_REGISTRY_STARTUP_NOTIFY "startup_notify"
/*
* Existance check
*/
gboolean gnome_vfs_application_registry_exists (const char *app_id);
/*
* Getting arbitrary keys
*/
GList *gnome_vfs_application_registry_get_keys (const char *app_id);
const char *gnome_vfs_application_registry_peek_value (const char *app_id,
const char *key);
gboolean gnome_vfs_application_registry_get_bool_value (const char *app_id,
const char *key,
gboolean *got_key);
/*
* Setting stuff
*/
void gnome_vfs_application_registry_remove_application(const char *app_id);
void gnome_vfs_application_registry_set_value (const char *app_id,
const char *key,
const char *value);
void gnome_vfs_application_registry_set_bool_value (const char *app_id,
const char *key,
gboolean value);
void gnome_vfs_application_registry_unset_key (const char *app_id,
const char *key);
/*
* Query functions
*/
GList *gnome_vfs_application_registry_get_applications(const char *mime_type);
GList *gnome_vfs_application_registry_get_mime_types (const char *app_id);
gboolean gnome_vfs_application_registry_supports_mime_type (const char *app_id,
const char *mime_type);
gboolean gnome_vfs_application_registry_supports_uri_scheme (const char *app_id,
const char *uri_scheme);
gboolean gnome_vfs_application_is_user_owned_application (const GnomeVFSMimeApplication *application);
/*
* Mime type functions
* Note that mime_type can be a specific (image/png) or generic (image/<star>) type
*/
void gnome_vfs_application_registry_clear_mime_types (const char *app_id);
void gnome_vfs_application_registry_add_mime_type (const char *app_id,
const char *mime_type);
void gnome_vfs_application_registry_remove_mime_type (const char *app_id,
const char *mime_type);
/*
* Commit function, should be called if ANY stuff changes have been made.
* Stuff is saved into the user directory.
*/
GnomeVFSResult gnome_vfs_application_registry_sync (void);
void gnome_vfs_application_registry_shutdown (void);
void gnome_vfs_application_registry_reload (void);
/*
* Integrating with gnome-vfs-mime-handlers
*/
GnomeVFSMimeApplication *
gnome_vfs_application_registry_get_mime_application(const char *app_id);
void gnome_vfs_application_registry_save_mime_application(const GnomeVFSMimeApplication *application);
G_END_DECLS
#endif /* GNOME_VFS_APPLICATION_REGISTRY_H */
#endif /* GNOME_VFS_DISABLE_DEPRECATED */
|