1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>Deprecated Application Registry API</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.3">
7
<link rel="home" href="index.html" title="GnomeVFS - Filesystem Abstraction library">
8
<link rel="up" href="mime-registry.html" title="MIME Registry">
9
<link rel="prev" href="gnome-vfs-2.0-gnome-vfs-mime-database-deprecated.html" title="gnome-vfs-mime-database-deprecated">
10
<link rel="next" href="modules.html" title="Filesystem Modules">
11
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="about.html" title="Introduction to GnomeVFS">
14
<link rel="chapter" href="data-types.html" title="Basic Data Types">
15
<link rel="chapter" href="gnome-vfs-basic-file-ops.html" title="File Operations">
16
<link rel="chapter" href="gnome-vfs-directory-ops.html" title="Directory-Specific Operations">
17
<link rel="chapter" href="gnome-vfs-file-and-dirs-ops.html" title="Advanced File/Directory Operations">
18
<link rel="chapter" href="gnome-vfs-file-async-ops.html" title="Asynchronous Operations">
19
<link rel="chapter" href="volumes.html" title="Volumes and Drives Handling">
20
<link rel="chapter" href="networking.html" title="Networking">
21
<link rel="chapter" href="mime-registry.html" title="MIME Registry">
22
<link rel="chapter" href="modules.html" title="Filesystem Modules">
24
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
27
<td><a accesskey="p" href="gnome-vfs-2.0-gnome-vfs-mime-database-deprecated.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
<td><a accesskey="u" href="mime-registry.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
<th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th>
31
<td><a accesskey="n" href="modules.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
33
<tr><td colspan="5" class="shortcuts">
34
<a href="#gnome-vfs-2.0-gnome-vfs-application-registry.synopsis" class="shortcut">Top</a>
36
<a href="#gnome-vfs-2.0-gnome-vfs-application-registry.description" class="shortcut">Description</a>
39
<div class="refentry" lang="en">
40
<a name="gnome-vfs-2.0-gnome-vfs-application-registry"></a><div class="titlepage"></div>
41
<div class="refnamediv"><table width="100%"><tr>
43
<h2><span class="refentrytitle"><a name="gnome-vfs-2.0-gnome-vfs-application-registry.top_of_page"></a>Deprecated Application Registry API</span></h2>
44
<p>Deprecated Application Registry API — formerly used for managing applications. Replaced by
45
<span class="type">GnomeVFS MIME Database</span> API</p>
47
<td valign="top" align="right"></td>
49
<div class="refsynopsisdiv">
50
<a name="gnome-vfs-2.0-gnome-vfs-application-registry.synopsis"></a><h2>Synopsis</h2>
51
<pre class="synopsis">
52
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#GNOME-VFS-APPLICATION-REGISTRY-COMMAND:CAPS" title="GNOME_VFS_APPLICATION_REGISTRY_COMMAND">GNOME_VFS_APPLICATION_REGISTRY_COMMAND</a>
53
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#GNOME-VFS-APPLICATION-REGISTRY-NAME:CAPS" title="GNOME_VFS_APPLICATION_REGISTRY_NAME">GNOME_VFS_APPLICATION_REGISTRY_NAME</a>
54
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#GNOME-VFS-APPLICATION-REGISTRY-CAN-OPEN-MULTIPLE-FILES:CAPS" title="GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES">GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES</a>
55
#define <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#GNOME-VFS-APPLICATION-REGISTRY-REQUIRES-TERMINAL:CAPS" title="GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL">GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL</a>
56
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-exists" title="gnome_vfs_application_registry_exists ()">gnome_vfs_application_registry_exists</a>
58
GList * <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-keys" title="gnome_vfs_application_registry_get_keys ()">gnome_vfs_application_registry_get_keys</a>
60
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-peek-value" title="gnome_vfs_application_registry_peek_value ()">gnome_vfs_application_registry_peek_value</a>
63
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-bool-value" title="gnome_vfs_application_registry_get_bool_value ()">gnome_vfs_application_registry_get_bool_value</a>
67
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-remove-application" title="gnome_vfs_application_registry_remove_application ()">gnome_vfs_application_registry_remove_application</a>
69
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-set-value" title="gnome_vfs_application_registry_set_value ()">gnome_vfs_application_registry_set_value</a>
73
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-set-bool-value" title="gnome_vfs_application_registry_set_bool_value ()">gnome_vfs_application_registry_set_bool_value</a>
77
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-unset-key" title="gnome_vfs_application_registry_unset_key ()">gnome_vfs_application_registry_unset_key</a>
80
GList * <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-applications" title="gnome_vfs_application_registry_get_applications ()">gnome_vfs_application_registry_get_applications</a>
81
(const char *mime_type);
82
GList * <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-mime-types" title="gnome_vfs_application_registry_get_mime_types ()">gnome_vfs_application_registry_get_mime_types</a>
84
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-supports-mime-type" title="gnome_vfs_application_registry_supports_mime_type ()">gnome_vfs_application_registry_supports_mime_type</a>
86
const char *mime_type);
87
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-supports-uri-scheme" title="gnome_vfs_application_registry_supports_uri_scheme ()">gnome_vfs_application_registry_supports_uri_scheme</a>
89
const char *uri_scheme);
90
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-is-user-owned-application" title="gnome_vfs_application_is_user_owned_application ()">gnome_vfs_application_is_user_owned_application</a>
91
(const <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);
92
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-clear-mime-types" title="gnome_vfs_application_registry_clear_mime_types ()">gnome_vfs_application_registry_clear_mime_types</a>
94
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-add-mime-type" title="gnome_vfs_application_registry_add_mime_type ()">gnome_vfs_application_registry_add_mime_type</a>
96
const char *mime_type);
97
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-remove-mime-type" title="gnome_vfs_application_registry_remove_mime_type ()">gnome_vfs_application_registry_remove_mime_type</a>
99
const char *mime_type);
100
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-sync" title="gnome_vfs_application_registry_sync ()">gnome_vfs_application_registry_sync</a> (void);
101
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-shutdown" title="gnome_vfs_application_registry_shutdown ()">gnome_vfs_application_registry_shutdown</a>
103
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-reload" title="gnome_vfs_application_registry_reload ()">gnome_vfs_application_registry_reload</a>
105
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-mime-application" title="gnome_vfs_application_registry_get_mime_application ()">gnome_vfs_application_registry_get_mime_application</a>
106
(const char *app_id);
107
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-save-mime-application" title="gnome_vfs_application_registry_save_mime_application ()">gnome_vfs_application_registry_save_mime_application</a>
108
(const <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);
111
<div class="refsect1" lang="en">
112
<a name="gnome-vfs-2.0-gnome-vfs-application-registry.description"></a><h2>Description</h2>
114
This API was formerly used to manage the applications known
115
to GnomeVFS, providing editing capabilities. The system was
116
overengineered and not very performant, so it has been
117
replaced by a new API, described in the
118
<span class="type">GnomeVFS MIME Database</span>
122
<div class="refsect1" lang="en">
123
<a name="gnome-vfs-2.0-gnome-vfs-application-registry.details"></a><h2>Details</h2>
124
<div class="refsect2" lang="en">
125
<a name="GNOME-VFS-APPLICATION-REGISTRY-COMMAND:CAPS"></a><h3>GNOME_VFS_APPLICATION_REGISTRY_COMMAND</h3>
126
<pre class="programlisting">#define GNOME_VFS_APPLICATION_REGISTRY_COMMAND "command"
128
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
129
<h3 class="title">Warning</h3>
130
<p><code class="literal">GNOME_VFS_APPLICATION_REGISTRY_COMMAND</code> is deprecated and should not be used in newly-written code.</p>
133
Application registry key for fetching the command to execute
139
<div class="refsect2" lang="en">
140
<a name="GNOME-VFS-APPLICATION-REGISTRY-NAME:CAPS"></a><h3>GNOME_VFS_APPLICATION_REGISTRY_NAME</h3>
141
<pre class="programlisting">#define GNOME_VFS_APPLICATION_REGISTRY_NAME "name"
143
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
144
<h3 class="title">Warning</h3>
145
<p><code class="literal">GNOME_VFS_APPLICATION_REGISTRY_NAME</code> is deprecated and should not be used in newly-written code.</p>
148
Application registry key for fetching the name of an application.</p>
153
<div class="refsect2" lang="en">
154
<a name="GNOME-VFS-APPLICATION-REGISTRY-CAN-OPEN-MULTIPLE-FILES:CAPS"></a><h3>GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES</h3>
155
<pre class="programlisting">#define GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES "can_open_multiple_files"
157
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
158
<h3 class="title">Warning</h3>
159
<p><code class="literal">GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES</code> is deprecated and should not be used in newly-written code.</p>
162
Application registry key for determining if an application
163
can open multiple files in the same invocation.</p>
168
<div class="refsect2" lang="en">
169
<a name="GNOME-VFS-APPLICATION-REGISTRY-REQUIRES-TERMINAL:CAPS"></a><h3>GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL</h3>
170
<pre class="programlisting">#define GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL "requires_terminal"
172
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
173
<h3 class="title">Warning</h3>
174
<p><code class="literal">GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL</code> is deprecated and should not be used in newly-written code.</p>
177
Application registry key for determining if an application
178
needs to run from within a terminal (for example, mpg123)</p>
183
<div class="refsect2" lang="en">
184
<a name="gnome-vfs-application-registry-exists"></a><h3>gnome_vfs_application_registry_exists ()</h3>
185
<pre class="programlisting">gboolean gnome_vfs_application_registry_exists
186
(const char *app_id);</pre>
187
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
188
<h3 class="title">Warning</h3>
189
<p><code class="literal">gnome_vfs_application_registry_exists</code> is deprecated and should not be used in newly-written code. All application registry functions have been
190
deprecated. Use the functions available in gnome-mime-handlers
194
This function will return TRUE if there is an entry for <em class="parameter"><code>app_id</code></em> in
195
the registry, otherwise FALSE.</p>
198
<div class="variablelist"><table border="0">
199
<col align="left" valign="top">
202
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
203
<td> an application ID
207
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
208
<td> TRUE if the application is in the registry, FALSE if not
216
<div class="refsect2" lang="en">
217
<a name="gnome-vfs-application-registry-get-keys"></a><h3>gnome_vfs_application_registry_get_keys ()</h3>
218
<pre class="programlisting">GList * gnome_vfs_application_registry_get_keys
219
(const char *app_id);</pre>
220
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
221
<h3 class="title">Warning</h3>
222
<p><code class="literal">gnome_vfs_application_registry_get_keys</code> is deprecated and should not be used in newly-written code. All application registry functions have been
223
deprecated. Use the functions available in gnome-mime-handlers
227
This function wil return a list of strings which is the list of
228
keys set for <em class="parameter"><code>app_id</code></em> in the application registry.</p>
231
<div class="variablelist"><table border="0">
232
<col align="left" valign="top">
235
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
236
<td> the application ID for which to get keys
240
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
241
<td> A list of the keys set for <em class="parameter"><code>app_id</code></em>
249
<div class="refsect2" lang="en">
250
<a name="gnome-vfs-application-registry-peek-value"></a><h3>gnome_vfs_application_registry_peek_value ()</h3>
251
<pre class="programlisting">const char * gnome_vfs_application_registry_peek_value
253
const char *key);</pre>
254
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
255
<h3 class="title">Warning</h3>
256
<p><code class="literal">gnome_vfs_application_registry_peek_value</code> is deprecated and should not be used in newly-written code. All application registry functions have been
257
deprecated. Use the functions available in gnome-mime-handlers
261
This will return the value associated with <em class="parameter"><code>key</code></em> for <em class="parameter"><code>app_id</code></em> in the
262
application registry. There is no need to free the return value.</p>
265
<div class="variablelist"><table border="0">
266
<col align="left" valign="top">
269
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
270
<td> the application ID for which to look up a value
274
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
275
<td> the key to look up
279
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
280
<td> the value associated with the key, or NULL if there is no
290
<div class="refsect2" lang="en">
291
<a name="gnome-vfs-application-registry-get-bool-value"></a><h3>gnome_vfs_application_registry_get_bool_value ()</h3>
292
<pre class="programlisting">gboolean gnome_vfs_application_registry_get_bool_value
295
gboolean *got_key);</pre>
296
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
297
<h3 class="title">Warning</h3>
298
<p><code class="literal">gnome_vfs_application_registry_get_bool_value</code> is deprecated and should not be used in newly-written code. All application registry functions have been
299
deprecated. Use the functions available in gnome-mime-handlers
303
This will look up a key in the structure pointed to by app_id and return the
304
boolean value of that key. It will return false if there are no
305
applications associated with the app_id.</p>
308
<div class="variablelist"><table border="0">
309
<col align="left" valign="top">
312
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
313
<td> registry id of the application
317
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
322
<td><p><span class="term"><em class="parameter"><code>got_key</code></em> :</span></p></td>
323
<td> TRUE if a setting was dound, otherwise FALSE
327
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
328
<td> TRUE if <em class="parameter"><code>key</code></em> is set to "true" or "yes" for <em class="parameter"><code>app_id</code></em>, otherwise FALSE
336
<div class="refsect2" lang="en">
337
<a name="gnome-vfs-application-registry-remove-application"></a><h3>gnome_vfs_application_registry_remove_application ()</h3>
338
<pre class="programlisting">void gnome_vfs_application_registry_remove_application
339
(const char *app_id);</pre>
340
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
341
<h3 class="title">Warning</h3>
342
<p><code class="literal">gnome_vfs_application_registry_remove_application</code> is deprecated and should not be used in newly-written code. All application registry functions have been
343
deprecated. Use the functions available in gnome-mime-handlers
347
Given the registry id this function will remove all applications that has
348
been set by the user. You will need to call
349
gnome_vfs_application_registry_sync to save the changes.</p>
352
<div class="variablelist"><table border="0">
353
<col align="left" valign="top">
355
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
356
<td> registry id of the application
362
<div class="refsect2" lang="en">
363
<a name="gnome-vfs-application-registry-set-value"></a><h3>gnome_vfs_application_registry_set_value ()</h3>
364
<pre class="programlisting">void gnome_vfs_application_registry_set_value
367
const char *value);</pre>
368
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
369
<h3 class="title">Warning</h3>
370
<p><code class="literal">gnome_vfs_application_registry_set_value</code> is deprecated and should not be used in newly-written code. All application registry functions have been
371
deprecated. Use the functions available in gnome-mime-handlers
375
This function will set values pertaining to registry entry pointed to by
376
app_id. You will need to call gnome_vfs_application_registry_sync to
377
realize the changes.</p>
380
<div class="variablelist"><table border="0">
381
<col align="left" valign="top">
384
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
385
<td> registry id of the application
389
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
394
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
395
<td> value to set the target key to
402
<div class="refsect2" lang="en">
403
<a name="gnome-vfs-application-registry-set-bool-value"></a><h3>gnome_vfs_application_registry_set_bool_value ()</h3>
404
<pre class="programlisting">void gnome_vfs_application_registry_set_bool_value
407
gboolean value);</pre>
408
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
409
<h3 class="title">Warning</h3>
410
<p><code class="literal">gnome_vfs_application_registry_set_bool_value</code> is deprecated and should not be used in newly-written code. All application registry functions have been
411
deprecated. Use the functions available in gnome-mime-handlers
415
This function will modify those registry values that are of type boolean to
416
a value specified by the user. You will need to call
417
gnome_vfs_application_registry_sync to save your changes.</p>
420
<div class="variablelist"><table border="0">
421
<col align="left" valign="top">
424
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
425
<td> registry id of the application
429
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
434
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
435
<td> value you want to set the target key to
442
<div class="refsect2" lang="en">
443
<a name="gnome-vfs-application-registry-unset-key"></a><h3>gnome_vfs_application_registry_unset_key ()</h3>
444
<pre class="programlisting">void gnome_vfs_application_registry_unset_key
446
const char *key);</pre>
447
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
448
<h3 class="title">Warning</h3>
449
<p><code class="literal">gnome_vfs_application_registry_unset_key</code> is deprecated and should not be used in newly-written code. All application registry functions have been
450
deprecated. Use the functions available in gnome-mime-handlers
454
This function given the application and the target will wipe the current
455
value that the key contains.</p>
458
<div class="variablelist"><table border="0">
459
<col align="left" valign="top">
462
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
463
<td> registry id of the application
467
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
475
<div class="refsect2" lang="en">
476
<a name="gnome-vfs-application-registry-get-applications"></a><h3>gnome_vfs_application_registry_get_applications ()</h3>
477
<pre class="programlisting">GList * gnome_vfs_application_registry_get_applications
478
(const char *mime_type);</pre>
479
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
480
<h3 class="title">Warning</h3>
481
<p><code class="literal">gnome_vfs_application_registry_get_applications</code> is deprecated and should not be used in newly-written code. All application registry functions have been
482
deprecated. Use the functions available in gnome-mime-handlers
486
This will return all applications from the registry that are associated with
487
the given mime type string, if NULL it returns all applications.</p>
490
<div class="variablelist"><table border="0">
491
<col align="left" valign="top">
494
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
495
<td> mime type string
499
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
500
<td> a list of the application IDs for all applications which
501
support the given mime type.
509
<div class="refsect2" lang="en">
510
<a name="gnome-vfs-application-registry-get-mime-types"></a><h3>gnome_vfs_application_registry_get_mime_types ()</h3>
511
<pre class="programlisting">GList * gnome_vfs_application_registry_get_mime_types
512
(const char *app_id);</pre>
513
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
514
<h3 class="title">Warning</h3>
515
<p><code class="literal">gnome_vfs_application_registry_get_mime_types</code> is deprecated and should not be used in newly-written code. All application registry functions have been
516
deprecated. Use the functions available in gnome-mime-handlers
520
This function returns a list of strings that represent the mime
521
types that can be handled by an application.</p>
524
<div class="variablelist"><table border="0">
525
<col align="left" valign="top">
528
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
529
<td> registry id of application
533
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
534
<td> a list of the mime types supported
542
<div class="refsect2" lang="en">
543
<a name="gnome-vfs-application-registry-supports-mime-type"></a><h3>gnome_vfs_application_registry_supports_mime_type ()</h3>
544
<pre class="programlisting">gboolean gnome_vfs_application_registry_supports_mime_type
546
const char *mime_type);</pre>
547
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
548
<h3 class="title">Warning</h3>
549
<p><code class="literal">gnome_vfs_application_registry_supports_mime_type</code> is deprecated and should not be used in newly-written code. All application registry functions have been
550
deprecated. Use the functions available in gnome-mime-handlers
554
Use this function to see if there is an application associated with a given
555
mime type. The function will return true or false.</p>
558
<div class="variablelist"><table border="0">
559
<col align="left" valign="top">
562
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
563
<td> registry id of application
567
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
568
<td> mime type string
572
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
573
<td> TRUE if <em class="parameter"><code>app_id</code></em> supports <em class="parameter"><code>mime_type</code></em>, otherwise FALSE.
581
<div class="refsect2" lang="en">
582
<a name="gnome-vfs-application-registry-supports-uri-scheme"></a><h3>gnome_vfs_application_registry_supports_uri_scheme ()</h3>
583
<pre class="programlisting">gboolean gnome_vfs_application_registry_supports_uri_scheme
585
const char *uri_scheme);</pre>
586
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
587
<h3 class="title">Warning</h3>
588
<p><code class="literal">gnome_vfs_application_registry_supports_uri_scheme</code> is deprecated and should not be used in newly-written code. All application registry functions have been
589
deprecated. Use the functions available in gnome-mime-handlers
593
Given the id of the application this function will determine if the
594
uri scheme will given is supported.</p>
597
<div class="variablelist"><table border="0">
598
<col align="left" valign="top">
601
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
602
<td> registry id of application
606
<td><p><span class="term"><em class="parameter"><code>uri_scheme</code></em> :</span></p></td>
607
<td> uri schme string
611
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
612
<td> TRUE if <em class="parameter"><code>app_id</code></em> supports <em class="parameter"><code>uri_scheme</code></em>, otherwise FALSE
620
<div class="refsect2" lang="en">
621
<a name="gnome-vfs-application-is-user-owned-application"></a><h3>gnome_vfs_application_is_user_owned_application ()</h3>
622
<pre class="programlisting">gboolean gnome_vfs_application_is_user_owned_application
623
(const <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);</pre>
624
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
625
<h3 class="title">Warning</h3>
626
<p><code class="literal">gnome_vfs_application_is_user_owned_application</code> is deprecated and should not be used in newly-written code. All application registry functions have been
627
deprecated. Use the functions available in gnome-mime-handlers
631
This function will determine if a mime application is user owned or not. By
632
user ownered this means that the application is not a system application
633
located in the prerequisite /usr area but rather in the user's area.</p>
636
<div class="variablelist"><table border="0">
637
<col align="left" valign="top">
640
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
641
<td> data structure of the mime application
645
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
654
<div class="refsect2" lang="en">
655
<a name="gnome-vfs-application-registry-clear-mime-types"></a><h3>gnome_vfs_application_registry_clear_mime_types ()</h3>
656
<pre class="programlisting">void gnome_vfs_application_registry_clear_mime_types
657
(const char *app_id);</pre>
658
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
659
<h3 class="title">Warning</h3>
660
<p><code class="literal">gnome_vfs_application_registry_clear_mime_types</code> is deprecated and should not be used in newly-written code. All application registry functions have been
661
deprecated. Use the functions available in gnome-mime-handlers
665
This function will remove the mime types associated with the application.
666
Changes are not realized until the gnome_vfs_application_registry_sync
667
function is called to save the changes to the file.</p>
670
<div class="variablelist"><table border="0">
671
<col align="left" valign="top">
673
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
680
<div class="refsect2" lang="en">
681
<a name="gnome-vfs-application-registry-add-mime-type"></a><h3>gnome_vfs_application_registry_add_mime_type ()</h3>
682
<pre class="programlisting">void gnome_vfs_application_registry_add_mime_type
684
const char *mime_type);</pre>
685
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
686
<h3 class="title">Warning</h3>
687
<p><code class="literal">gnome_vfs_application_registry_add_mime_type</code> is deprecated and should not be used in newly-written code. All application registry functions have been
688
deprecated. Use the functions available in gnome-mime-handlers
692
This function will associate a mime type with an application given the
693
application registry id and the mime type. Changes are not realized until
694
the gnome_vfs_application_registry_sync function is called to save the
695
changes to the file.</p>
698
<div class="variablelist"><table border="0">
699
<col align="left" valign="top">
702
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
703
<td> registry id of application
707
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
708
<td> mime type string
715
<div class="refsect2" lang="en">
716
<a name="gnome-vfs-application-registry-remove-mime-type"></a><h3>gnome_vfs_application_registry_remove_mime_type ()</h3>
717
<pre class="programlisting">void gnome_vfs_application_registry_remove_mime_type
719
const char *mime_type);</pre>
720
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
721
<h3 class="title">Warning</h3>
722
<p><code class="literal">gnome_vfs_application_registry_remove_mime_type</code> is deprecated and should not be used in newly-written code. All application registry functions have been
723
deprecated. Use the functions available in gnome-mime-handlers
727
This function will de-associate a mime type from an application registry.
728
Given the application registry id and the mime type. Changes are not
729
realized until the gnome_vfs_application_registry_sync function is called to
730
save the changes to the file.</p>
733
<div class="variablelist"><table border="0">
734
<col align="left" valign="top">
737
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
738
<td> registry id of the application
742
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
743
<td> mime type string
750
<div class="refsect2" lang="en">
751
<a name="gnome-vfs-application-registry-sync"></a><h3>gnome_vfs_application_registry_sync ()</h3>
752
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_application_registry_sync (void);</pre>
753
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
754
<h3 class="title">Warning</h3>
755
<p><code class="literal">gnome_vfs_application_registry_sync</code> is deprecated and should not be used in newly-written code. All application registry functions have been
756
deprecated. Use the functions available in gnome-mime-handlers
760
This function will sync the registry. Typically you would use this function
761
after a modification of the registry. When you modify the registry a dirty
762
flag is set. Calling this function will save your modifications to disk and
766
If successful, will return GNOME_VFS_OK</p>
769
<div class="variablelist"><table border="0">
770
<col align="left" valign="top">
772
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
780
<div class="refsect2" lang="en">
781
<a name="gnome-vfs-application-registry-shutdown"></a><h3>gnome_vfs_application_registry_shutdown ()</h3>
782
<pre class="programlisting">void gnome_vfs_application_registry_shutdown
784
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
785
<h3 class="title">Warning</h3>
786
<p><code class="literal">gnome_vfs_application_registry_shutdown</code> is deprecated and should not be used in newly-written code. All application registry functions have been
787
deprecated. Use the functions available in gnome-mime-handlers
791
Synchronize gnome-vfs application registry data to disk, and free
797
<div class="refsect2" lang="en">
798
<a name="gnome-vfs-application-registry-reload"></a><h3>gnome_vfs_application_registry_reload ()</h3>
799
<pre class="programlisting">void gnome_vfs_application_registry_reload
801
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
802
<h3 class="title">Warning</h3>
803
<p><code class="literal">gnome_vfs_application_registry_reload</code> is deprecated and should not be used in newly-written code. All application registry functions have been
804
deprecated. Use the functions available in gnome-mime-handlers
808
If this function is called for the first time it will initialize the
809
registry. Subsequent calls to the function will clear out the current
810
registry contents and load registry contents from the save file. Make
811
certain that you've saved your registry before calling this function. It
812
will destroy unsaved changes.</p>
817
<div class="refsect2" lang="en">
818
<a name="gnome-vfs-application-registry-get-mime-application"></a><h3>gnome_vfs_application_registry_get_mime_application ()</h3>
819
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_application_registry_get_mime_application
820
(const char *app_id);</pre>
821
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
822
<h3 class="title">Warning</h3>
823
<p><code class="literal">gnome_vfs_application_registry_get_mime_application</code> is deprecated and should not be used in newly-written code. All application registry functions have been
824
deprecated. Use the functions available in gnome-mime-handlers
828
Returns a structure that contains the application that handles
829
the mime type associated by the application referred by app_id.</p>
832
<div class="variablelist"><table border="0">
833
<col align="left" valign="top">
836
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
837
<td> registry id of the application
841
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
842
<td> GnomeVFSMimeApplication
850
<div class="refsect2" lang="en">
851
<a name="gnome-vfs-application-registry-save-mime-application"></a><h3>gnome_vfs_application_registry_save_mime_application ()</h3>
852
<pre class="programlisting">void gnome_vfs_application_registry_save_mime_application
853
(const <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);</pre>
854
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
855
<h3 class="title">Warning</h3>
856
<p><code class="literal">gnome_vfs_application_registry_save_mime_application</code> is deprecated and should not be used in newly-written code. All application registry functions have been
857
deprecated. Use the functions available in gnome-mime-handlers
861
This will save to the registry the application that will be associated with
862
a defined mime type. The defined mime type is located within the
863
GnomeVFSMimeApplication structure. Changes are not realized until the
864
gnome_vfs_application_registry_sync function is called.</p>
867
<div class="variablelist"><table border="0">
868
<col align="left" valign="top">
870
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
871
<td> application associated with the mime type
877
<div class="refsect1" lang="en">
878
<a name="gnome-vfs-2.0-gnome-vfs-application-registry.see-also"></a><h2>See Also</h2>
880
<span class="type">GnomeVFS MIME Database API</span>
886
Generated by GTK-Doc V1.12</div>