summaryrefslogtreecommitdiff
path: root/gio/src/fileinfo.hg
Commit message (Collapse)AuthorAgeFilesLines
* Glib, Gio: Add some methods for glibmm 2.70Kjell Ahlstedt2021-10-051-0/+5
| | | | | | | | | | | | | | | | | | * configure.ac: * meson.build: Require glib-2.0 >= 2.69.1. * glib/src/binding.[ccg|hg]: Add dup_source(), dup_target(), Deprecate get_source(), get_target(). * glib/src/spawn.[ccg|hg]: Change parameter name, exit_status to wait_status. * glib/src/timezone.[ccg|hg]: Add operator bool(), create_identifier(). Deprecate create(). * gio/src/fileinfo.hg: Add get/set_access_date(), get/set_creation_date(). * gio/src/notification.hg: Add set_category(). * gio/src/tlscertificate.hg: Add property/get_not_valid_before(), property/get_not_valid_after(), property/get_subject_name(), property/get_issuer_name(). * gio/src/tlsconnection.hg: Add enum Gio::TlsProtocolVersion, property/get_protocol_version(), property/get_ciphersuite_name(). * tools/m4/convert_gio.m4: Add conversion for enum TlsProtocolVersion.
* gio/src/*.hg: Mark all _WRAP_ENUM() with decl_prefixChun-wei Fan2020-04-041-1/+1
| | | | | As per Kjell's suggestions, make things more future-proof by marking all _WRAP_ENUM()'s with 'decl_prefix GIOMM_API'.
* gio/src/*.hg: Mark classes and functions with GIOMM_APIChun-wei Fan2020-03-071-4/+5
| | | | | | This prepares the build to export symbols using compiler directives, in our bid to drop gendef.exe. We will also mark pre-declarations of usage of glibmm class items with GLIBMM_API as well.
* Remove Glib::TimeValKjell Ahlstedt2019-08-131-4/+3
| | | | | | | | | | | | | | | | | | GTimeVal has been deprecated in glib. Remove its wrapping in glibmm. * examples/dbus/server_without_bus.cc: * examples/dbus/session_bus_service.cc: Replace TimeVal by DateTime. * gio/src/fileinfo.[ccg|hg]: Remove [set_]modification_time(). Add set/get_modification_date_time(). * glib/glibmm.h: * glib/glibmm/filelist.am: Remove timeval. * glib/glibmm/timeval.[cc|h]: Removed files. * glib/src/date.[ccg|hg]: Remove set_time(const GTimeVal& timeval). * glib/src/datetime.[ccg|hg]: Remove create_now_local/utc(const TimeVal& tv) and to_timeval(). Add create_from_iso8601(), format_iso8601() and operator bool(). * tools/m4/convert_glib.m4: * tools/m4/convert_gio.m4: Remove conversions for GTimeVal.
* Update the Free Software Foundation address in copyright noticesKjell Ahlstedt2017-08-301-2/+1
| | | | Bug 786824
* Fix build when _WRAP_ENUM generates enum classKjell Ahlstedt2017-04-111-11/+1
| | | | Bug 86864
* Use std::vector<> instead of Glib::StringArrayHandle.Murray Cumming2017-03-171-3/+2
| | | | | | Using Glib::ArrayHandler<>::vector_to_array() and Glib::ArrayHandler<>::array_to_vector() instead, and only in the implementatoin instead of in the API.
* Gio: Use Glib::ustring for file attributes of string typeKjell Ahlstedt2016-12-181-20/+9
| | | | | | | | | | | | Use Glib::ustring for values of file attributes of type G_FILE_ATTRIBUTE_TYPE_STRING (UTF-8 encoded string). Changed methods: * gio/src/file.hg: set_attribute_string() * gio/src/fileinfo.hg: set/get_attribute_string(), set/get_display_name(), set/get_edit_name(), set/get_content_type(), get_etag() * gio/src/fileiostream.hg: get_etag() * gio/src/fileoutputstream.hg: get_etag() Bug 615950
* Gio::FileInfo::list_attributes(): Make name_space optional.Murray Cumming2016-02-101-1/+1
| | | | | | Because I noticed that this has just been documented as being allowed to be null: https://git.gnome.org/browse/glib/commit/?id=a4ed89bf75190631087596be22f9eb10dc6e53ef
* C++11: Mark all _CLASS_OPAQUE_REFCOUNTED classes as final.Murray Cumming2015-08-221-1/+1
| | | | | | | | | | Because _CLASS_OPAQUE_REFCOUNTED already generates a comment telling us not to derive from them, presumably because they can only be instantiated by reinterpret_cast<>ing a base C struct. Ideally, _CLASS_OPAQUE_REFCOUNTED would add the final keyword, but the class line is is not generated, so that would be a little difficult.
* Avoid shadowed variables.Murray Cumming2015-07-151-2/+2
| | | | | | | | | | Because this generally invites programming errors, though I am less concerned about shadowing of method names by parameter or variable names, which requires some tedious parameter renaming. In MatchInfo::set_gobject() the confusion between take_ownership and this.take_ownership does seem to have caused a programming error, hopefully now corrected.
* Fix some doxygen warningsKjell Ahlstedt2014-01-311-1/+1
| | | | | | | | | | | | | | | | | * gio/src/action.hg: * gio/src/actionmap.hg: * gio/src/dbusconnection.hg: * gio/src/dbusproxy.hg: * gio/src/file.hg: * gio/src/fileinfo.hg: * gio/src/menuitem.hg: * gio/src/mount.hg: * gio/src/settings.hg: * gio/src/simpleaction.hg: * gio/src/threadedsocketservice.hg: * glib/glibmm/base64.h: * glib/glibmm/refptr.h: * glib/src/variant.hg: Fix some warnings in doxygen.log.
* Gio::FileInfo: Added get_deletion_date().Murray Cumming2013-03-211-0/+2
| | | | | | * glib/src/fileenumerator.hg: Wrap the new g_file_info_get_deletion_date() function. * tools/m4/convert_glib.m4: Add a necessary conversion.
* Documentation: Fix many warnings from Doxygen.Kjell Ahlstedt2013-01-271-10/+10
| | | | | | | | | | | | | | | * gio/src/gio_docs_override.xml: * glib/src/glib_docs_override.xml: Move "Since: n.m" from the <return> to the <description> entries. gmmproc adds a period at the end of the @return Doxygen command, and Doxygen warns for "@newin{n,m}.". * glib/glibmm/interface.h: * glib/glibmm/stringutils.h: * glib/glibmm/vectorutils.h: * gio/src/*.hg: * glib/src/*.hg: (Here "*" means "many", not "all") Examples of changes: Add missing @param. Change names of parameters, to make them equal in function declaration and @param command. Change "@name" to "@a name". Change "<ulink url=" to "<a href=".
* FileInfo: set_attribute_strings(): Const correction.José Alburquerque2012-10-081-2/+2
| | | | | | * gio/src/fileinfo.hg: Pass the attr_value vector as a const std::vector<>& and not just a std::vecto<>&. I must not have been paying attention to what I was doing when wrapping this.
* FileInfo, FileAttributeMatcher: Wrap some unwrapped functions.José Alburquerque2012-10-021-0/+16
| | | | | | | | | | | | | * gio/src/fileinfo.hg (FileAttributeMatcher): Add the create_difference() and to_string() methods wrapping the g_file_attribute_matcher_subtract() and the g_file_attribute_matcher_to_string() functions. (FileInfo): Add the has_namespace(), [get|set]_attribute_status(), and [get|set]_attribute_strings() methods wrapping the g_file_info_has_namespace(), g_file_info_[get|set]_attribute_status(), and g_file_info_[get|set]_attribute_stringv() functions. * tools/m4/convert_gio.m4: Add an enum and FileAttributeMatcher conversions.
* Improve the use of _IGNORE. Don't use gio_others.defs.Kjell Ahlstedt2012-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * gio/src/applicationcommandline.hg: Change a _CONVERSION (due to the exclusion of gio_others.defs). * gio/src/dbusintrospection.hg: * gio/src/fileinfo.hg: Add _IGNORE. * gio/src/fileiostream.hg: * gio/src/fileoutputstream.hg: Correct an _IGNORE. * gio/src/gio.defs: Don't include gio_others.defs. One of its entries is wrong and all of them also exist (in correct form) in gio_methods.defs or gio_signals.defs. * glib/src/convert.hg: * glib/src/regex.hg: Add _IGNORE. * glib/src/date.hg: * glib/src/fileutils.hg: * glib/src/markup.hg: * glib/src/optionentry.hg: * glib/src/shell.hg: * glib/src/spawn.hg: * glib/src/thread.hg: * glib/src/threads.hg: * glib/src/unicode.hg: * glib/src/uriutils.hg: Remove _IGNORE(g_iconv). * glib/src/variantiter.hg: Add an _IGNORE. Remove _IGNORE(g_variant_iter_new).
* Add get_symbolic_icon() methods.Murray Cumming2012-09-071-0/+4
| | | | | | | | | * gio/src/gio_methods.defs: Regenerated. * gio/giomm/contenttype.[h|cc]: Add get_symbolic_icon(). * gio/src/drive.hg: Add get_symbolic_icon(). * gio/src/fileinfo.hg: Add get_symbolic_icon(). * gio/src/mount.hg: Add get_symbolic_icon(). * gio/src/volume.hg: Add get_symbolic_icon().
* FileInfo: Added more TODOs about using ustring instead of std::string.Murray Cumming2011-03-111-0/+6
| | | | | | * gio/src/fileinfo.hg: See https://bugzilla.gnome.org/show_bug.cgi?id=615950#c7 (Kjell Ahlstedt)
* FileInfo: Add TODOs about using ustring instead of std::string.Murray Cumming2011-03-091-7/+23
| | | | | | | * gio/src/fileinfo.hg: The C documentation says that some of these are UTF-8. See https://bugzilla.gnome.org/show_bug.cgi?id=615950#c4 (Kjell Ahlstedt)
* Remove default conversion to StringArrayHandleMurray Cumming2010-06-061-0/+3
| | | | | | | | | | | | * tools/m4/convert_gio.m4: Remove a default conversion from char** to StringArrayHandle, because there can be no good default, because each use can have different ownership, so it risks hiding an error. * gio/src/drive.hg: * gio/src/fileinfo.hg: * gio/src/filenamecompleter.hg: * gio/src/volume.hg: Add a local #m4 conversion instead. One day we will have the new introspection information (with the ownership) available to gmmproc so we don't need to do this.
* Rename @since back to @newinDaniel Elstner2009-08-201-1/+1
| | | | | | | | | | | | * docs/reference/Doxyfile.in (ALIASES): Rename the @since alias back to its old name @newin, but otherwise keep the parameters. Apparently there is a @since command predefined in Doxygen which I hadn't noticed. It does seem to get overridden silently, but it is better not to rely on this. * tools/pm/DocsParser.pm (convert_tags_to_doxygen): Output @newin instead of @since. * {glib,gio}/src/*.hg, {glib,gio}/{glib,gio}mm/*.h: Replace all uses of @since with @newin.
* Implement parametric Doxygen alias @since{m,n}Daniel Elstner2009-08-181-1/+1
| | | | | | | | | | | | * docs/reference/Doxyfile.in (ALIASES): Define a parametrized alias @since{major,minor} to replace the old @newin?p?* aliases which had to be defined manually for every version number used. (PREDEFINED): Predefine G_GNUC_NORETURN, G_GNUC_NULL_TERMINATED and G_GNUC_PURE to the empty expansion. Remove GTKMM_* macros. * tools/pm/DocsParser.pm (convert_tags_to_doxygen): Change "Since:" substitution to output the new generic @since alias. * {glib,gio}/src/*.hg, {glib,gio}/{glib,gio}mm/*.h: Change all uses of @newin?p?* to @since{major,minor}.
* Change license header to mention Lesser General Public License version 2.1Deng Xiyue2009-01-191-4/+4
| | | | | | | | | | 2009-01-20 Deng Xiyue <manphiz@gmail.com> * Change license header to mention Lesser General Public License version 2.1 instead of Library General Public License, to be consistent with COPYING. svn path=/trunk/; revision=779
* Rename FILE_TYPE_UNKNOWN to FILE_TYPE_NOT_KNOWN because the former is aArmin Burgmeier2008-10-101-1/+10
| | | | | | | | | | | 2008-10-09 Armin Burgmeier <armin@openismus.com> * gio/src/fileinfo.hg: Rename FILE_TYPE_UNKNOWN to FILE_TYPE_NOT_KNOWN because the former is a #define on Windows in winbase.h, included from windows.h. Keep FILE_TYPE_UNKNOWN for compatibility if it is not already defined. svn path=/trunk/; revision=738
* get_child_for_display_name(): Change the display_name parameter to aMurray Cumming2008-01-291-0/+2
| | | | | | | | | | | | | | 2008-01-29 Murray Cumming <murrayc@murrayc.com> * gio/src/file.hg: get_child_for_display_name(): Change the display_name parameter to a ustring because the C documentation says it should be UTF-8. * gio/src/fileinfo.hg: Add get_attribute_as_string(), which returns a UTF-8 string. (Note that no other gio documentation mentions UTF-8.) Thanks to Iain Nicol. svn path=/trunk/; revision=547
* Split intoMurray Cumming2008-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2008-01-27 Murray Cumming <murrayc@murrayc.com> * gio/src/fileattribute.ccg: * gio/src/fileattribute.hg: Split into * gio/src/fileattributeinfo.ccg: * gio/src/fileattributeinfo.hg: and * gio/src/fileattributeinfolist.ccg: * gio/src/fileattributeinfolist.hg * gio/giomm.h: * gio/src/Makefile_list_of_hg.am_fragment: * gio/src/file.hg: * gio/src/fileinfo.hg: * gio/src/outputstream.hg: * gio/src/seekable.hg: * glib/src/optionentry.hg: Adapted. * tools/pm/DocsParser.pm: substitute_identifiers(): Tried (unsuccessfully) to remove G:: prefixes in generated documentation. svn path=/trunk/; revision=545
* Do not include gio.h from our public headers, to avoid polluting theMurray Cumming2008-01-271-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-27 Murray Cumming <murrayc@murrayc.com> * gio/src/appinfo.hg: * gio/src/asyncresult.hg: * gio/src/cancellable.hg: * gio/src/drive.hg: * gio/src/error.hg: * gio/src/file.hg: * gio/src/fileattribute.hg: * gio/src/fileenumerator.hg: * gio/src/fileicon.hg: * gio/src/fileinfo.hg: * gio/src/fileinputstream.hg: * gio/src/fileoutputstream.hg: * gio/src/filterinputstream.hg: * gio/src/icon.hg: * gio/src/inputstream.hg: * gio/src/loadableicon.hg: * gio/src/mount.hg: * gio/src/mountoperation.hg: * gio/src/outputstream.hg: * gio/src/seekable.hg: * gio/src/simpleasyncresult.hg: * gio/src/volume.hg: Do not include gio.h from our public headers, to avoid polluting the namespace. svn path=/trunk/; revision=544
* FileAttributeMatcher::create(): Add a default value and documentation.Murray Cumming2008-01-201-2/+9
| | | | | | | | | | | | | | 2008-01-20 Murray Cumming <murrayc@murrayc.com> * gio/src/fileinfo.hg: FileAttributeMatcher::create(): Add a default value and documentation. * gio/src/file.ccg: * gio/src/file.hg: * gio/src/mount.ccg: * gio/src/mount.hg: const corrections for Slot* and Cancellable parameters. svn path=/trunk/; revision=525
* Removed operator= and operator!= for these RefPtr<> specializations,Murray Cumming2008-01-171-4/+0
| | | | | | | | | | | 2008-01-18 Murray Cumming <murrayc@murrayc.com> * gio/src/appinfo.hg: * gio/src/icon.hg: Removed operator= and operator!= for these RefPtr<> specializations, because they are unobvious and conflict with the generic ones. svn path=/trunk/; revision=520
* Fixed const-ness of Cancellables.Marko Anastasov2008-01-171-2/+1
| | | | | | | | | | | | | | | | | | 2008-01-17 Marko Anastasov <marko.anastasov@gmail.com> * gio/src/inputstream.ccg: * gio/src/inputstream.hg: Fixed const-ness of Cancellables. * gio/src/fileinputstream.ccg: * gio/src/fileinputstream.ccg: * gio/src/fileoutputstream.ccg: * gio/src/fileoutputstream.hg: Added an overload of query_info_async(), * gio/src/outputstream.ccg: * gio/src/outputstream.hg: write_async(), splice_async() without the Cancellable. Patch from José Alburquerque, bug #510080. svn path=/trunk/; revision=519
* Added class documentation.Murray Cumming2008-01-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-11 Murray Cumming <murrayc@murrayc.com> * gio/src/appinfo.hg: Added class documentation. * gio/src/asyncresult.hg: * gio/src/cancellable.hg: * gio/src/drive.hg: * gio/src/file.hg: * gio/src/fileattribute.hg: * gio/src/fileenumerator.hg: * gio/src/fileicon.hg: * gio/src/fileinfo.hg: * gio/src/fileinputstream.hg: * gio/src/fileoutputstream.hg: * gio/src/icon.hg: * gio/src/inputstream.hg: * gio/src/loadableicon.hg: * gio/src/mountoperation.hg: * gio/src/outputstream.hg: * gio/src/seekable.hg: * gio/src/simpleasyncresult.hg: * gio/src/volume.hg: Added @newin2p16 to the documentation. * glib/src/Makefile_list_of_hg.am_fragment: * glib/src/uriutils.ccg: * glib/src/uriutils.hg: Added wrappers of (some) of these new g_uri_* functions. Not yet documented. svn path=/trunk/; revision=506
* Correct an include.Murray Cumming2008-01-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-10 Murray Cumming <murrayc@murrayc.com> * gio/giomm.h: Correct an include. * gio/src/asyncresult.hg: * gio/src/cancellable.hg: * gio/src/drive.hg: * gio/src/file.hg: * gio/src/fileattribute.hg: * gio/src/fileenumerator.hg: * gio/src/fileicon.hg: * gio/src/fileinfo.hg: * gio/src/fileinputstream.hg: * gio/src/fileoutputstream.hg: * gio/src/outputstream.hg: * gio/src/simpleasyncresult.hg: * gio/src/volume.ccg: * gio/src/volume.hg: Correct several includes to use giomm/ instead of glibmm/. * configure.in: * examples/Makefile.am_fragment: * tests/Makefile.am_fragment: Include/Link giomm too. * tests/Makefile.am: * tests/giomm_simple/Makefile.am: * tests/giomm_simple/giomm_simple.cc: Added a little test, which shows that the library is not being built properly - we get undefined symbols. svn path=/trunk/; revision=496
* Added this, though no methods or vfuncs are wrapped yet.Murray Cumming2008-01-091-1/+17
| | | | | | | | | | | | | | | | | | | | 2008-01-09 Murray Cumming <murrayc@murrayc.com> * gio/src/Makefile_list_of_hg.am_fragment: * gio/src/loadableicon.ccg: * gio/src/loadableicon.hg: Added this, though no methods or vfuncs are wrapped yet. * tools/m4/convert_glib.m4: * gio/src/fileicon.hg: * gio/src/fileinfo.hg: Derive from LoadableIcon and implement it. set_modification_time(): Take a const TimeVal. * gio/src/fileinputstream.ccg: * gio/src/fileinputstream.hg: Added documentation and a version of seek() without the cancellable parameter. * gio/src/gio_docs.xml: Generated from docextract_to_xml.py so we get documentation for methods created by _WRAP_METHOD(). svn path=/trunk/; revision=494
* Made some whitespace more consistent with the rest of glibmm. InMurray Cumming2008-01-081-47/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-08 Murray Cumming <murrayc@murrayc.com> * gio/src/asyncresult.hg: * gio/src/cancellable.hg: * gio/src/fileattribute.hg: * gio/src/fileenumerator.hg: * gio/src/fileinputstream.hg: * gio/src/fileoutputstream.hg: * gio/src/icon.hg: * gio/src/inputstream.hg: * gio/src/mountoperation.hg: * gio/src/outputstream.hg: * gio/src/simpleasyncresult.hg: Made some whitespace more consistent with the rest of glibmm. In particular, white space alignment in .hg files will often be even worse when seen in the generated .h files. * gio/src/drive.hg: get_icon(), * gio/src/file.hg: read(), * gio/src/fileicon.hg: get_file(), * gio/src/fileinfo.hg: get_icon(), * gio/src/volume.hg: get_drive(), get_icon(): For the const versions, actually return a const RefPtr. svn path=/trunk/; revision=491
* Checked in sources from giomm. Build needs to be fixed to work withMarko Anastasov2007-12-281-0/+192
2007-12-28 Marko Anastasov <marko.anastasov@gmail.com> * gio/*: * configure.in: * Makefile.am: * tools/m4/convert_glib.m4: Checked in sources from giomm. Build needs to be fixed to work with scripts in build_shared/. svn path=/trunk/; revision=482