1// Package gio was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package gio
3
4import (
5 "structs"
6 "unsafe"
7
8 "github.com/ebitengine/purego"
9
10 "github.com/bnema/puregotk/pkg/core"
11 "github.com/bnema/puregotk/v4/glib"
12 "github.com/bnema/puregotk/v4/gobject"
13 "github.com/bnema/puregotk/v4/gobject/types"
14)
15
16type FileInfoClass struct {
17 _ structs.HostLayout
18}
19
20func (x *FileInfoClass) GoPointer() uintptr {
21 return uintptr(unsafe.Pointer(x))
22}
23
24const (
25 // A key in the "access" namespace for checking deletion privileges.
26 //
27 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
28 //
29 // This attribute will be %TRUE if the user is able to delete the file.
30 FILE_ATTRIBUTE_ACCESS_CAN_DELETE string = "access::can-delete"
31 // A key in the "access" namespace for getting execution privileges.
32 //
33 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
34 //
35 // This attribute will be %TRUE if the user is able to execute the file.
36 FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE string = "access::can-execute"
37 // A key in the "access" namespace for getting read privileges.
38 //
39 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
40 //
41 // This attribute will be %TRUE if the user is able to read the file.
42 FILE_ATTRIBUTE_ACCESS_CAN_READ string = "access::can-read"
43 // A key in the "access" namespace for checking renaming privileges.
44 //
45 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
46 //
47 // This attribute will be %TRUE if the user is able to rename the file.
48 FILE_ATTRIBUTE_ACCESS_CAN_RENAME string = "access::can-rename"
49 // A key in the "access" namespace for checking trashing privileges.
50 //
51 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
52 //
53 // This attribute will be %TRUE if the user is able to move the file to
54 // the trash.
55 FILE_ATTRIBUTE_ACCESS_CAN_TRASH string = "access::can-trash"
56 // A key in the "access" namespace for getting write privileges.
57 //
58 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
59 //
60 // This attribute will be %TRUE if the user is able to write to the file.
61 FILE_ATTRIBUTE_ACCESS_CAN_WRITE string = "access::can-write"
62 // A key in the "dos" namespace for checking if the file's archive flag
63 // is set.
64 //
65 // This attribute is %TRUE if the archive flag is set.
66 //
67 // This attribute is only available for DOS file systems.
68 //
69 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
70 FILE_ATTRIBUTE_DOS_IS_ARCHIVE string = "dos::is-archive"
71 // A key in the "dos" namespace for checking if the file is a NTFS mount point
72 // (a volume mount or a junction point).
73 //
74 // This attribute is %TRUE if file is a reparse point of type
75 // [IO_REPARSE_TAG_MOUNT_POINT](https://msdn.microsoft.com/en-us/library/dd541667.aspx).
76 //
77 // This attribute is only available for DOS file systems.
78 //
79 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
80 FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT string = "dos::is-mountpoint"
81 // A key in the "dos" namespace for checking if the file's backup flag
82 // is set.
83 //
84 // This attribute is %TRUE if the backup flag is set.
85 //
86 // This attribute is only available for DOS file systems.
87 //
88 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
89 FILE_ATTRIBUTE_DOS_IS_SYSTEM string = "dos::is-system"
90 // A key in the "dos" namespace for getting the file NTFS reparse tag.
91 //
92 // This value is 0 for files that are not reparse points.
93 //
94 // See the [Reparse Tags](https://msdn.microsoft.com/en-us/library/dd541667.aspx)
95 // page for possible reparse tag values.
96 //
97 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
98 FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG string = "dos::reparse-point-tag"
99 // A key in the "etag" namespace for getting the value of the file's
100 // entity tag.
101 //
102 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
103 FILE_ATTRIBUTE_ETAG_VALUE string = "etag::value"
104 // A key in the "filesystem" namespace for getting the number of bytes
105 // of free space left on the file system.
106 //
107 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
108 FILE_ATTRIBUTE_FILESYSTEM_FREE string = "filesystem::free"
109 // A key in the "filesystem" namespace for checking if the file system
110 // is read only.
111 //
112 // Is set to %TRUE if the file system is read only.
113 //
114 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
115 FILE_ATTRIBUTE_FILESYSTEM_READONLY string = "filesystem::readonly"
116 // A key in the "filesystem" namespace for checking if the file system
117 // is remote.
118 //
119 // Is set to %TRUE if the file system is remote.
120 //
121 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
122 FILE_ATTRIBUTE_FILESYSTEM_REMOTE string = "filesystem::remote"
123 // A key in the "filesystem" namespace for getting the total size (in
124 // bytes) of the file system, used in g_file_query_filesystem_info().
125 //
126 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
127 FILE_ATTRIBUTE_FILESYSTEM_SIZE string = "filesystem::size"
128 // A key in the "filesystem" namespace for getting the file system's type.
129 //
130 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
131 FILE_ATTRIBUTE_FILESYSTEM_TYPE string = "filesystem::type"
132 // A key in the "filesystem" namespace for getting the number of bytes
133 // used by data on the file system.
134 //
135 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
136 FILE_ATTRIBUTE_FILESYSTEM_USED string = "filesystem::used"
137 // A key in the "filesystem" namespace for hinting a file manager
138 // application whether it should preview (e.g. thumbnail) files on the
139 // file system.
140 //
141 // The value for this key contain a #GFilesystemPreviewType.
142 FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW string = "filesystem::use-preview"
143 // A key in the "gvfs" namespace that gets the name of the current
144 // GVFS backend in use.
145 //
146 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
147 FILE_ATTRIBUTE_GVFS_BACKEND string = "gvfs::backend"
148 // A key in the "id" namespace for getting a file identifier.
149 //
150 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
151 //
152 // An example use would be during listing files, to avoid recursive
153 // directory scanning.
154 FILE_ATTRIBUTE_ID_FILE string = "id::file"
155 // A key in the "id" namespace for getting the file system identifier.
156 //
157 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
158 //
159 // An example use would be during drag and drop to see if the source
160 // and target are on the same filesystem (default to move) or not (default
161 // to copy).
162 FILE_ATTRIBUTE_ID_FILESYSTEM string = "id::filesystem"
163 // A key in the "mountable" namespace for checking if a file (of
164 // type G_FILE_TYPE_MOUNTABLE) can be ejected.
165 //
166 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
167 FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT string = "mountable::can-eject"
168 // A key in the "mountable" namespace for checking if a file (of
169 // type G_FILE_TYPE_MOUNTABLE) is mountable.
170 //
171 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
172 FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT string = "mountable::can-mount"
173 // A key in the "mountable" namespace for checking if a file (of
174 // type G_FILE_TYPE_MOUNTABLE) can be polled.
175 //
176 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
177 FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL string = "mountable::can-poll"
178 // A key in the "mountable" namespace for checking if a file (of
179 // type G_FILE_TYPE_MOUNTABLE) can be started.
180 //
181 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
182 FILE_ATTRIBUTE_MOUNTABLE_CAN_START string = "mountable::can-start"
183 // A key in the "mountable" namespace for checking if a file (of
184 // type G_FILE_TYPE_MOUNTABLE) can be started degraded.
185 //
186 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
187 FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED string = "mountable::can-start-degraded"
188 // A key in the "mountable" namespace for checking if a file (of
189 // type G_FILE_TYPE_MOUNTABLE) can be stopped.
190 //
191 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
192 FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP string = "mountable::can-stop"
193 // A key in the "mountable" namespace for checking if a file (of
194 // type G_FILE_TYPE_MOUNTABLE) is unmountable.
195 //
196 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
197 FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT string = "mountable::can-unmount"
198 // A key in the "mountable" namespace for getting the HAL UDI for the mountable
199 // file.
200 //
201 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
202 FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI string = "mountable::hal-udi"
203 // A key in the "mountable" namespace for checking if a file (of
204 // type G_FILE_TYPE_MOUNTABLE) is automatically polled for media.
205 //
206 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
207 FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC string = "mountable::is-media-check-automatic"
208 // A key in the "mountable" namespace for getting the #GDriveStartStopType.
209 //
210 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
211 FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE string = "mountable::start-stop-type"
212 // A key in the "mountable" namespace for getting the unix device.
213 //
214 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
215 FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE string = "mountable::unix-device"
216 // A key in the "mountable" namespace for getting the unix device file.
217 //
218 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
219 FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE string = "mountable::unix-device-file"
220 // A key in the "owner" namespace for getting the file owner's group.
221 //
222 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
223 FILE_ATTRIBUTE_OWNER_GROUP string = "owner::group"
224 // A key in the "owner" namespace for getting the user name of the
225 // file's owner.
226 //
227 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
228 FILE_ATTRIBUTE_OWNER_USER string = "owner::user"
229 // A key in the "owner" namespace for getting the real name of the
230 // user that owns the file.
231 //
232 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
233 FILE_ATTRIBUTE_OWNER_USER_REAL string = "owner::user-real"
234 // A key in the "preview" namespace for getting a #GIcon that can be
235 // used to get preview of the file.
236 //
237 // For example, it may be a low resolution thumbnail without metadata.
238 //
239 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.
240 //
241 // The value for this key should contain a #GIcon.
242 FILE_ATTRIBUTE_PREVIEW_ICON string = "preview::icon"
243 // A key in the "recent" namespace for getting time, when the metadata for the
244 // file in `recent:///` was last changed.
245 //
246 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_INT64.
247 FILE_ATTRIBUTE_RECENT_MODIFIED string = "recent::modified"
248 // A key in the "selinux" namespace for getting the file's SELinux
249 // context.
250 //
251 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
252 //
253 // Note that this attribute is only available if GLib has been built
254 // with SELinux support.
255 FILE_ATTRIBUTE_SELINUX_CONTEXT string = "selinux::context"
256 // A key in the "standard" namespace for getting the amount of disk space
257 // that is consumed by the file (in bytes).
258 //
259 // This will generally be larger than the file size (due to block size
260 // overhead) but can occasionally be smaller (for example, for sparse files).
261 //
262 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
263 FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE string = "standard::allocated-size"
264 // A key in the "standard" namespace for getting the content type of the file.
265 //
266 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
267 //
268 // The value for this key should contain a valid content type.
269 FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE string = "standard::content-type"
270 // A key in the "standard" namespace for getting the copy name of the file.
271 //
272 // The copy name is an optional version of the name. If available it's always
273 // in UTF8, and corresponds directly to the original filename (only transcoded to
274 // UTF8). This is useful if you want to copy the file to another filesystem that
275 // might have a different encoding. If the filename is not a valid string in the
276 // encoding selected for the filesystem it is in then the copy name will not be set.
277 //
278 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
279 FILE_ATTRIBUTE_STANDARD_COPY_NAME string = "standard::copy-name"
280 // A key in the "standard" namespace for getting the description of the file.
281 //
282 // The description is a utf8 string that describes the file, generally containing
283 // the filename, but can also contain further information. Example descriptions
284 // could be "filename (on hostname)" for a remote file or "filename (in trash)"
285 // for a file in the trash. This is useful for instance as the window title
286 // when displaying a directory or for a bookmarks menu.
287 //
288 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
289 FILE_ATTRIBUTE_STANDARD_DESCRIPTION string = "standard::description"
290 // A key in the "standard" namespace for getting the display name of the file.
291 //
292 // A display name is guaranteed to be in UTF-8 and can thus be displayed in
293 // the UI. It is guaranteed to be set on every file.
294 //
295 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
296 FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME string = "standard::display-name"
297 // A key in the "standard" namespace for edit name of the file.
298 //
299 // An edit name is similar to the display name, but it is meant to be
300 // used when you want to rename the file in the UI. The display name
301 // might contain information you don't want in the new filename (such as
302 // "(invalid unicode)" if the filename was in an invalid encoding).
303 //
304 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
305 FILE_ATTRIBUTE_STANDARD_EDIT_NAME string = "standard::edit-name"
306 // A key in the "standard" namespace for getting the fast content type.
307 //
308 // The fast content type isn't as reliable as the regular one, as it
309 // only uses the filename to guess it, but it is faster to calculate than the
310 // regular content type.
311 //
312 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
313 FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE string = "standard::fast-content-type"
314 // A key in the "standard" namespace for getting the icon for the file.
315 //
316 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.
317 //
318 // The value for this key should contain a #GIcon.
319 FILE_ATTRIBUTE_STANDARD_ICON string = "standard::icon"
320 // A key in the "standard" namespace for checking if a file is a backup file.
321 //
322 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
323 FILE_ATTRIBUTE_STANDARD_IS_BACKUP string = "standard::is-backup"
324 // A key in the "standard" namespace for checking if a file is hidden.
325 //
326 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
327 FILE_ATTRIBUTE_STANDARD_IS_HIDDEN string = "standard::is-hidden"
328 // A key in the "standard" namespace for checking if the file is a symlink.
329 // Typically the actual type is something else, if we followed the symlink
330 // to get the type.
331 //
332 // On Windows NTFS mountpoints are considered to be symlinks as well.
333 //
334 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
335 FILE_ATTRIBUTE_STANDARD_IS_SYMLINK string = "standard::is-symlink"
336 // A key in the "standard" namespace for checking if a file is virtual.
337 //
338 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
339 FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL string = "standard::is-virtual"
340 // A key in the "standard" namespace for checking if a file is
341 // volatile. This is meant for opaque, non-POSIX-like backends to
342 // indicate that the URI is not persistent. Applications should look
343 // at %G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET for the persistent URI.
344 //
345 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
346 FILE_ATTRIBUTE_STANDARD_IS_VOLATILE string = "standard::is-volatile"
347 // A key in the "standard" namespace for getting the name of the file.
348 //
349 // The name is the on-disk filename which may not be in any known encoding,
350 // and can thus not be generally displayed as is. It is guaranteed to be set on
351 // every file.
352 //
353 // Use %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME if you need to display the
354 // name in a user interface.
355 //
356 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
357 FILE_ATTRIBUTE_STANDARD_NAME string = "standard::name"
358 // A key in the "standard" namespace for getting the file's size (in bytes).
359 //
360 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
361 FILE_ATTRIBUTE_STANDARD_SIZE string = "standard::size"
362 // A key in the "standard" namespace for setting the sort order of a file.
363 //
364 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_INT32.
365 //
366 // An example use would be in file managers, which would use this key
367 // to set the order files are displayed. Files with smaller sort order
368 // should be sorted first, and files without sort order as if sort order
369 // was zero.
370 FILE_ATTRIBUTE_STANDARD_SORT_ORDER string = "standard::sort-order"
371 // A key in the "standard" namespace for getting the symbolic icon for the file.
372 //
373 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.
374 //
375 // The value for this key should contain a #GIcon.
376 FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON string = "standard::symbolic-icon"
377 // A key in the "standard" namespace for getting the symlink target, if the file
378 // is a symlink.
379 //
380 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
381 FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET string = "standard::symlink-target"
382 // A key in the "standard" namespace for getting the target URI for the file, in
383 // the case of %G_FILE_TYPE_SHORTCUT or %G_FILE_TYPE_MOUNTABLE files.
384 //
385 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
386 FILE_ATTRIBUTE_STANDARD_TARGET_URI string = "standard::target-uri"
387 // A key in the "standard" namespace for storing file types.
388 //
389 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
390 //
391 // The value for this key should contain a #GFileType.
392 FILE_ATTRIBUTE_STANDARD_TYPE string = "standard::type"
393 // A key in the "thumbnail" namespace for checking if thumbnailing failed.
394 //
395 // This attribute is %TRUE if thumbnailing failed.
396 //
397 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
398 FILE_ATTRIBUTE_THUMBNAILING_FAILED string = "thumbnail::failed"
399 // A key in the "thumbnail" namespace for checking if thumbnailing failed
400 // for the large image.
401 //
402 // This attribute is %TRUE if thumbnailing failed.
403 //
404 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
405 FILE_ATTRIBUTE_THUMBNAILING_FAILED_LARGE string = "thumbnail::failed-large"
406 // A key in the "thumbnail" namespace for checking if thumbnailing failed
407 // for the normal image.
408 //
409 // This attribute is %TRUE if thumbnailing failed.
410 //
411 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
412 FILE_ATTRIBUTE_THUMBNAILING_FAILED_NORMAL string = "thumbnail::failed-normal"
413 // A key in the "thumbnail" namespace for checking if thumbnailing failed
414 // for the x-large image.
415 //
416 // This attribute is %TRUE if thumbnailing failed.
417 //
418 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
419 FILE_ATTRIBUTE_THUMBNAILING_FAILED_XLARGE string = "thumbnail::failed-xlarge"
420 // A key in the "thumbnail" namespace for checking if thumbnailing failed
421 // for the xx-large image.
422 //
423 // This attribute is %TRUE if thumbnailing failed.
424 //
425 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
426 FILE_ATTRIBUTE_THUMBNAILING_FAILED_XXLARGE string = "thumbnail::failed-xxlarge"
427 // A key in the "thumbnail" namespace for checking whether the thumbnail is outdated.
428 //
429 // This attribute is %TRUE if the thumbnail is up-to-date with the file it represents,
430 // and %FALSE if the file has been modified since the thumbnail was generated.
431 //
432 // If %G_FILE_ATTRIBUTE_THUMBNAILING_FAILED is %TRUE and this attribute is %FALSE,
433 // it indicates that thumbnailing may be attempted again and may succeed.
434 //
435 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
436 FILE_ATTRIBUTE_THUMBNAIL_IS_VALID string = "thumbnail::is-valid"
437 // A key in the "thumbnail" namespace for checking whether the large
438 // thumbnail is outdated.
439 //
440 // This attribute is %TRUE if the large thumbnail is up-to-date with the file
441 // it represents, and %FALSE if the file has been modified since the thumbnail
442 // was generated.
443 //
444 // If %G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_LARGE is %TRUE and this attribute
445 // is %FALSE, it indicates that thumbnailing may be attempted again and may
446 // succeed.
447 //
448 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
449 FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_LARGE string = "thumbnail::is-valid-large"
450 // A key in the "thumbnail" namespace for checking whether the normal
451 // thumbnail is outdated.
452 //
453 // This attribute is %TRUE if the normal thumbnail is up-to-date with the file
454 // it represents, and %FALSE if the file has been modified since the thumbnail
455 // was generated.
456 //
457 // If %G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_NORMAL is %TRUE and this attribute
458 // is %FALSE, it indicates that thumbnailing may be attempted again and may
459 // succeed.
460 //
461 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
462 FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_NORMAL string = "thumbnail::is-valid-normal"
463 // A key in the "thumbnail" namespace for checking whether the x-large
464 // thumbnail is outdated.
465 //
466 // This attribute is %TRUE if the x-large thumbnail is up-to-date with the file
467 // it represents, and %FALSE if the file has been modified since the thumbnail
468 // was generated.
469 //
470 // If %G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XLARGE is %TRUE and this attribute
471 // is %FALSE, it indicates that thumbnailing may be attempted again and may
472 // succeed.
473 //
474 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
475 FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XLARGE string = "thumbnail::is-valid-xlarge"
476 // A key in the "thumbnail" namespace for checking whether the xx-large
477 // thumbnail is outdated.
478 //
479 // This attribute is %TRUE if the x-large thumbnail is up-to-date with the file
480 // it represents, and %FALSE if the file has been modified since the thumbnail
481 // was generated.
482 //
483 // If %G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XXLARGE is %TRUE and this attribute
484 // is %FALSE, it indicates that thumbnailing may be attempted again and may
485 // succeed.
486 //
487 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
488 FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XXLARGE string = "thumbnail::is-valid-xxlarge"
489 // A key in the "thumbnail" namespace for getting the path to the thumbnail
490 // image with the biggest size available.
491 //
492 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
493 FILE_ATTRIBUTE_THUMBNAIL_PATH string = "thumbnail::path"
494 // A key in the "thumbnail" namespace for getting the path to the large
495 // thumbnail image.
496 //
497 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
498 FILE_ATTRIBUTE_THUMBNAIL_PATH_LARGE string = "thumbnail::path-large"
499 // A key in the "thumbnail" namespace for getting the path to the normal
500 // thumbnail image.
501 //
502 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
503 FILE_ATTRIBUTE_THUMBNAIL_PATH_NORMAL string = "thumbnail::path-normal"
504 // A key in the "thumbnail" namespace for getting the path to the x-large
505 // thumbnail image.
506 //
507 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
508 FILE_ATTRIBUTE_THUMBNAIL_PATH_XLARGE string = "thumbnail::path-xlarge"
509 // A key in the "thumbnail" namespace for getting the path to the xx-large
510 // thumbnail image.
511 //
512 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
513 FILE_ATTRIBUTE_THUMBNAIL_PATH_XXLARGE string = "thumbnail::path-xxlarge"
514 // A key in the "time" namespace for getting the time the file was last
515 // accessed.
516 //
517 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64, and
518 // contains the time since the file was last accessed, in seconds since the
519 // UNIX epoch.
520 FILE_ATTRIBUTE_TIME_ACCESS string = "time::access"
521 // A key in the "time" namespace for getting the nanoseconds of the time
522 // the file was last accessed. This should be used in conjunction with
523 // #G_FILE_ATTRIBUTE_TIME_ACCESS. Corresponding #GFileAttributeType is
524 // %G_FILE_ATTRIBUTE_TYPE_UINT32.
525 FILE_ATTRIBUTE_TIME_ACCESS_NSEC string = "time::access-nsec"
526 // A key in the "time" namespace for getting the microseconds of the time
527 // the file was last accessed.
528 //
529 // This should be used in conjunction with %G_FILE_ATTRIBUTE_TIME_ACCESS.
530 //
531 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
532 FILE_ATTRIBUTE_TIME_ACCESS_USEC string = "time::access-usec"
533 // A key in the "time" namespace for getting the time the file was last
534 // changed.
535 //
536 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64,
537 // and contains the time since the file was last changed, in seconds since
538 // the UNIX epoch.
539 //
540 // This corresponds to the traditional UNIX ctime.
541 FILE_ATTRIBUTE_TIME_CHANGED string = "time::changed"
542 // A key in the "time" namespace for getting the nanoseconds of the time
543 // the file was last changed. This should be used in conjunction with
544 // #G_FILE_ATTRIBUTE_TIME_CHANGED. Corresponding #GFileAttributeType is
545 // %G_FILE_ATTRIBUTE_TYPE_UINT32.
546 FILE_ATTRIBUTE_TIME_CHANGED_NSEC string = "time::changed-nsec"
547 // A key in the "time" namespace for getting the microseconds of the time
548 // the file was last changed.
549 //
550 // This should be used in conjunction with %G_FILE_ATTRIBUTE_TIME_CHANGED.
551 //
552 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
553 FILE_ATTRIBUTE_TIME_CHANGED_USEC string = "time::changed-usec"
554 // A key in the "time" namespace for getting the time the file was created.
555 //
556 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64,
557 // and contains the time since the file was created, in seconds since the UNIX
558 // epoch.
559 //
560 // This may correspond to Linux `stx_btime`, FreeBSD `st_birthtim`, NetBSD
561 // `st_birthtime` or NTFS `ctime`.
562 FILE_ATTRIBUTE_TIME_CREATED string = "time::created"
563 // A key in the "time" namespace for getting the nanoseconds of the time
564 // the file was created. This should be used in conjunction with
565 // #G_FILE_ATTRIBUTE_TIME_CREATED. Corresponding #GFileAttributeType is
566 // %G_FILE_ATTRIBUTE_TYPE_UINT32.
567 FILE_ATTRIBUTE_TIME_CREATED_NSEC string = "time::created-nsec"
568 // A key in the "time" namespace for getting the microseconds of the time
569 // the file was created.
570 //
571 // This should be used in conjunction with %G_FILE_ATTRIBUTE_TIME_CREATED.
572 //
573 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
574 FILE_ATTRIBUTE_TIME_CREATED_USEC string = "time::created-usec"
575 // A key in the "time" namespace for getting the time the file was last
576 // modified.
577 //
578 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64, and
579 // contains the time since the file was modified, in seconds since the UNIX
580 // epoch.
581 FILE_ATTRIBUTE_TIME_MODIFIED string = "time::modified"
582 // A key in the "time" namespace for getting the nanoseconds of the time
583 // the file was last modified. This should be used in conjunction with
584 // #G_FILE_ATTRIBUTE_TIME_MODIFIED. Corresponding #GFileAttributeType is
585 // %G_FILE_ATTRIBUTE_TYPE_UINT32.
586 FILE_ATTRIBUTE_TIME_MODIFIED_NSEC string = "time::modified-nsec"
587 // A key in the "time" namespace for getting the microseconds of the time
588 // the file was last modified.
589 //
590 // This should be used in conjunction with %G_FILE_ATTRIBUTE_TIME_MODIFIED.
591 //
592 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
593 FILE_ATTRIBUTE_TIME_MODIFIED_USEC string = "time::modified-usec"
594 // A key in the "trash" namespace for getting the deletion date and time
595 // of a file inside the `trash:///` folder.
596 //
597 // The format of the returned string is `YYYY-MM-DDThh:mm:ss`.
598 //
599 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
600 FILE_ATTRIBUTE_TRASH_DELETION_DATE string = "trash::deletion-date"
601 // A key in the "trash" namespace for getting the number of (toplevel) items
602 // that are present in the `trash:///` folder.
603 //
604 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
605 FILE_ATTRIBUTE_TRASH_ITEM_COUNT string = "trash::item-count"
606 // A key in the "trash" namespace for getting the original path of a file
607 // inside the `trash:///` folder before it was trashed.
608 //
609 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
610 FILE_ATTRIBUTE_TRASH_ORIG_PATH string = "trash::orig-path"
611 // A key in the "unix" namespace for getting the number of blocks allocated
612 // for the file.
613 //
614 // This attribute is only available for UNIX file systems.
615 //
616 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
617 FILE_ATTRIBUTE_UNIX_BLOCKS string = "unix::blocks"
618 // A key in the "unix" namespace for getting the block size for the file
619 // system.
620 //
621 // This attribute is only available for UNIX file systems.
622 //
623 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
624 FILE_ATTRIBUTE_UNIX_BLOCK_SIZE string = "unix::block-size"
625 // A key in the "unix" namespace for getting the device id of the device the
626 // file is located on (see stat() documentation).
627 //
628 // This attribute is only available for UNIX file systems.
629 //
630 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
631 FILE_ATTRIBUTE_UNIX_DEVICE string = "unix::device"
632 // A key in the "unix" namespace for getting the group ID for the file.
633 //
634 // This attribute is only available for UNIX file systems.
635 //
636 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
637 FILE_ATTRIBUTE_UNIX_GID string = "unix::gid"
638 // A key in the "unix" namespace for getting the inode of the file.
639 //
640 // This attribute is only available for UNIX file systems.
641 //
642 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
643 FILE_ATTRIBUTE_UNIX_INODE string = "unix::inode"
644 // A key in the "unix" namespace for checking if the file represents a
645 // UNIX mount point.
646 //
647 // This attribute is %TRUE if the file is a UNIX mount point.
648 //
649 // Since 2.58, `/` is considered to be a mount point.
650 //
651 // This attribute is only available for UNIX file systems.
652 //
653 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
654 FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT string = "unix::is-mountpoint"
655 // A key in the "unix" namespace for getting the mode of the file
656 // (e.g. whether the file is a regular file, symlink, etc).
657 //
658 // See the documentation for `lstat()`: this attribute is equivalent to
659 // the `st_mode` member of `struct stat`, and includes both the file type
660 // and permissions.
661 //
662 // This attribute is only available for UNIX file systems.
663 //
664 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
665 FILE_ATTRIBUTE_UNIX_MODE string = "unix::mode"
666 // A key in the "unix" namespace for getting the number of hard links
667 // for a file.
668 //
669 // See the documentation for `lstat()`.
670 //
671 // This attribute is only available for UNIX file systems.
672 //
673 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
674 FILE_ATTRIBUTE_UNIX_NLINK string = "unix::nlink"
675 // A key in the "unix" namespace for getting the device ID for the file
676 // (if it is a special file).
677 //
678 // See the documentation for `lstat()`.
679 //
680 // This attribute is only available for UNIX file systems.
681 //
682 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
683 FILE_ATTRIBUTE_UNIX_RDEV string = "unix::rdev"
684 // A key in the "unix" namespace for getting the user ID for the file.
685 //
686 // This attribute is only available for UNIX file systems.
687 //
688 // Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
689 FILE_ATTRIBUTE_UNIX_UID string = "unix::uid"
690)
691
692// Stores information about a file system object referenced by a [iface@Gio.File].
693//
694// Functionality for manipulating basic metadata for files. `GFileInfo`
695// implements methods for getting information that all files should
696// contain, and allows for manipulation of extended attributes.
697//
698// See the [file attributes](file-attributes.html) document for more
699// information on how GIO handles file attributes.
700//
701// To obtain a `GFileInfo` for a [iface@Gio.File], use
702// [method@Gio.File.query_info] (or its async variant). To obtain a `GFileInfo`
703// for a file input or output stream, use [method@Gio.FileInputStream.query_info]
704// or [method@Gio.FileOutputStream.query_info] (or their async variants).
705//
706// To change the actual attributes of a file, you should then set the
707// attribute in the `GFileInfo` and call [method@Gio.File.set_attributes_from_info]
708// or [method@Gio.File.set_attributes_async] on a `GFile`.
709//
710// However, not all attributes can be changed in the file. For instance,
711// the actual size of a file cannot be changed via [method@Gio.FileInfo.set_size].
712// You may call [method@Gio.File.query_settable_attributes] and
713// [method@Gio.File.query_writable_namespaces] to discover the settable attributes
714// of a particular file at runtime.
715//
716// The direct accessors, such as [method@Gio.FileInfo.get_name], are slightly more
717// optimized than the generic attribute accessors, such as
718// [method@Gio.FileInfo.get_attribute_byte_string].This optimization will matter
719// only if calling the API in a tight loop.
720//
721// It is an error to call these accessors without specifying their required file
722// attributes when creating the `GFileInfo`. Use
723// [method@Gio.FileInfo.has_attribute] or [method@Gio.FileInfo.list_attributes]
724// to check what attributes are specified for a `GFileInfo`.
725//
726// [struct@Gio.FileAttributeMatcher] allows for searching through a `GFileInfo`
727// for attributes.
728type FileInfo struct {
729 gobject.Object
730}
731
732var xFileInfoGLibType func() types.GType
733
734func FileInfoGLibType() types.GType {
735 return xFileInfoGLibType()
736}
737
738func FileInfoNewFromInternalPtr(ptr uintptr) *FileInfo {
739 cls := &FileInfo{}
740 cls.Ptr = ptr
741 return cls
742}
743
744var xNewFileInfo func() uintptr
745
746// Creates a new file info structure.
747func NewFileInfo() *FileInfo {
748 var cls *FileInfo
749
750 cret := xNewFileInfo()
751
752 if cret == 0 {
753 return nil
754 }
755 cls = &FileInfo{}
756 cls.Ptr = cret
757 return cls
758}
759
760var xFileInfoClearStatus func(uintptr)
761
762// Clears the status information from @info.
763func (x *FileInfo) ClearStatus() {
764
765 xFileInfoClearStatus(x.GoPointer())
766
767}
768
769var xFileInfoCopyInto func(uintptr, uintptr)
770
771// First clears all of the [GFileAttribute](file-attributes.html#file-attributes) of
772// @dest_info, and then copies all of the file attributes from @src_info to @dest_info.
773func (x *FileInfo) CopyInto(DestInfoVar *FileInfo) {
774
775 xFileInfoCopyInto(x.GoPointer(), DestInfoVar.GoPointer())
776
777}
778
779var xFileInfoDup func(uintptr) uintptr
780
781// Duplicates a file info structure.
782func (x *FileInfo) Dup() *FileInfo {
783 var cls *FileInfo
784
785 cret := xFileInfoDup(x.GoPointer())
786
787 if cret == 0 {
788 return nil
789 }
790 cls = &FileInfo{}
791 cls.Ptr = cret
792 return cls
793}
794
795var xFileInfoGetAccessDateTime func(uintptr) *glib.DateTime
796
797// Gets the access time of the current @info and returns it as a
798// #GDateTime.
799//
800// It is an error to call this if the #GFileInfo does not contain
801// %G_FILE_ATTRIBUTE_TIME_ACCESS. If %G_FILE_ATTRIBUTE_TIME_ACCESS_USEC is
802// provided, the resulting #GDateTime will additionally have microsecond
803// precision.
804//
805// If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC must
806// be queried separately using g_file_info_get_attribute_uint32().
807func (x *FileInfo) GetAccessDateTime() *glib.DateTime {
808
809 cret := xFileInfoGetAccessDateTime(x.GoPointer())
810 return cret
811}
812
813var xFileInfoGetAttributeAsString func(uintptr, string) string
814
815// Gets the value of an attribute, formatted as a human readable string.
816//
817// This escapes things as needed to make the string valid UTF-8 and readable by
818// humans. It’s not meant to be a machine readable or reversible escaping
819// format.
820//
821// To format file name attributes of type
822// [enum@Gio.FileAttributeType.BYTE_STRING] for output as UTF-8, use
823// [func@GLib.filename_to_utf8] instead:
824// ```c
825// const char *trash_orig_path_byte_string;
826// g_autofree char *trash_orig_path_utf8 = NULL;
827//
828// trash_orig_path_byte_string = g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_TRASH_ORIG_PATH);
829// trash_orig_path_utf8 = g_filename_to_utf8 (trash_orig_path_byte_string, -1, NULL, NULL, NULL);
830// if (trash_orig_path_utf8 != NULL)
831//
832// g_message ("Some larger UTF-8 string with filename embedded as %s", trash_orig_path_utf8);
833//
834// ```
835func (x *FileInfo) GetAttributeAsString(AttributeVar string) string {
836
837 cret := xFileInfoGetAttributeAsString(x.GoPointer(), AttributeVar)
838 return cret
839}
840
841var xFileInfoGetAttributeBoolean func(uintptr, string) bool
842
843// Gets the value of a boolean attribute. If the attribute does not
844// contain a boolean value, %FALSE will be returned.
845func (x *FileInfo) GetAttributeBoolean(AttributeVar string) bool {
846
847 cret := xFileInfoGetAttributeBoolean(x.GoPointer(), AttributeVar)
848 return cret
849}
850
851var xFileInfoGetAttributeByteString func(uintptr, string) string
852
853// Gets the value of a byte string attribute. If the attribute does
854// not contain a byte string, %NULL will be returned.
855func (x *FileInfo) GetAttributeByteString(AttributeVar string) string {
856
857 cret := xFileInfoGetAttributeByteString(x.GoPointer(), AttributeVar)
858 return cret
859}
860
861var xFileInfoGetAttributeData func(uintptr, string, *FileAttributeType, *uintptr, *FileAttributeStatus) bool
862
863// Gets the attribute type, value and status for an attribute key.
864func (x *FileInfo) GetAttributeData(AttributeVar string, TypeVar *FileAttributeType, ValuePpVar *uintptr, StatusVar *FileAttributeStatus) bool {
865
866 cret := xFileInfoGetAttributeData(x.GoPointer(), AttributeVar, TypeVar, ValuePpVar, StatusVar)
867 return cret
868}
869
870var xFileInfoGetAttributeFilePath func(uintptr, string) string
871
872// Gets the value of a byte string attribute as a file path.
873//
874// If the attribute does not contain a byte string, `NULL` will be returned.
875//
876// This function is meant to be used by language bindings that have specific
877// handling for Unix paths.
878func (x *FileInfo) GetAttributeFilePath(AttributeVar string) string {
879
880 cret := xFileInfoGetAttributeFilePath(x.GoPointer(), AttributeVar)
881 return cret
882}
883
884var xFileInfoGetAttributeInt32 func(uintptr, string) int32
885
886// Gets a signed 32-bit integer contained within the attribute. If the
887// attribute does not contain a signed 32-bit integer, or is invalid,
888// 0 will be returned.
889func (x *FileInfo) GetAttributeInt32(AttributeVar string) int32 {
890
891 cret := xFileInfoGetAttributeInt32(x.GoPointer(), AttributeVar)
892 return cret
893}
894
895var xFileInfoGetAttributeInt64 func(uintptr, string) int64
896
897// Gets a signed 64-bit integer contained within the attribute. If the
898// attribute does not contain a signed 64-bit integer, or is invalid,
899// 0 will be returned.
900func (x *FileInfo) GetAttributeInt64(AttributeVar string) int64 {
901
902 cret := xFileInfoGetAttributeInt64(x.GoPointer(), AttributeVar)
903 return cret
904}
905
906var xFileInfoGetAttributeObject func(uintptr, string) uintptr
907
908// Gets the value of a #GObject attribute. If the attribute does
909// not contain a #GObject, %NULL will be returned.
910func (x *FileInfo) GetAttributeObject(AttributeVar string) *gobject.Object {
911 var cls *gobject.Object
912
913 cret := xFileInfoGetAttributeObject(x.GoPointer(), AttributeVar)
914
915 if cret == 0 {
916 return nil
917 }
918 gobject.IncreaseRef(cret)
919 cls = &gobject.Object{}
920 cls.Ptr = cret
921 return cls
922}
923
924var xFileInfoGetAttributeStatus func(uintptr, string) FileAttributeStatus
925
926// Gets the attribute status for an attribute key.
927func (x *FileInfo) GetAttributeStatus(AttributeVar string) FileAttributeStatus {
928
929 cret := xFileInfoGetAttributeStatus(x.GoPointer(), AttributeVar)
930 return cret
931}
932
933var xFileInfoGetAttributeString func(uintptr, string) string
934
935// Gets the value of a string attribute. If the attribute does
936// not contain a string, %NULL will be returned.
937func (x *FileInfo) GetAttributeString(AttributeVar string) string {
938
939 cret := xFileInfoGetAttributeString(x.GoPointer(), AttributeVar)
940 return cret
941}
942
943var xFileInfoGetAttributeStringv func(uintptr, string) []string
944
945// Gets the value of a stringv attribute. If the attribute does
946// not contain a stringv, %NULL will be returned.
947func (x *FileInfo) GetAttributeStringv(AttributeVar string) []string {
948
949 cret := xFileInfoGetAttributeStringv(x.GoPointer(), AttributeVar)
950 return cret
951}
952
953var xFileInfoGetAttributeType func(uintptr, string) FileAttributeType
954
955// Gets the attribute type for an attribute key.
956func (x *FileInfo) GetAttributeType(AttributeVar string) FileAttributeType {
957
958 cret := xFileInfoGetAttributeType(x.GoPointer(), AttributeVar)
959 return cret
960}
961
962var xFileInfoGetAttributeUint32 func(uintptr, string) uint32
963
964// Gets an unsigned 32-bit integer contained within the attribute. If the
965// attribute does not contain an unsigned 32-bit integer, or is invalid,
966// 0 will be returned.
967func (x *FileInfo) GetAttributeUint32(AttributeVar string) uint32 {
968
969 cret := xFileInfoGetAttributeUint32(x.GoPointer(), AttributeVar)
970 return cret
971}
972
973var xFileInfoGetAttributeUint64 func(uintptr, string) uint64
974
975// Gets a unsigned 64-bit integer contained within the attribute. If the
976// attribute does not contain an unsigned 64-bit integer, or is invalid,
977// 0 will be returned.
978func (x *FileInfo) GetAttributeUint64(AttributeVar string) uint64 {
979
980 cret := xFileInfoGetAttributeUint64(x.GoPointer(), AttributeVar)
981 return cret
982}
983
984var xFileInfoGetContentType func(uintptr) string
985
986// Gets the file's content type.
987//
988// It is an error to call this if the #GFileInfo does not contain
989// %G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE.
990func (x *FileInfo) GetContentType() string {
991
992 cret := xFileInfoGetContentType(x.GoPointer())
993 return cret
994}
995
996var xFileInfoGetCreationDateTime func(uintptr) *glib.DateTime
997
998// Gets the creation time of the current @info and returns it as a
999// #GDateTime.
1000//
1001// It is an error to call this if the #GFileInfo does not contain
1002// %G_FILE_ATTRIBUTE_TIME_CREATED. If %G_FILE_ATTRIBUTE_TIME_CREATED_USEC is
1003// provided, the resulting #GDateTime will additionally have microsecond
1004// precision.
1005//
1006// If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_CREATED_NSEC must
1007// be queried separately using g_file_info_get_attribute_uint32().
1008func (x *FileInfo) GetCreationDateTime() *glib.DateTime {
1009
1010 cret := xFileInfoGetCreationDateTime(x.GoPointer())
1011 return cret
1012}
1013
1014var xFileInfoGetDeletionDate func(uintptr) *glib.DateTime
1015
1016// Returns the #GDateTime representing the deletion date of the file, as
1017// available in %G_FILE_ATTRIBUTE_TRASH_DELETION_DATE. If the
1018// %G_FILE_ATTRIBUTE_TRASH_DELETION_DATE attribute is unset, %NULL is returned.
1019func (x *FileInfo) GetDeletionDate() *glib.DateTime {
1020
1021 cret := xFileInfoGetDeletionDate(x.GoPointer())
1022 return cret
1023}
1024
1025var xFileInfoGetDisplayName func(uintptr) string
1026
1027// Gets a display name for a file. This is guaranteed to always be set.
1028//
1029// It is an error to call this if the #GFileInfo does not contain
1030// %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME.
1031func (x *FileInfo) GetDisplayName() string {
1032
1033 cret := xFileInfoGetDisplayName(x.GoPointer())
1034 return cret
1035}
1036
1037var xFileInfoGetEditName func(uintptr) string
1038
1039// Gets the edit name for a file.
1040//
1041// It is an error to call this if the #GFileInfo does not contain
1042// %G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME.
1043func (x *FileInfo) GetEditName() string {
1044
1045 cret := xFileInfoGetEditName(x.GoPointer())
1046 return cret
1047}
1048
1049var xFileInfoGetEtag func(uintptr) string
1050
1051// Gets the [entity tag][iface@Gio.File#entity-tags] for a given
1052// #GFileInfo. See %G_FILE_ATTRIBUTE_ETAG_VALUE.
1053//
1054// It is an error to call this if the #GFileInfo does not contain
1055// %G_FILE_ATTRIBUTE_ETAG_VALUE.
1056func (x *FileInfo) GetEtag() string {
1057
1058 cret := xFileInfoGetEtag(x.GoPointer())
1059 return cret
1060}
1061
1062var xFileInfoGetFileType func(uintptr) FileType
1063
1064// Gets a file's type (whether it is a regular file, symlink, etc).
1065// This is different from the file's content type, see g_file_info_get_content_type().
1066//
1067// It is an error to call this if the #GFileInfo does not contain
1068// %G_FILE_ATTRIBUTE_STANDARD_TYPE.
1069func (x *FileInfo) GetFileType() FileType {
1070
1071 cret := xFileInfoGetFileType(x.GoPointer())
1072 return cret
1073}
1074
1075var xFileInfoGetIcon func(uintptr) uintptr
1076
1077// Gets the icon for a file.
1078//
1079// It is an error to call this if the #GFileInfo does not contain
1080// %G_FILE_ATTRIBUTE_STANDARD_ICON.
1081func (x *FileInfo) GetIcon() *IconBase {
1082 var cls *IconBase
1083
1084 cret := xFileInfoGetIcon(x.GoPointer())
1085
1086 if cret == 0 {
1087 return nil
1088 }
1089 gobject.IncreaseRef(cret)
1090 cls = &IconBase{}
1091 cls.Ptr = cret
1092 return cls
1093}
1094
1095var xFileInfoGetIsBackup func(uintptr) bool
1096
1097// Checks if a file is a backup file.
1098//
1099// It is an error to call this if the #GFileInfo does not contain
1100// %G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP.
1101func (x *FileInfo) GetIsBackup() bool {
1102
1103 cret := xFileInfoGetIsBackup(x.GoPointer())
1104 return cret
1105}
1106
1107var xFileInfoGetIsHidden func(uintptr) bool
1108
1109// Checks if a file is hidden.
1110//
1111// It is an error to call this if the #GFileInfo does not contain
1112// %G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN.
1113func (x *FileInfo) GetIsHidden() bool {
1114
1115 cret := xFileInfoGetIsHidden(x.GoPointer())
1116 return cret
1117}
1118
1119var xFileInfoGetIsSymlink func(uintptr) bool
1120
1121// Checks if a file is a symlink.
1122//
1123// It is an error to call this if the #GFileInfo does not contain
1124// %G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK.
1125func (x *FileInfo) GetIsSymlink() bool {
1126
1127 cret := xFileInfoGetIsSymlink(x.GoPointer())
1128 return cret
1129}
1130
1131var xFileInfoGetModificationDateTime func(uintptr) *glib.DateTime
1132
1133// Gets the modification time of the current @info and returns it as a
1134// #GDateTime.
1135//
1136// It is an error to call this if the #GFileInfo does not contain
1137// %G_FILE_ATTRIBUTE_TIME_MODIFIED. If %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC is
1138// provided, the resulting #GDateTime will additionally have microsecond
1139// precision.
1140//
1141// If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC must
1142// be queried separately using g_file_info_get_attribute_uint32().
1143func (x *FileInfo) GetModificationDateTime() *glib.DateTime {
1144
1145 cret := xFileInfoGetModificationDateTime(x.GoPointer())
1146 return cret
1147}
1148
1149var xFileInfoGetModificationTime func(uintptr, *glib.TimeVal)
1150
1151// Gets the modification time of the current @info and sets it
1152// in @result.
1153//
1154// It is an error to call this if the #GFileInfo does not contain
1155// %G_FILE_ATTRIBUTE_TIME_MODIFIED. If %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC is
1156// provided it will be used too.
1157func (x *FileInfo) GetModificationTime(ResultVar *glib.TimeVal) {
1158
1159 xFileInfoGetModificationTime(x.GoPointer(), ResultVar)
1160
1161}
1162
1163var xFileInfoGetName func(uintptr) string
1164
1165// Gets the name for a file. This is guaranteed to always be set.
1166//
1167// It is an error to call this if the #GFileInfo does not contain
1168// %G_FILE_ATTRIBUTE_STANDARD_NAME.
1169func (x *FileInfo) GetName() string {
1170
1171 cret := xFileInfoGetName(x.GoPointer())
1172 return cret
1173}
1174
1175var xFileInfoGetSize func(uintptr) int64
1176
1177// Gets the file's size (in bytes). The size is retrieved through the value of
1178// the %G_FILE_ATTRIBUTE_STANDARD_SIZE attribute and is converted
1179// from #guint64 to #goffset before returning the result.
1180//
1181// It is an error to call this if the #GFileInfo does not contain
1182// %G_FILE_ATTRIBUTE_STANDARD_SIZE.
1183func (x *FileInfo) GetSize() int64 {
1184
1185 cret := xFileInfoGetSize(x.GoPointer())
1186 return cret
1187}
1188
1189var xFileInfoGetSortOrder func(uintptr) int32
1190
1191// Gets the value of the sort_order attribute from the #GFileInfo.
1192// See %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
1193//
1194// It is an error to call this if the #GFileInfo does not contain
1195// %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
1196func (x *FileInfo) GetSortOrder() int32 {
1197
1198 cret := xFileInfoGetSortOrder(x.GoPointer())
1199 return cret
1200}
1201
1202var xFileInfoGetSymbolicIcon func(uintptr) uintptr
1203
1204// Gets the symbolic icon for a file.
1205//
1206// It is an error to call this if the #GFileInfo does not contain
1207// %G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON.
1208func (x *FileInfo) GetSymbolicIcon() *IconBase {
1209 var cls *IconBase
1210
1211 cret := xFileInfoGetSymbolicIcon(x.GoPointer())
1212
1213 if cret == 0 {
1214 return nil
1215 }
1216 gobject.IncreaseRef(cret)
1217 cls = &IconBase{}
1218 cls.Ptr = cret
1219 return cls
1220}
1221
1222var xFileInfoGetSymlinkTarget func(uintptr) string
1223
1224// Gets the symlink target for a given #GFileInfo.
1225//
1226// It is an error to call this if the #GFileInfo does not contain
1227// %G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET.
1228func (x *FileInfo) GetSymlinkTarget() string {
1229
1230 cret := xFileInfoGetSymlinkTarget(x.GoPointer())
1231 return cret
1232}
1233
1234var xFileInfoHasAttribute func(uintptr, string) bool
1235
1236// Checks if a file info structure has an attribute named @attribute.
1237func (x *FileInfo) HasAttribute(AttributeVar string) bool {
1238
1239 cret := xFileInfoHasAttribute(x.GoPointer(), AttributeVar)
1240 return cret
1241}
1242
1243var xFileInfoHasNamespace func(uintptr, string) bool
1244
1245// Checks if a file info structure has an attribute in the
1246// specified @name_space.
1247func (x *FileInfo) HasNamespace(NameSpaceVar string) bool {
1248
1249 cret := xFileInfoHasNamespace(x.GoPointer(), NameSpaceVar)
1250 return cret
1251}
1252
1253var xFileInfoListAttributes func(uintptr, uintptr) []string
1254
1255// Lists the file info structure's attributes.
1256func (x *FileInfo) ListAttributes(NameSpaceVar *string) []string {
1257
1258 NameSpaceVarPtr := core.GStrdupNullable(NameSpaceVar)
1259 defer core.GFreeNullable(NameSpaceVarPtr)
1260
1261 cret := xFileInfoListAttributes(x.GoPointer(), NameSpaceVarPtr)
1262 return cret
1263}
1264
1265var xFileInfoRemoveAttribute func(uintptr, string)
1266
1267// Removes all cases of @attribute from @info if it exists.
1268func (x *FileInfo) RemoveAttribute(AttributeVar string) {
1269
1270 xFileInfoRemoveAttribute(x.GoPointer(), AttributeVar)
1271
1272}
1273
1274var xFileInfoSetAccessDateTime func(uintptr, *glib.DateTime)
1275
1276// Sets the %G_FILE_ATTRIBUTE_TIME_ACCESS and
1277// %G_FILE_ATTRIBUTE_TIME_ACCESS_USEC attributes in the file info to the
1278// given date/time value.
1279//
1280// %G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC will be cleared.
1281func (x *FileInfo) SetAccessDateTime(AtimeVar *glib.DateTime) {
1282
1283 xFileInfoSetAccessDateTime(x.GoPointer(), AtimeVar)
1284
1285}
1286
1287var xFileInfoSetAttribute func(uintptr, string, FileAttributeType, uintptr)
1288
1289// Sets the @attribute to contain the given value, if possible. To unset the
1290// attribute, use %G_FILE_ATTRIBUTE_TYPE_INVALID for @type.
1291func (x *FileInfo) SetAttribute(AttributeVar string, TypeVar FileAttributeType, ValuePVar uintptr) {
1292
1293 xFileInfoSetAttribute(x.GoPointer(), AttributeVar, TypeVar, ValuePVar)
1294
1295}
1296
1297var xFileInfoSetAttributeBoolean func(uintptr, string, bool)
1298
1299// Sets the @attribute to contain the given @attr_value,
1300// if possible.
1301func (x *FileInfo) SetAttributeBoolean(AttributeVar string, AttrValueVar bool) {
1302
1303 xFileInfoSetAttributeBoolean(x.GoPointer(), AttributeVar, AttrValueVar)
1304
1305}
1306
1307var xFileInfoSetAttributeByteString func(uintptr, string, string)
1308
1309// Sets the @attribute to contain the given @attr_value,
1310// if possible.
1311func (x *FileInfo) SetAttributeByteString(AttributeVar string, AttrValueVar string) {
1312
1313 xFileInfoSetAttributeByteString(x.GoPointer(), AttributeVar, AttrValueVar)
1314
1315}
1316
1317var xFileInfoSetAttributeFilePath func(uintptr, string, string)
1318
1319// Sets the @attribute to contain the given @attr_value,
1320// if possible.
1321//
1322// This function is meant to be used by language bindings that have specific
1323// handling for Unix paths.
1324func (x *FileInfo) SetAttributeFilePath(AttributeVar string, AttrValueVar string) {
1325
1326 xFileInfoSetAttributeFilePath(x.GoPointer(), AttributeVar, AttrValueVar)
1327
1328}
1329
1330var xFileInfoSetAttributeInt32 func(uintptr, string, int32)
1331
1332// Sets the @attribute to contain the given @attr_value,
1333// if possible.
1334func (x *FileInfo) SetAttributeInt32(AttributeVar string, AttrValueVar int32) {
1335
1336 xFileInfoSetAttributeInt32(x.GoPointer(), AttributeVar, AttrValueVar)
1337
1338}
1339
1340var xFileInfoSetAttributeInt64 func(uintptr, string, int64)
1341
1342// Sets the @attribute to contain the given @attr_value,
1343// if possible.
1344func (x *FileInfo) SetAttributeInt64(AttributeVar string, AttrValueVar int64) {
1345
1346 xFileInfoSetAttributeInt64(x.GoPointer(), AttributeVar, AttrValueVar)
1347
1348}
1349
1350var xFileInfoSetAttributeMask func(uintptr, *FileAttributeMatcher)
1351
1352// Sets @mask on @info to match specific attribute types.
1353func (x *FileInfo) SetAttributeMask(MaskVar *FileAttributeMatcher) {
1354
1355 xFileInfoSetAttributeMask(x.GoPointer(), MaskVar)
1356
1357}
1358
1359var xFileInfoSetAttributeObject func(uintptr, string, uintptr)
1360
1361// Sets the @attribute to contain the given @attr_value,
1362// if possible.
1363func (x *FileInfo) SetAttributeObject(AttributeVar string, AttrValueVar *gobject.Object) {
1364
1365 xFileInfoSetAttributeObject(x.GoPointer(), AttributeVar, AttrValueVar.GoPointer())
1366
1367}
1368
1369var xFileInfoSetAttributeStatus func(uintptr, string, FileAttributeStatus) bool
1370
1371// Sets the attribute status for an attribute key. This is only
1372// needed by external code that implement g_file_set_attributes_from_info()
1373// or similar functions.
1374//
1375// The attribute must exist in @info for this to work. Otherwise %FALSE
1376// is returned and @info is unchanged.
1377func (x *FileInfo) SetAttributeStatus(AttributeVar string, StatusVar FileAttributeStatus) bool {
1378
1379 cret := xFileInfoSetAttributeStatus(x.GoPointer(), AttributeVar, StatusVar)
1380 return cret
1381}
1382
1383var xFileInfoSetAttributeString func(uintptr, string, string)
1384
1385// Sets the @attribute to contain the given @attr_value,
1386// if possible.
1387func (x *FileInfo) SetAttributeString(AttributeVar string, AttrValueVar string) {
1388
1389 xFileInfoSetAttributeString(x.GoPointer(), AttributeVar, AttrValueVar)
1390
1391}
1392
1393var xFileInfoSetAttributeStringv func(uintptr, string, []string)
1394
1395// Sets the @attribute to contain the given @attr_value,
1396// if possible.
1397//
1398// Sinze: 2.22
1399func (x *FileInfo) SetAttributeStringv(AttributeVar string, AttrValueVar []string) {
1400
1401 xFileInfoSetAttributeStringv(x.GoPointer(), AttributeVar, AttrValueVar)
1402
1403}
1404
1405var xFileInfoSetAttributeUint32 func(uintptr, string, uint32)
1406
1407// Sets the @attribute to contain the given @attr_value,
1408// if possible.
1409func (x *FileInfo) SetAttributeUint32(AttributeVar string, AttrValueVar uint32) {
1410
1411 xFileInfoSetAttributeUint32(x.GoPointer(), AttributeVar, AttrValueVar)
1412
1413}
1414
1415var xFileInfoSetAttributeUint64 func(uintptr, string, uint64)
1416
1417// Sets the @attribute to contain the given @attr_value,
1418// if possible.
1419func (x *FileInfo) SetAttributeUint64(AttributeVar string, AttrValueVar uint64) {
1420
1421 xFileInfoSetAttributeUint64(x.GoPointer(), AttributeVar, AttrValueVar)
1422
1423}
1424
1425var xFileInfoSetContentType func(uintptr, string)
1426
1427// Sets the content type attribute for a given #GFileInfo.
1428// See %G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE.
1429func (x *FileInfo) SetContentType(ContentTypeVar string) {
1430
1431 xFileInfoSetContentType(x.GoPointer(), ContentTypeVar)
1432
1433}
1434
1435var xFileInfoSetCreationDateTime func(uintptr, *glib.DateTime)
1436
1437// Sets the %G_FILE_ATTRIBUTE_TIME_CREATED and
1438// %G_FILE_ATTRIBUTE_TIME_CREATED_USEC attributes in the file info to the
1439// given date/time value.
1440//
1441// %G_FILE_ATTRIBUTE_TIME_CREATED_NSEC will be cleared.
1442func (x *FileInfo) SetCreationDateTime(CreationTimeVar *glib.DateTime) {
1443
1444 xFileInfoSetCreationDateTime(x.GoPointer(), CreationTimeVar)
1445
1446}
1447
1448var xFileInfoSetDisplayName func(uintptr, string)
1449
1450// Sets the display name for the current #GFileInfo.
1451// See %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME.
1452func (x *FileInfo) SetDisplayName(DisplayNameVar string) {
1453
1454 xFileInfoSetDisplayName(x.GoPointer(), DisplayNameVar)
1455
1456}
1457
1458var xFileInfoSetEditName func(uintptr, string)
1459
1460// Sets the edit name for the current file.
1461// See %G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME.
1462func (x *FileInfo) SetEditName(EditNameVar string) {
1463
1464 xFileInfoSetEditName(x.GoPointer(), EditNameVar)
1465
1466}
1467
1468var xFileInfoSetFileType func(uintptr, FileType)
1469
1470// Sets the file type in a #GFileInfo to @type.
1471// See %G_FILE_ATTRIBUTE_STANDARD_TYPE.
1472func (x *FileInfo) SetFileType(TypeVar FileType) {
1473
1474 xFileInfoSetFileType(x.GoPointer(), TypeVar)
1475
1476}
1477
1478var xFileInfoSetIcon func(uintptr, uintptr)
1479
1480// Sets the icon for a given #GFileInfo.
1481// See %G_FILE_ATTRIBUTE_STANDARD_ICON.
1482func (x *FileInfo) SetIcon(IconVar Icon) {
1483
1484 xFileInfoSetIcon(x.GoPointer(), IconVar.GoPointer())
1485
1486}
1487
1488var xFileInfoSetIsHidden func(uintptr, bool)
1489
1490// Sets the "is_hidden" attribute in a #GFileInfo according to @is_hidden.
1491// See %G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN.
1492func (x *FileInfo) SetIsHidden(IsHiddenVar bool) {
1493
1494 xFileInfoSetIsHidden(x.GoPointer(), IsHiddenVar)
1495
1496}
1497
1498var xFileInfoSetIsSymlink func(uintptr, bool)
1499
1500// Sets the "is_symlink" attribute in a #GFileInfo according to @is_symlink.
1501// See %G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK.
1502func (x *FileInfo) SetIsSymlink(IsSymlinkVar bool) {
1503
1504 xFileInfoSetIsSymlink(x.GoPointer(), IsSymlinkVar)
1505
1506}
1507
1508var xFileInfoSetModificationDateTime func(uintptr, *glib.DateTime)
1509
1510// Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED and
1511// %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the
1512// given date/time value.
1513//
1514// %G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC will be cleared.
1515func (x *FileInfo) SetModificationDateTime(MtimeVar *glib.DateTime) {
1516
1517 xFileInfoSetModificationDateTime(x.GoPointer(), MtimeVar)
1518
1519}
1520
1521var xFileInfoSetModificationTime func(uintptr, *glib.TimeVal)
1522
1523// Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED and
1524// %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the
1525// given time value.
1526//
1527// %G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC will be cleared.
1528func (x *FileInfo) SetModificationTime(MtimeVar *glib.TimeVal) {
1529
1530 xFileInfoSetModificationTime(x.GoPointer(), MtimeVar)
1531
1532}
1533
1534var xFileInfoSetName func(uintptr, string)
1535
1536// Sets the name attribute for the current #GFileInfo.
1537// See %G_FILE_ATTRIBUTE_STANDARD_NAME.
1538func (x *FileInfo) SetName(NameVar string) {
1539
1540 xFileInfoSetName(x.GoPointer(), NameVar)
1541
1542}
1543
1544var xFileInfoSetSize func(uintptr, int64)
1545
1546// Sets the %G_FILE_ATTRIBUTE_STANDARD_SIZE attribute in the file info
1547// to the given size.
1548func (x *FileInfo) SetSize(SizeVar int64) {
1549
1550 xFileInfoSetSize(x.GoPointer(), SizeVar)
1551
1552}
1553
1554var xFileInfoSetSortOrder func(uintptr, int32)
1555
1556// Sets the sort order attribute in the file info structure. See
1557// %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
1558func (x *FileInfo) SetSortOrder(SortOrderVar int32) {
1559
1560 xFileInfoSetSortOrder(x.GoPointer(), SortOrderVar)
1561
1562}
1563
1564var xFileInfoSetSymbolicIcon func(uintptr, uintptr)
1565
1566// Sets the symbolic icon for a given #GFileInfo.
1567// See %G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON.
1568func (x *FileInfo) SetSymbolicIcon(IconVar Icon) {
1569
1570 xFileInfoSetSymbolicIcon(x.GoPointer(), IconVar.GoPointer())
1571
1572}
1573
1574var xFileInfoSetSymlinkTarget func(uintptr, string)
1575
1576// Sets the %G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET attribute in the file info
1577// to the given symlink target.
1578func (x *FileInfo) SetSymlinkTarget(SymlinkTargetVar string) {
1579
1580 xFileInfoSetSymlinkTarget(x.GoPointer(), SymlinkTargetVar)
1581
1582}
1583
1584var xFileInfoUnsetAttributeMask func(uintptr)
1585
1586// Unsets a mask set by g_file_info_set_attribute_mask(), if one
1587// is set.
1588func (x *FileInfo) UnsetAttributeMask() {
1589
1590 xFileInfoUnsetAttributeMask(x.GoPointer())
1591
1592}
1593
1594func (c *FileInfo) GoPointer() uintptr {
1595 if c == nil {
1596 return 0
1597 }
1598 return c.Ptr
1599}
1600
1601func (c *FileInfo) SetGoPointer(ptr uintptr) {
1602 c.Ptr = ptr
1603}
1604
1605func init() {
1606 core.SetPackageName("GIO", "gio-2.0")
1607 core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0"})
1608 var libs []uintptr
1609 for _, libPath := range core.GetPaths("GIO") {
1610 lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
1611 if err != nil {
1612 panic(err)
1613 }
1614 libs = append(libs, lib)
1615 }
1616
1617 core.PuregoSafeRegister(&xFileInfoGLibType, libs, "g_file_info_get_type")
1618
1619 core.PuregoSafeRegister(&xNewFileInfo, libs, "g_file_info_new")
1620
1621 core.PuregoSafeRegister(&xFileInfoClearStatus, libs, "g_file_info_clear_status")
1622 core.PuregoSafeRegister(&xFileInfoCopyInto, libs, "g_file_info_copy_into")
1623 core.PuregoSafeRegister(&xFileInfoDup, libs, "g_file_info_dup")
1624 core.PuregoSafeRegister(&xFileInfoGetAccessDateTime, libs, "g_file_info_get_access_date_time")
1625 core.PuregoSafeRegister(&xFileInfoGetAttributeAsString, libs, "g_file_info_get_attribute_as_string")
1626 core.PuregoSafeRegister(&xFileInfoGetAttributeBoolean, libs, "g_file_info_get_attribute_boolean")
1627 core.PuregoSafeRegister(&xFileInfoGetAttributeByteString, libs, "g_file_info_get_attribute_byte_string")
1628 core.PuregoSafeRegister(&xFileInfoGetAttributeData, libs, "g_file_info_get_attribute_data")
1629 core.PuregoSafeRegister(&xFileInfoGetAttributeFilePath, libs, "g_file_info_get_attribute_file_path")
1630 core.PuregoSafeRegister(&xFileInfoGetAttributeInt32, libs, "g_file_info_get_attribute_int32")
1631 core.PuregoSafeRegister(&xFileInfoGetAttributeInt64, libs, "g_file_info_get_attribute_int64")
1632 core.PuregoSafeRegister(&xFileInfoGetAttributeObject, libs, "g_file_info_get_attribute_object")
1633 core.PuregoSafeRegister(&xFileInfoGetAttributeStatus, libs, "g_file_info_get_attribute_status")
1634 core.PuregoSafeRegister(&xFileInfoGetAttributeString, libs, "g_file_info_get_attribute_string")
1635 core.PuregoSafeRegister(&xFileInfoGetAttributeStringv, libs, "g_file_info_get_attribute_stringv")
1636 core.PuregoSafeRegister(&xFileInfoGetAttributeType, libs, "g_file_info_get_attribute_type")
1637 core.PuregoSafeRegister(&xFileInfoGetAttributeUint32, libs, "g_file_info_get_attribute_uint32")
1638 core.PuregoSafeRegister(&xFileInfoGetAttributeUint64, libs, "g_file_info_get_attribute_uint64")
1639 core.PuregoSafeRegister(&xFileInfoGetContentType, libs, "g_file_info_get_content_type")
1640 core.PuregoSafeRegister(&xFileInfoGetCreationDateTime, libs, "g_file_info_get_creation_date_time")
1641 core.PuregoSafeRegister(&xFileInfoGetDeletionDate, libs, "g_file_info_get_deletion_date")
1642 core.PuregoSafeRegister(&xFileInfoGetDisplayName, libs, "g_file_info_get_display_name")
1643 core.PuregoSafeRegister(&xFileInfoGetEditName, libs, "g_file_info_get_edit_name")
1644 core.PuregoSafeRegister(&xFileInfoGetEtag, libs, "g_file_info_get_etag")
1645 core.PuregoSafeRegister(&xFileInfoGetFileType, libs, "g_file_info_get_file_type")
1646 core.PuregoSafeRegister(&xFileInfoGetIcon, libs, "g_file_info_get_icon")
1647 core.PuregoSafeRegister(&xFileInfoGetIsBackup, libs, "g_file_info_get_is_backup")
1648 core.PuregoSafeRegister(&xFileInfoGetIsHidden, libs, "g_file_info_get_is_hidden")
1649 core.PuregoSafeRegister(&xFileInfoGetIsSymlink, libs, "g_file_info_get_is_symlink")
1650 core.PuregoSafeRegister(&xFileInfoGetModificationDateTime, libs, "g_file_info_get_modification_date_time")
1651 core.PuregoSafeRegister(&xFileInfoGetModificationTime, libs, "g_file_info_get_modification_time")
1652 core.PuregoSafeRegister(&xFileInfoGetName, libs, "g_file_info_get_name")
1653 core.PuregoSafeRegister(&xFileInfoGetSize, libs, "g_file_info_get_size")
1654 core.PuregoSafeRegister(&xFileInfoGetSortOrder, libs, "g_file_info_get_sort_order")
1655 core.PuregoSafeRegister(&xFileInfoGetSymbolicIcon, libs, "g_file_info_get_symbolic_icon")
1656 core.PuregoSafeRegister(&xFileInfoGetSymlinkTarget, libs, "g_file_info_get_symlink_target")
1657 core.PuregoSafeRegister(&xFileInfoHasAttribute, libs, "g_file_info_has_attribute")
1658 core.PuregoSafeRegister(&xFileInfoHasNamespace, libs, "g_file_info_has_namespace")
1659 core.PuregoSafeRegister(&xFileInfoListAttributes, libs, "g_file_info_list_attributes")
1660 core.PuregoSafeRegister(&xFileInfoRemoveAttribute, libs, "g_file_info_remove_attribute")
1661 core.PuregoSafeRegister(&xFileInfoSetAccessDateTime, libs, "g_file_info_set_access_date_time")
1662 core.PuregoSafeRegister(&xFileInfoSetAttribute, libs, "g_file_info_set_attribute")
1663 core.PuregoSafeRegister(&xFileInfoSetAttributeBoolean, libs, "g_file_info_set_attribute_boolean")
1664 core.PuregoSafeRegister(&xFileInfoSetAttributeByteString, libs, "g_file_info_set_attribute_byte_string")
1665 core.PuregoSafeRegister(&xFileInfoSetAttributeFilePath, libs, "g_file_info_set_attribute_file_path")
1666 core.PuregoSafeRegister(&xFileInfoSetAttributeInt32, libs, "g_file_info_set_attribute_int32")
1667 core.PuregoSafeRegister(&xFileInfoSetAttributeInt64, libs, "g_file_info_set_attribute_int64")
1668 core.PuregoSafeRegister(&xFileInfoSetAttributeMask, libs, "g_file_info_set_attribute_mask")
1669 core.PuregoSafeRegister(&xFileInfoSetAttributeObject, libs, "g_file_info_set_attribute_object")
1670 core.PuregoSafeRegister(&xFileInfoSetAttributeStatus, libs, "g_file_info_set_attribute_status")
1671 core.PuregoSafeRegister(&xFileInfoSetAttributeString, libs, "g_file_info_set_attribute_string")
1672 core.PuregoSafeRegister(&xFileInfoSetAttributeStringv, libs, "g_file_info_set_attribute_stringv")
1673 core.PuregoSafeRegister(&xFileInfoSetAttributeUint32, libs, "g_file_info_set_attribute_uint32")
1674 core.PuregoSafeRegister(&xFileInfoSetAttributeUint64, libs, "g_file_info_set_attribute_uint64")
1675 core.PuregoSafeRegister(&xFileInfoSetContentType, libs, "g_file_info_set_content_type")
1676 core.PuregoSafeRegister(&xFileInfoSetCreationDateTime, libs, "g_file_info_set_creation_date_time")
1677 core.PuregoSafeRegister(&xFileInfoSetDisplayName, libs, "g_file_info_set_display_name")
1678 core.PuregoSafeRegister(&xFileInfoSetEditName, libs, "g_file_info_set_edit_name")
1679 core.PuregoSafeRegister(&xFileInfoSetFileType, libs, "g_file_info_set_file_type")
1680 core.PuregoSafeRegister(&xFileInfoSetIcon, libs, "g_file_info_set_icon")
1681 core.PuregoSafeRegister(&xFileInfoSetIsHidden, libs, "g_file_info_set_is_hidden")
1682 core.PuregoSafeRegister(&xFileInfoSetIsSymlink, libs, "g_file_info_set_is_symlink")
1683 core.PuregoSafeRegister(&xFileInfoSetModificationDateTime, libs, "g_file_info_set_modification_date_time")
1684 core.PuregoSafeRegister(&xFileInfoSetModificationTime, libs, "g_file_info_set_modification_time")
1685 core.PuregoSafeRegister(&xFileInfoSetName, libs, "g_file_info_set_name")
1686 core.PuregoSafeRegister(&xFileInfoSetSize, libs, "g_file_info_set_size")
1687 core.PuregoSafeRegister(&xFileInfoSetSortOrder, libs, "g_file_info_set_sort_order")
1688 core.PuregoSafeRegister(&xFileInfoSetSymbolicIcon, libs, "g_file_info_set_symbolic_icon")
1689 core.PuregoSafeRegister(&xFileInfoSetSymlinkTarget, libs, "g_file_info_set_symlink_target")
1690 core.PuregoSafeRegister(&xFileInfoUnsetAttributeMask, libs, "g_file_info_unset_attribute_mask")
1691
1692}