summaryrefslogtreecommitdiff
path: root/gio/src/file.hg
Commit message (Collapse)AuthorAgeFilesLines
* Glib, Gio: Add some methods for glibmm 2.72Kjell Ahlstedt2022-04-071-0/+41
| | | | | | | | | | | | | * configure.ac: * meson.build: Require glib-2.0 >= 2.71.2. * gio/src/dbusproxy.hg: signal_signal() accepts a signal name. * gio/src/file.[ccg|hg]: Add move_async() and move_finish(). * gio/src/socketclient.hg: Deprecate set/get/property_tls_validation_flags(). * gio/src/tlscertificate.hg: Add properties private_key, private_key_pem, pkcs11_uri, private_key_pkcs11_uri. * gio/src/tlsclientconnection.hg: Deprecate set/get/property_validation_flags(). * glib/glibmm/main.[cc|h]: Add create(MainContextFlags flags). * glib/src/enums.hg: Add enum Glib::MainContextFlags.
* Gio::File docs: Fix names of thrown exceptionsKjell Ahlstedt2020-11-011-4/+3
| | | | and remove unnecessary TODO comments in several files.
* gio/src/*.hg: Mark all _WRAP_ENUM() with decl_prefixChun-wei Fan2020-04-041-5/+5
| | | | | 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-3/+4
| | | | | | 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.
* Put _WRAP_VFUNC in protected sectionsKjell Ahlstedt2019-03-151-1/+1
|
* Use {} for function arguments initialisationTapasweni Pathak2019-01-131-8/+8
| | | | Closes https://gitlab.gnome.org/GNOME/glibmm/issues/20.
* Update the Free Software Foundation address in copyright noticesKjell Ahlstedt2017-08-301-2/+1
| | | | Bug 786824
* Gio::Drive: Move enums into class.Murray Cumming2017-04-181-2/+2
|
* Gio::Mount: Move enums into class.Murray Cumming2017-04-181-22/+22
|
* Gio::File: Move some flags enums into the class.Murray Cumming2017-04-181-109/+109
|
* Fix build when _WRAP_ENUM generates enum classKjell Ahlstedt2017-04-111-115/+115
| | | | Bug 86864
* Gio: Use Glib::ustring for file attributes of string typeKjell Ahlstedt2016-12-181-1/+1
| | | | | | | | | | | | 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
* sigc3: .hg/.ccg files: Use sigc::slot<R(Args...)> syntax.Murray Cumming2016-11-141-3/+3
|
* Remove trailing whitespace.Murray Cumming2016-05-161-2/+2
|
* C++11: .hg\.ccg files: Replace more typedefs with using.Murray Cumming2016-03-311-3/+3
|
* C++11: .hg/.ccg files: Replace typedefs with using.Murray Cumming2016-03-311-3/+3
|
* Gio: More nullptr instead of 0Kjell Ahlstedt2015-11-231-5/+5
|
* Mention nullptr instead of NULL in documentation and some comments.Murray Cumming2015-11-201-1/+1
|
* Don't disable more deprecation warnings than necessaryKjell Ahlstedt2015-06-171-5/+0
| | | | | | | | | | | | | | * gio/src/application.hg: * gio/src/desktopappinfo.hg: * gio/src/file.hg: * gio/src/notification.hg: * gio/src/settings.[ccg|hg]: * gio/src/simpleactiongroup.hg: * gio/src/tlsconnection.hg: * gio/src/volumemonitor.hg: * glib/src/date.hg: Don't #undef G_DISABLE_DEPRECATED or #define GLIB_DISABLE_DEPRECATION_WARNINGS. This is unnecessary when deprecated code is surrounded by G_GNUC_[BEGIN|END]_IGNORE_DEPRECATIONS. Bug #750379.
* Gio::File: Add replace_contents_bytes_aync().Murray Cumming2015-03-031-0/+45
| | | | | There is no g_file_replace_content_bytes_finish() because this uses the existing g_file_replace_contents_finish().
* Fix error messages from gmmprocKjell Ahlstedt2015-02-201-3/+1
| | | | | | | | | | | | | * gio/src/gio_extra_objects.defs: Add NetworkMonitor, Notification and Resource. * gio/src/file.hg: * gio/src/fileinputstream.hg: * gio/src/fileoutputstream.hg: * gio/src/notification.hg: * glib/src/iochannel.hg: * glib/src/nodetree.hg: Avoid "gtkmmproc error" messages in the generated files by not _IGNORE()ing non-existent functions. Unnecessary _IGNORE()s generate error messages after the fix in bug 737212 was implemented.
* Tiny comment spelling fix.Murray Cumming2014-12-041-1/+1
|
* Fix some doxygen warningsKjell Ahlstedt2014-01-311-10/+11
| | | | | | | | | | | | | | | | | * 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.
* Added a comment.Murray Cumming2013-11-071-0/+2
|
* Gio::File: Add measure_disk_usage() and measure_disk_usage_async().Murray Cumming2013-09-201-0/+96
| | | | | | | | * gio/src/file.[hg|ccg]: Wrap g_file_measure_disk_usage(), g_file_measure_disk_usage_async() and g_file_measure_disk_usage_finish(), based on the copy() and copy_async() methods, which also have 2 slots. * tools/m4/convert_glib.m4: Add a conversion for guint64&.
* Gio::File: Wrap some new methods.Murray Cumming2013-07-311-0/+45
| | | | | * gio/src/file.[hg|ccg]: Add trash_async(), trash_finish(), make_directory_async() and make_directory_finish().
* Documentation: Fix many warnings from Doxygen.Kjell Ahlstedt2013-01-271-30/+51
| | | | | | | | | | | | | | | * 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=".
* Gio::File: Remove refreturn to avoid memory leaks.Kjell Ahlstedt2013-01-141-52/+37
| | | | | | * gio/src/file.hg: Remove the refreturn argument from _WRAP_METHOD for read() and 13 other methods. The glib functions add a ref. Change @newin2p24 to @newin{2,24}. Bug #691606.
* Strip trailing whitespace.Mark Vender2012-10-291-260/+260
| | | | | | | * gio/giomm/*.[h|cc]: * gio/src/*.[hg|ccg]: * glib/glibmm/*.[h|cc]: * glib/src/*.[hg|ccg]: Strip trailing whitespace. Bug #681072.
* File: Add remove_async() and remove_finish().Murray Cumming2012-09-161-0/+29
| | | | | | * gio/src/file.[hg|ccg]: As for the sync version, we rename delete to remove, because the sync vesion would be delete(), which uses a C++ keyword.
* Gio::File: Correct the commit againMurray Cumming2012-09-151-1/+1
| | | | * gio/src/file.[hg|ccg]: make_directory() was missing a {?}.
* Gio::File: Correct the previous commit.Murray Cumming2012-09-151-1/+15
| | | | | | * gio/src/file.[hg|ccg]: Do not use {?} with query_file_type() because it cannot cope with also having a default parameter value on an earlier parameter.
* Gio::File: Simplify the code by using {?} in _WRAP_METHOD()Murray Cumming2012-09-151-237/+19
| | | | | | * gio/src/file.[hg|ccg]: This relatively new gmmproc syntax lets us avoid the manual implementations and declarations just to have overloads without the Cancellable parameters.
* Avoid some deprecation compiler warnings.Murray Cumming2011-10-261-0/+1
| | | | | | | | | | * gio/src/file.hg: * gio/src/volumemonitor.hg: * glib/src/date.hg: Add GLIB_DISABLE_DEPRECATION_WARNINGS to SECTION_CC_PRE_INCLUDES to avoid compiler warnings with the new glib deprecation system. * glib/src/value_basictypes.cc.m4: undef them here too, because g_value_set_char() and g_value_get_char() are deprecated.
* Dealt with several TODOs.Murray Cumming2011-02-151-2/+46
| | | | | * gio/src/*.[hg|ccg]: Mostly just adding hand-coded documentation, and changing some new methods to use std::vector.
* Remove the reduced API options and code, as discussed on mailing list.Murray Cumming2010-05-311-257/+0
| | | | | | | | | * configure.ac: Removed the --enable-api-exceptions, --enable-api-properties, --enable-api-vfuncs and --enable-api-default-signal-handlers options. * build/reduced.m4: Removed. * tools/m4/*.m4: * tools/pm/Output.pm: Remove any use of ifdefs and auto_ptr for reduced API. * *.[hg|ccg|h|cc]: Remove the idefed code.
* Gio::File: Add TypeTraits to fix Gtk::FileChooser::get_files() in gtkmm.Jonathon Jongsma2010-03-261-0/+40
| | | | | | * gio/src/file.hg: add TypeTraits to allow concrete implementations of GFile to be wrapped properly. For example, this fix allows Gtk::FileChooser::get_files() to work properly (Fixes #590940)
* File: Added has_parent() and supports_thread_contexts().Murray Cumming2010-01-291-0/+12
| | | | * gio/src/file.[hg|ccg]: Added has_parent(), supports_thread_contexts().
* File: Added start_mountable(), stop_mountable(), poll_mountable().Murray Cumming2010-01-281-3/+131
| | | | | | | | | | * gio/src/drive.[hg|ccg]: * gio/src/mount.hg: * gio/src/volume.hg: Change some includes to allow file.h to include more. * gio/src/file.[hg|ccg]: Added start_mountable(), stop_mountable(), poll_mountable() and the *_finish() methods. The awful documenation will be improved when I have improved it (tomorrow) for the C functions.
* file.hg: Correct/Add newin2p* doxygen comments.Murray Cumming2010-01-281-6/+22
|
* File: Added create_file_readwrite() and creat_file_readwrite_async().Murray Cumming2010-01-281-7/+109
| | | | | * gio/src/file.[hg|ccg]: Added create_file_readwrite(), create_file_readwrite_async() and create_file_readwrite_finish().
* unmount_mountable(), eject_mountable(): Add overrides with MountOperation.Murray Cumming2010-01-281-12/+74
| | | | | | | | * gio/src/file.[hg|ccg]: unmount_mountable(), eject_mountable(): Reimplement these with the new *_with_operation functions. Undeprecate them - that should not have happened without replacements. Added unmount_mountable() and eject_mountable() overrides with MountOperation parameters. Unfortunately there are now 6 of each.
* File, Cancellable: Added some new methods.Murray Cumming2010-01-281-0/+144
| | | | | | | | | | | * gio/src/cancellable.hg: Added release_fd() and make_polldf(). * gio/src/file.[hg|ccg]: Added open_readwrite(), open_readwrite_async() and finish_readwrite(). Added replace_readwrite(), replace_readwrite_async() and finish_replace_readwrite(). * tools/m4/convert_gio.m4:Added conversion for FileIOStream. * glib/src/glib_enums.defs: Fix an #error that enum.pl has put there for some reason.
* Deprecate wrapper methods of deprecated functionsDaniel Elstner2009-08-211-0/+8
| | | | | | | | | * gio/src/file.{ccg,hg} (File::{eject,unmount}_mountable*), gio/src/volumemonitor.hg (VolumeMonitor::adopt_orphan_mount): Enclose within deprecation guards since the corresponding C API functions have been deprecated in API version 2.22 of GIO. Insert #undef G_DISABLE_DEPRECATED at the top of the source files so that giomm builds again at warning level fatal.
* Rename @since back to @newinDaniel Elstner2009-08-201-9/+9
| | | | | | | | | | | | * 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-9/+9
| | | | | | | | | | | | * 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}.
* Gio::File::load_contents() override to allow ignoring the etag contents. ↵Hubert Figuiere2009-06-171-0/+60
| | | | (Bug #581349)
* Fix --disable-api-exceptions buildDaniel Elstner2009-03-231-9/+15
| | | | | | | | | | | | | | | * glib/src/keyfile.{ccg,hg}: Conditionalize all exception-handling code in order to fix the build with --disable-api-exceptions. * glib/src/regex.hg: ditto, * gio/src/appinfo.ccg: ditto, * gio/src/file.{ccg,hg}: ditto, * gio/src/outputstream.ccg: ditto, * examples/keyfile/main.cc: ditto, * examples/regex/main.cc: ditto, * tests/giomm_ioerror/main.cc: ditto, * tests/giomm_simple/main.cc: ditto. svn path=/trunk/; revision=803
* 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
* Added make_directory_with_parents(), query_file_type(), monitor().Murray Cumming2008-07-161-2/+80
| | | | | | | | | | | | | | | | | 2008-07-16 Murray Cumming <murrayc@murrayc.com> * gio/src/file.ccg: * gio/src/file.hg: Added make_directory_with_parents(), query_file_type(), monitor(). * gio/src/fileenumerator.ccg: * gio/src/fileenumerator.hg: Added get_container(). * gio/src/mount.hg: Added guess_content_type() and guess_content_type_finish(). * gio/src/themedicon.hg: Added prepend_name(). * gio/src/volume.hg: Added get_activation_root(). * tools/m4/convert_gio.m4: Added a necessary conversion. svn path=/trunk/; revision=688