1Gnome2::VFS::Mime::TypeU(s3e)r Contributed Perl DocumentaGtnioomne2::VFS::Mime::Type(3)
2
3
4

NAME

6       Gnome2::VFS::Mime::Type
7

METHODS

9   scalar = Gnome2::VFS::Mime::Type->new ($mime_type)
10       •   $mime_type (string)
11
12   result = $mime_type->add_application_to_short_list ($application_id)
13       •   $application_id (string)
14
15   result = $mime_type->add_extension ($extension)
16       •   $extension (string)
17
18   list = $mime_type->get_all_applications_for_uri ($uri)
19       •   $uri (string)
20
21       Since: vfs 2.10
22
23   list = $mime_type->get_all_applications
24       Returns a list of GnomeVFSMimeApplication's.
25
26   list = $mime_type->get_all_desktop_entries
27       Since: vfs 2.8
28
29   boolean = $mime_type->can_be_executable
30   result = $mime_type->set_can_be_executable ($new_value)
31       •   $new_value (boolean)
32
33   mimeactiontype = $mime_type->get_default_action_type
34   result = $mime_type->set_default_action_type ($action_type)
35       •   $action_type (Gnome2::VFS::MimeActionType)
36
37   application = $mime_type->get_default_application_for_uri ($uri)
38       •   $uri (string)
39
40       Since: vfs 2.10
41
42   application = $mime_type->get_default_application
43   result = $mime_type->set_default_application ($application_id)
44       •   $application_id (string)
45
46   string = $mime_type->get_default_desktop_entry
47       Since: vfs 2.8
48
49   string = $mime_type->get_description
50   result = $mime_type->set_description ($description)
51       •   $description (string)
52
53   mimeequivalence = $mime_type->get_equivalence ($base_mime_type)
54       •   $base_mime_type (Gnome2::VFS::Mime::Type)
55
56       Since: vfs 2.8
57
58   result = $mime_type->extend_all_applications (...)
59       •   ... (list) of application id's
60
61   string = $mime_type->get_icon
62   result = $mime_type->set_icon ($filename)
63       •   $filename (string)
64
65   boolean = $a->is_equal ($b)
66       •   $b (Gnome2::VFS::Mime::Type)
67
68       Since: vfs 2.8
69
70   result = $mime_type->remove_application_from_short_list ($application_id)
71       •   $application_id (string)
72
73   result = $mime_type->remove_extension ($extension)
74       •   $extension (string)
75
76   result = $mime_type->remove_from_all_applications (...)
77       •   ... (list) of application id's
78
79   list = $mime_type->get_short_list_applications
80       Returns a list of GnomeVFSMimeApplication's.
81
82   result = $mime_type->set_short_list_applications (...)
83       •   ... (list) of application id's
84

ENUMS AND FLAGS

86   enum Gnome2::VFS::MimeActionType
87       •   'none' / 'GNOME_VFS_MIME_ACTION_TYPE_NONE'
88
89       •   'application' / 'GNOME_VFS_MIME_ACTION_TYPE_APPLICATION'
90
91       •   'component' / 'GNOME_VFS_MIME_ACTION_TYPE_COMPONENT'
92
93   enum Gnome2::VFS::MimeEquivalence
94       •   'unrelated' / 'GNOME_VFS_MIME_UNRELATED'
95
96       •   'identical' / 'GNOME_VFS_MIME_IDENTICAL'
97
98       •   'parent' / 'GNOME_VFS_MIME_PARENT'
99
100   enum Gnome2::VFS::Result
101       •   'ok' / 'GNOME_VFS_OK'
102
103       •   'error-not-found' / 'GNOME_VFS_ERROR_NOT_FOUND'
104
105       •   'error-generic' / 'GNOME_VFS_ERROR_GENERIC'
106
107       •   'error-internal' / 'GNOME_VFS_ERROR_INTERNAL'
108
109       •   'error-bad-parameters' / 'GNOME_VFS_ERROR_BAD_PARAMETERS'
110
111       •   'error-not-supported' / 'GNOME_VFS_ERROR_NOT_SUPPORTED'
112
113       •   'error-io' / 'GNOME_VFS_ERROR_IO'
114
115       •   'error-corrupted-data' / 'GNOME_VFS_ERROR_CORRUPTED_DATA'
116
117       •   'error-wrong-format' / 'GNOME_VFS_ERROR_WRONG_FORMAT'
118
119       •   'error-bad-file' / 'GNOME_VFS_ERROR_BAD_FILE'
120
121       •   'error-too-big' / 'GNOME_VFS_ERROR_TOO_BIG'
122
123       •   'error-no-space' / 'GNOME_VFS_ERROR_NO_SPACE'
124
125       •   'error-read-only' / 'GNOME_VFS_ERROR_READ_ONLY'
126
127       •   'error-invalid-uri' / 'GNOME_VFS_ERROR_INVALID_URI'
128
129       •   'error-not-open' / 'GNOME_VFS_ERROR_NOT_OPEN'
130
131       •   'error-invalid-open-mode' / 'GNOME_VFS_ERROR_INVALID_OPEN_MODE'
132
133       •   'error-access-denied' / 'GNOME_VFS_ERROR_ACCESS_DENIED'
134
135       •   'error-too-many-open-files' / 'GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES'
136
137       •   'error-eof' / 'GNOME_VFS_ERROR_EOF'
138
139       •   'error-not-a-directory' / 'GNOME_VFS_ERROR_NOT_A_DIRECTORY'
140
141       •   'error-in-progress' / 'GNOME_VFS_ERROR_IN_PROGRESS'
142
143       •   'error-interrupted' / 'GNOME_VFS_ERROR_INTERRUPTED'
144
145       •   'error-file-exists' / 'GNOME_VFS_ERROR_FILE_EXISTS'
146
147       •   'error-loop' / 'GNOME_VFS_ERROR_LOOP'
148
149       •   'error-not-permitted' / 'GNOME_VFS_ERROR_NOT_PERMITTED'
150
151       •   'error-is-directory' / 'GNOME_VFS_ERROR_IS_DIRECTORY'
152
153       •   'error-no-memory' / 'GNOME_VFS_ERROR_NO_MEMORY'
154
155       •   'error-host-not-found' / 'GNOME_VFS_ERROR_HOST_NOT_FOUND'
156
157       •   'error-invalid-host-name' / 'GNOME_VFS_ERROR_INVALID_HOST_NAME'
158
159       •   'error-host-has-no-address' / 'GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS'
160
161       •   'error-login-failed' / 'GNOME_VFS_ERROR_LOGIN_FAILED'
162
163       •   'error-cancelled' / 'GNOME_VFS_ERROR_CANCELLED'
164
165       •   'error-directory-busy' / 'GNOME_VFS_ERROR_DIRECTORY_BUSY'
166
167       •   'error-directory-not-empty' / 'GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY'
168
169       •   'error-too-many-links' / 'GNOME_VFS_ERROR_TOO_MANY_LINKS'
170
171       •   'error-read-only-file-system' /
172           'GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM'
173
174       •   'error-not-same-file-system' /
175           'GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM'
176
177       •   'error-name-too-long' / 'GNOME_VFS_ERROR_NAME_TOO_LONG'
178
179       •   'error-service-not-available' /
180           'GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE'
181
182       •   'error-service-obsolete' / 'GNOME_VFS_ERROR_SERVICE_OBSOLETE'
183
184       •   'error-protocol-error' / 'GNOME_VFS_ERROR_PROTOCOL_ERROR'
185
186       •   'error-no-master-browser' / 'GNOME_VFS_ERROR_NO_MASTER_BROWSER'
187
188       •   'error-no-default' / 'GNOME_VFS_ERROR_NO_DEFAULT'
189
190       •   'error-no-handler' / 'GNOME_VFS_ERROR_NO_HANDLER'
191
192       •   'error-parse' / 'GNOME_VFS_ERROR_PARSE'
193
194       •   'error-launch' / 'GNOME_VFS_ERROR_LAUNCH'
195
196       •   'error-timeout' / 'GNOME_VFS_ERROR_TIMEOUT'
197
198       •   'error-nameserver' / 'GNOME_VFS_ERROR_NAMESERVER'
199
200       •   'error-locked' / 'GNOME_VFS_ERROR_LOCKED'
201
202       •   'error-deprecated-function' / 'GNOME_VFS_ERROR_DEPRECATED_FUNCTION'
203
204       •   'error-invalid-filename' / 'GNOME_VFS_ERROR_INVALID_FILENAME'
205
206       •   'error-not-a-symbolic-link' / 'GNOME_VFS_ERROR_NOT_A_SYMBOLIC_LINK'
207
208       •   'num-errors' / 'GNOME_VFS_NUM_ERRORS'
209

SEE ALSO

211       Gnome2::VFS
212
214       Copyright (C) 2003-2007, 2013 by the gtk2-perl team.
215
216       This software is licensed under the LGPL.  See Gnome2::VFS for a full
217       notice.
218
219
220
221perl v5.38.0                      2023-07-20        Gnome2::VFS::Mime::Type(3)
Impressum