620
<a class="anchor" name="8db337b93f3b9b9a6e163477391e6c89"></a><!-- doxytag: member="Gio::File::append_to" ref="8db337b93f3b9b9a6e163477391e6c89" args="(FileCreateFlags flags=FILE_CREATE_NONE)" -->
621
<div class="memitem">
622
<div class="memproto">
623
<table class="memname">
625
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::append_to </td>
627
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
628
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code> </td>
629
<td> ) </td>
637
Gets an output stream for appending data to the file.
639
If the file doesn't already exist it is created.<p>
640
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
641
Some filesystems don't allow all filenames, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME. If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on. <dl compact><dt><b>Parameters:</b></dt><dd>
642
<table border="0" cellspacing="2" cellpadding="0">
643
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
646
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. </dd></dl>
650
<a class="anchor" name="91c93ee71eee738690cb551d11df9528"></a><!-- doxytag: member="Gio::File::append_to" ref="91c93ee71eee738690cb551d11df9528" args="(const Glib::RefPtr< Cancellable > &cancellable, FileCreateFlags flags=FILE_CREATE_NONE)" -->
651
<div class="memitem">
652
<div class="memproto">
653
<table class="memname">
655
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::append_to </td>
657
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
658
<td class="paramname"> <em>cancellable</em>, </td>
661
<td class="paramkey"></td>
663
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
664
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
669
<td></td><td></td><td></td>
676
Gets an output stream for appending data to the file.
678
If the file doesn't already exist it is created.<p>
679
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
680
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
681
Some filesystems don't allow all filenames, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME. If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on. <dl compact><dt><b>Parameters:</b></dt><dd>
682
<table border="0" cellspacing="2" cellpadding="0">
683
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
684
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
687
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. </dd></dl>
691
<a class="anchor" name="bff3163e9bf8d8208cd0c0e568b777de"></a><!-- doxytag: member="Gio::File::append_to_async" ref="bff3163e9bf8d8208cd0c0e568b777de" args="(const SlotAsyncReady &slot, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
692
<div class="memitem">
693
<div class="memproto">
694
<table class="memname">
696
<td class="memname">void Gio::File::append_to_async </td>
698
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
699
<td class="paramname"> <em>slot</em>, </td>
702
<td class="paramkey"></td>
704
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
705
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
708
<td class="paramkey"></td>
710
<td class="paramtype">int </td>
711
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
716
<td></td><td></td><td></td>
723
Asynchronously opens the file for appending.
725
For more details, see <a class="el" href="classGio_1_1File.html#91c93ee71eee738690cb551d11df9528" title="Gets an output stream for appending data to the file.">append_to()</a> which is the synchronous version of this call.<p>
726
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#cb1f2d32055b8da274ea241c69487dc6" title="Finishes an asynchronous file append operation started with g_file_append_to_async()...">append_to_finish()</a> to get the result of the operation. <dl compact><dt><b>Parameters:</b></dt><dd>
727
<table border="0" cellspacing="2" cellpadding="0">
728
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
729
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
730
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
736
<a class="anchor" name="1e3dfb193e8f2ab69e24c4370de5335a"></a><!-- doxytag: member="Gio::File::append_to_async" ref="1e3dfb193e8f2ab69e24c4370de5335a" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
737
<div class="memitem">
738
<div class="memproto">
739
<table class="memname">
741
<td class="memname">void Gio::File::append_to_async </td>
743
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
744
<td class="paramname"> <em>slot</em>, </td>
747
<td class="paramkey"></td>
749
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
750
<td class="paramname"> <em>cancellable</em>, </td>
753
<td class="paramkey"></td>
755
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
756
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
759
<td class="paramkey"></td>
761
<td class="paramtype">int </td>
762
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
767
<td></td><td></td><td></td>
774
Asynchronously opens the file for appending.
776
For more details, see <a class="el" href="classGio_1_1File.html#91c93ee71eee738690cb551d11df9528" title="Gets an output stream for appending data to the file.">append_to()</a> which is the synchronous version of this call.<p>
777
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#cb1f2d32055b8da274ea241c69487dc6" title="Finishes an asynchronous file append operation started with g_file_append_to_async()...">append_to_finish()</a> to get the result of the operation. <dl compact><dt><b>Parameters:</b></dt><dd>
778
<table border="0" cellspacing="2" cellpadding="0">
779
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
780
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
781
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
782
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
788
<a class="anchor" name="cb1f2d32055b8da274ea241c69487dc6"></a><!-- doxytag: member="Gio::File::append_to_finish" ref="cb1f2d32055b8da274ea241c69487dc6" args="(const Glib::RefPtr< AsyncResult > &result)" -->
789
<div class="memitem">
790
<div class="memproto">
791
<table class="memname">
793
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::append_to_finish </td>
795
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
796
<td class="paramname"> <em>result</em> </td>
797
<td> ) </td>
805
Finishes an asynchronous file append operation started with g_file_append_to_async().
807
<dl compact><dt><b>Parameters:</b></dt><dd>
808
<table border="0" cellspacing="2" cellpadding="0">
809
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td><a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
812
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A valid <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
816
<a class="anchor" name="7a6b45bed32567031bc7b48273ad4079"></a><!-- doxytag: member="Gio::File::copy" ref="7a6b45bed32567031bc7b48273ad4079" args="(const Glib::RefPtr< File > &destination, FileCopyFlags flags=FILE_COPY_NONE)" -->
817
<div class="memitem">
818
<div class="memproto">
819
<table class="memname">
821
<td class="memname">bool Gio::File::copy </td>
823
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
824
<td class="paramname"> <em>destination</em>, </td>
827
<td class="paramkey"></td>
829
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
830
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
835
<td></td><td></td><td></td>
845
<a class="anchor" name="1d8159b5b377db174b376b3c09deb7c1"></a><!-- doxytag: member="Gio::File::copy" ref="1d8159b5b377db174b376b3c09deb7c1" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot, FileCopyFlags flags=FILE_COPY_NONE)" -->
846
<div class="memitem">
847
<div class="memproto">
848
<table class="memname">
850
<td class="memname">bool Gio::File::copy </td>
852
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
853
<td class="paramname"> <em>destination</em>, </td>
856
<td class="paramkey"></td>
858
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
859
<td class="paramname"> <em>slot</em>, </td>
862
<td class="paramkey"></td>
864
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
865
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
870
<td></td><td></td><td></td>
880
<a class="anchor" name="f9e906ed93069e6adb6d87dae158cad9"></a><!-- doxytag: member="Gio::File::copy" ref="f9e906ed93069e6adb6d87dae158cad9" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE)" -->
881
<div class="memitem">
882
<div class="memproto">
883
<table class="memname">
885
<td class="memname">bool Gio::File::copy </td>
887
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
888
<td class="paramname"> <em>destination</em>, </td>
891
<td class="paramkey"></td>
893
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
894
<td class="paramname"> <em>slot</em>, </td>
897
<td class="paramkey"></td>
899
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
900
<td class="paramname"> <em>cancellable</em>, </td>
903
<td class="paramkey"></td>
905
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
906
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
911
<td></td><td></td><td></td>
918
Copies the file source to the location specified by destination.
920
Can not handle recursive copies of directories. If the flag FILE_COPY_OVERWRITE is specified an already existing destination file is overwritten. If the flag FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks will be copied as symlinks, otherwise the target of the source symlink will be copied.<p>
921
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
922
The operation can be monitored via the <em>slot</em> callback.<p>
923
If the source file does not exist then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown, independent on the status of the destination.<p>
924
If FILE_COPY_OVERWRITE is not specified and the target exists, then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with EXISTS will be thrown.<p>
925
If trying to overwrite a file over a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. If trying to overwrite a directory with a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WOULD_MERGE will be thrown.<p>
926
If the source is a directory and the target does not exist, or FILE_COPY_OVERWRITE is specified and the target is a file, then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WOULD_RECURSE will be thrown.<p>
927
If you are interested in copying the <a class="el" href="classGio_1_1File.html" title="File and directory handling.">Gio::File</a> object itself (not the on-disk file), see <a class="el" href="classGio_1_1File.html#9ea238062cdc317ae982ffae5c226c9b" title="Duplicates a File handle.">File::dup()</a>.
930
<a class="anchor" name="d538a383b8761d04bd36ed1aa1071e50"></a><!-- doxytag: member="Gio::File::copy_async" ref="d538a383b8761d04bd36ed1aa1071e50" args="(const Glib::RefPtr< File > &destination, const SlotAsyncReady &slot_ready, FileCopyFlags flags=FILE_COPY_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
931
<div class="memitem">
932
<div class="memproto">
933
<table class="memname">
935
<td class="memname">void Gio::File::copy_async </td>
937
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
938
<td class="paramname"> <em>destination</em>, </td>
941
<td class="paramkey"></td>
943
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
944
<td class="paramname"> <em>slot_ready</em>, </td>
947
<td class="paramkey"></td>
949
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
950
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code>, </td>
953
<td class="paramkey"></td>
955
<td class="paramtype">int </td>
956
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
961
<td></td><td></td><td></td>
968
Copies the file to the location specified by <em>destination</em> asynchronously.
970
For details of the behaviour, see <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>.<p>
971
When the operation is finished, <em>slot_ready</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#68294636a2d649c9de53332faee02cf6" title="Finishes copying the file started with g_file_copy_async().">copy_finish()</a> to get the result of the operation.<p>
972
<dl compact><dt><b>Parameters:</b></dt><dd>
973
<table border="0" cellspacing="2" cellpadding="0">
974
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>Destination <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> </td></tr>
975
<tr><td valign="top"></td><td valign="top"><em>slot_ready</em> </td><td>A SlotAsyncReady to call when the request is satisfied </td></tr>
976
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Set of FileCopyFlags </td></tr>
977
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request </td></tr>
983
<a class="anchor" name="c2b1a85f29bbbe15998c090b3794cbf5"></a><!-- doxytag: member="Gio::File::copy_async" ref="c2b1a85f29bbbe15998c090b3794cbf5" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot_progress, const SlotAsyncReady &slot_ready, FileCopyFlags flags=FILE_COPY_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
984
<div class="memitem">
985
<div class="memproto">
986
<table class="memname">
988
<td class="memname">void Gio::File::copy_async </td>
990
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
991
<td class="paramname"> <em>destination</em>, </td>
994
<td class="paramkey"></td>
996
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
997
<td class="paramname"> <em>slot_progress</em>, </td>
1000
<td class="paramkey"></td>
1002
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1003
<td class="paramname"> <em>slot_ready</em>, </td>
1006
<td class="paramkey"></td>
1008
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
1009
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code>, </td>
1012
<td class="paramkey"></td>
1014
<td class="paramtype">int </td>
1015
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1020
<td></td><td></td><td></td>
1024
<div class="memdoc">
1027
Copies the file to the location specified by <em>destination</em> asynchronously.
1029
For details of the behaviour, see <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>.<p>
1030
When the operation is finished, <em>slot_ready</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#68294636a2d649c9de53332faee02cf6" title="Finishes copying the file started with g_file_copy_async().">copy_finish()</a> to get the result of the operation.<p>
1031
The function specified by <em>slot_progress</em> will be called just like in <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>, however the callback will run in the main loop, not in the thread that is doing the I/O operation.<p>
1032
<dl compact><dt><b>Parameters:</b></dt><dd>
1033
<table border="0" cellspacing="2" cellpadding="0">
1034
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>Destination <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> </td></tr>
1035
<tr><td valign="top"></td><td valign="top"><em>slot_progress</em> </td><td>The callback slot to be called with progress information </td></tr>
1036
<tr><td valign="top"></td><td valign="top"><em>slot_ready</em> </td><td>A SlotAsyncReady to call when the request is satisfied </td></tr>
1037
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Set of FileCopyFlags </td></tr>
1038
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request </td></tr>
1044
<a class="anchor" name="5b8ae7393c73a9a1d383a82d61f4ac30"></a><!-- doxytag: member="Gio::File::copy_async" ref="5b8ae7393c73a9a1d383a82d61f4ac30" args="(const Glib::RefPtr< File > &destination, const SlotAsyncReady &slot_ready, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1045
<div class="memitem">
1046
<div class="memproto">
1047
<table class="memname">
1049
<td class="memname">void Gio::File::copy_async </td>
1051
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
1052
<td class="paramname"> <em>destination</em>, </td>
1055
<td class="paramkey"></td>
1057
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1058
<td class="paramname"> <em>slot_ready</em>, </td>
1061
<td class="paramkey"></td>
1063
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1064
<td class="paramname"> <em>cancellable</em>, </td>
1067
<td class="paramkey"></td>
1069
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
1070
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code>, </td>
1073
<td class="paramkey"></td>
1075
<td class="paramtype">int </td>
1076
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1081
<td></td><td></td><td></td>
1085
<div class="memdoc">
1088
Copies the file to the location specified by <em>destination</em> asynchronously.
1090
For details of the behaviour, see <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>.<p>
1091
When the operation is finished, <em>slot_ready</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#68294636a2d649c9de53332faee02cf6" title="Finishes copying the file started with g_file_copy_async().">copy_finish()</a> to get the result of the operation.<p>
1092
<dl compact><dt><b>Parameters:</b></dt><dd>
1093
<table border="0" cellspacing="2" cellpadding="0">
1094
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>Destination <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> </td></tr>
1095
<tr><td valign="top"></td><td valign="top"><em>slot_ready</em> </td><td>A SlotAsyncReady to call when the request is satisfied </td></tr>
1096
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation </td></tr>
1097
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Set of FileCopyFlags </td></tr>
1098
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request </td></tr>
1104
<a class="anchor" name="1785b7a4780d5d4ba5ae651350e34398"></a><!-- doxytag: member="Gio::File::copy_async" ref="1785b7a4780d5d4ba5ae651350e34398" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot_progress, const SlotAsyncReady &slot_ready, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1105
<div class="memitem">
1106
<div class="memproto">
1107
<table class="memname">
1109
<td class="memname">void Gio::File::copy_async </td>
1111
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
1112
<td class="paramname"> <em>destination</em>, </td>
1115
<td class="paramkey"></td>
1117
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
1118
<td class="paramname"> <em>slot_progress</em>, </td>
1121
<td class="paramkey"></td>
1123
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1124
<td class="paramname"> <em>slot_ready</em>, </td>
1127
<td class="paramkey"></td>
1129
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1130
<td class="paramname"> <em>cancellable</em>, </td>
1133
<td class="paramkey"></td>
1135
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
1136
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code>, </td>
1139
<td class="paramkey"></td>
1141
<td class="paramtype">int </td>
1142
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1147
<td></td><td></td><td></td>
1151
<div class="memdoc">
1154
Copies the file to the location specified by <em>destination</em> asynchronously.
1156
For details of the behaviour, see <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>.<p>
1157
When the operation is finished, <em>slot_ready</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#68294636a2d649c9de53332faee02cf6" title="Finishes copying the file started with g_file_copy_async().">copy_finish()</a> to get the result of the operation.<p>
1158
The function specified by <em>slot_progress</em> will be called just like in <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>, however the callback will run in the main loop, not in the thread that is doing the I/O operation.<p>
1159
<dl compact><dt><b>Parameters:</b></dt><dd>
1160
<table border="0" cellspacing="2" cellpadding="0">
1161
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>Destination <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> </td></tr>
1162
<tr><td valign="top"></td><td valign="top"><em>slot_progress</em> </td><td>The callback slot to be called with progress information </td></tr>
1163
<tr><td valign="top"></td><td valign="top"><em>slot_ready</em> </td><td>A SlotAsyncReady to call when the request is satisfied </td></tr>
1164
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation </td></tr>
1165
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Set of FileCopyFlags </td></tr>
1166
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request </td></tr>
1172
<a class="anchor" name="05c1101ede98028c9234486eb0434250"></a><!-- doxytag: member="Gio::File::copy_attributes" ref="05c1101ede98028c9234486eb0434250" args="(const Glib::RefPtr< File > &destination, FileCopyFlags flags=FILE_COPY_NONE)" -->
1173
<div class="memitem">
1174
<div class="memproto">
1175
<table class="memname">
1177
<td class="memname">bool Gio::File::copy_attributes </td>
1179
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
1180
<td class="paramname"> <em>destination</em>, </td>
1183
<td class="paramkey"></td>
1185
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
1186
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
1191
<td></td><td></td><td></td>
1195
<div class="memdoc">
1198
Copies the file attributes from <em>source</em> to <em>destination</em>.
1200
Normally only a subset of the file attributes are copied, those that are copies in a normal file copy operation (which for instance does not include e.g. mtime). However if FILE_COPY_ALL_METADATA is specified in <em>flags</em>, then all the metadata that is possible to copy is copied.<p>
1201
<dl compact><dt><b>Parameters:</b></dt><dd>
1202
<table border="0" cellspacing="2" cellpadding="0">
1203
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>A <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> to copy attributes to. </td></tr>
1204
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
1207
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the attributes were copied successfully, false otherwise. </dd></dl>
1211
<a class="anchor" name="90726dcf94248d2fddf2e4c8584b7bf0"></a><!-- doxytag: member="Gio::File::copy_attributes" ref="90726dcf94248d2fddf2e4c8584b7bf0" args="(const Glib::RefPtr< File > &destination, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE)" -->
1212
<div class="memitem">
1213
<div class="memproto">
1214
<table class="memname">
1216
<td class="memname">bool Gio::File::copy_attributes </td>
1218
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
1219
<td class="paramname"> <em>destination</em>, </td>
1222
<td class="paramkey"></td>
1224
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1225
<td class="paramname"> <em>cancellable</em>, </td>
1228
<td class="paramkey"></td>
1230
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
1231
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
1236
<td></td><td></td><td></td>
1240
<div class="memdoc">
1243
Copies the file attributes from <em>source</em> to <em>destination</em>.
1245
Normally only a subset of the file attributes are copied, those that are copies in a normal file copy operation (which for instance does not include e.g. mtime). However if FILE_COPY_ALL_METADATA is specified in <em>flags</em>, then all the metadata that is possible to copy is copied.<p>
1246
<dl compact><dt><b>Parameters:</b></dt><dd>
1247
<table border="0" cellspacing="2" cellpadding="0">
1248
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>A <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> to copy attributes to. </td></tr>
1249
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
1250
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
1253
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the attributes were copied successfully, false otherwise. </dd></dl>
1257
<a class="anchor" name="68294636a2d649c9de53332faee02cf6"></a><!-- doxytag: member="Gio::File::copy_finish" ref="68294636a2d649c9de53332faee02cf6" args="(const Glib::RefPtr< AsyncResult > &result)" -->
1258
<div class="memitem">
1259
<div class="memproto">
1260
<table class="memname">
1262
<td class="memname">bool Gio::File::copy_finish </td>
1264
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
1265
<td class="paramname"> <em>result</em> </td>
1266
<td> ) </td>
1271
<div class="memdoc">
1274
Finishes copying the file started with g_file_copy_async().
1276
<dl compact><dt><b>Parameters:</b></dt><dd>
1277
<table border="0" cellspacing="2" cellpadding="0">
1278
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
1281
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <code>true</code> on success, <code>false</code> on error. </dd></dl>
1285
<a class="anchor" name="5cf2b17b953ccfefb1d13c39bd1be72c"></a><!-- doxytag: member="Gio::File::create_file" ref="5cf2b17b953ccfefb1d13c39bd1be72c" args="(FileCreateFlags flags=FILE_CREATE_NONE)" -->
1286
<div class="memitem">
1287
<div class="memproto">
1288
<table class="memname">
1290
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::create_file </td>
1292
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1293
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code> </td>
1294
<td> ) </td>
1299
<div class="memdoc">
1302
Creates a new file and returns an output stream for writing to it.
1304
The file must not already exists.<p>
1305
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
1306
If a file with this name already exists a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with EXISTS will be thrown. If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown.<p>
1307
Some filesystems don't allow all filenames, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME, and if the name is to longa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with FILENAME_TOO_LONG will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
1308
<dl compact><dt><b>Parameters:</b></dt><dd>
1309
<table border="0" cellspacing="2" cellpadding="0">
1310
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1313
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a> for the newly created file. </dd></dl>
1317
<a class="anchor" name="86258e11b2884422819d051c3cfd07a2"></a><!-- doxytag: member="Gio::File::create_file" ref="86258e11b2884422819d051c3cfd07a2" args="(const Glib::RefPtr< Cancellable > &cancellable, FileCreateFlags flags=FILE_CREATE_NONE)" -->
1318
<div class="memitem">
1319
<div class="memproto">
1320
<table class="memname">
1322
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::create_file </td>
1324
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1325
<td class="paramname"> <em>cancellable</em>, </td>
1328
<td class="paramkey"></td>
1330
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1331
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
1336
<td></td><td></td><td></td>
1340
<div class="memdoc">
1343
Creates a new file and returns an output stream for writing to it.
1345
The file must not already exists.<p>
1346
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
1347
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
1348
If a file with this name already exists a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with EXISTS will be thrown. If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown.<p>
1349
Some filesystems don't allow all filenames, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME, and if the name is to longa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with FILENAME_TOO_LONG will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
1350
<dl compact><dt><b>Parameters:</b></dt><dd>
1351
<table border="0" cellspacing="2" cellpadding="0">
1352
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
1353
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1356
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a> for the newly created file. </dd></dl>
1360
<a class="anchor" name="3fe6ed015f3d2bb72aa7aceed8dc7ca1"></a><!-- doxytag: member="Gio::File::create_file_async" ref="3fe6ed015f3d2bb72aa7aceed8dc7ca1" args="(const SlotAsyncReady &slot, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1361
<div class="memitem">
1362
<div class="memproto">
1363
<table class="memname">
1365
<td class="memname">void Gio::File::create_file_async </td>
1367
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1368
<td class="paramname"> <em>slot</em>, </td>
1371
<td class="paramkey"></td>
1373
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1374
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
1377
<td class="paramkey"></td>
1379
<td class="paramtype">int </td>
1380
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1385
<td></td><td></td><td></td>
1389
<div class="memdoc">
1392
Asynchronously creates a new file and returns an output stream for writing to it.
1394
The file must not already exist. For more details, see <a class="el" href="classGio_1_1File.html#86258e11b2884422819d051c3cfd07a2" title="Creates a new file and returns an output stream for writing to it.">create_file()</a> which is the synchronous version of this call.<p>
1395
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#622b9f7aeaebe2ac53df0574c9c4211a" title="Finishes an asynchronous file create operation started with g_file_create_async()...">create_file_finish()</a> to get the result of the operation.<p>
1396
<dl compact><dt><b>Parameters:</b></dt><dd>
1397
<table border="0" cellspacing="2" cellpadding="0">
1398
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1399
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1400
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1406
<a class="anchor" name="e0c42446d37aa466173965b7db1a2053"></a><!-- doxytag: member="Gio::File::create_file_async" ref="e0c42446d37aa466173965b7db1a2053" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1407
<div class="memitem">
1408
<div class="memproto">
1409
<table class="memname">
1411
<td class="memname">void Gio::File::create_file_async </td>
1413
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1414
<td class="paramname"> <em>slot</em>, </td>
1417
<td class="paramkey"></td>
1419
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1420
<td class="paramname"> <em>cancellable</em>, </td>
1423
<td class="paramkey"></td>
1425
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1426
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
1429
<td class="paramkey"></td>
1431
<td class="paramtype">int </td>
1432
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1437
<td></td><td></td><td></td>
1441
<div class="memdoc">
1444
Asynchronously creates a new file and returns an output stream for writing to it.
1446
The file must not already exist. For more details, see <a class="el" href="classGio_1_1File.html#86258e11b2884422819d051c3cfd07a2" title="Creates a new file and returns an output stream for writing to it.">create_file()</a> which is the synchronous version of this call.<p>
1447
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#622b9f7aeaebe2ac53df0574c9c4211a" title="Finishes an asynchronous file create operation started with g_file_create_async()...">create_file_finish()</a> to get the result of the operation.<p>
1448
<dl compact><dt><b>Parameters:</b></dt><dd>
1449
<table border="0" cellspacing="2" cellpadding="0">
1450
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1451
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1452
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
1453
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1459
<a class="anchor" name="622b9f7aeaebe2ac53df0574c9c4211a"></a><!-- doxytag: member="Gio::File::create_file_finish" ref="622b9f7aeaebe2ac53df0574c9c4211a" args="(const Glib::RefPtr< AsyncResult > &result)" -->
1460
<div class="memitem">
1461
<div class="memproto">
1462
<table class="memname">
1464
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::create_file_finish </td>
1466
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
1467
<td class="paramname"> <em>result</em> </td>
1468
<td> ) </td>
1473
<div class="memdoc">
1476
Finishes an asynchronous file create operation started with g_file_create_async().
1478
<dl compact><dt><b>Parameters:</b></dt><dd>
1479
<table border="0" cellspacing="2" cellpadding="0">
1480
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
1483
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
1487
<a class="anchor" name="b311a1c606b3907865fc8aecd4691de8"></a><!-- doxytag: member="Gio::File::create_for_commandline_arg" ref="b311a1c606b3907865fc8aecd4691de8" args="(const std::string &arg)" -->
1488
<div class="memitem">
1489
<div class="memproto">
1490
<table class="memname">
1492
<td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>> Gio::File::create_for_commandline_arg </td>
1494
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
1495
<td class="paramname"> <em>arg</em> </td>
1496
<td> ) </td>
1497
<td><code> [static]</code></td>
1501
<div class="memdoc">
1504
Constructs a <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> for a given argument from the command line.
1506
The value of <em>arg</em> can be either a URI, an absolute path or a relative path resolved relative to the current working directory. This operation never fails, but the returned object might not support any I/O operation if arg points to a malformed path.<p>
1507
<dl compact><dt><b>Parameters:</b></dt><dd>
1508
<table border="0" cellspacing="2" cellpadding="0">
1509
<tr><td valign="top"></td><td valign="top"><em>arg</em> </td><td>A string containing a relative or absolute path. </td></tr>
1512
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A new instantiation of an appropriate <a class="el" href="classGio_1_1File.html" title="File and directory handling.">Gio::File</a> class. </dd></dl>
1516
<a class="anchor" name="7532baa6ce71fe27cfd1e9bba91a3536"></a><!-- doxytag: member="Gio::File::create_for_parse_name" ref="7532baa6ce71fe27cfd1e9bba91a3536" args="(const Glib::ustring &parse_name)" -->
1517
<div class="memitem">
1518
<div class="memproto">
1519
<table class="memname">
1521
<td class="memname">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>> Gio::File::create_for_parse_name </td>
1523
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
1524
<td class="paramname"> <em>parse_name</em> </td>
1525
<td> ) </td>
1526
<td><code> [static]</code></td>
1530
<div class="memdoc">
622
<a class="anchor" name="96552cfbaf2e5fa3659a1568db8cca91"></a><!-- doxytag: member="Gio::File::gobj" ref="96552cfbaf2e5fa3659a1568db8cca91" args="()" -->
623
<div class="memitem">
624
<div class="memproto">
625
<table class="memname">
627
<td class="memname">GFile* Gio::File::gobj </td>
629
<td class="paramname"> </td>
630
<td> ) </td>
631
<td><code> [inline]</code></td>
638
Provides access to the underlying C GObject.
641
<p>Reimplemented from <a class="el" href="classGlib_1_1Interface.html#969e9396f75132a9577428f4fa932d42">Glib::Interface</a>.</p>
645
<a class="anchor" name="5437bc648d8b73451e8bee0bc902cfc0"></a><!-- doxytag: member="Gio::File::gobj" ref="5437bc648d8b73451e8bee0bc902cfc0" args="() const " -->
646
<div class="memitem">
647
<div class="memproto">
648
<table class="memname">
650
<td class="memname">const GFile* Gio::File::gobj </td>
652
<td class="paramname"> </td>
653
<td> ) </td>
654
<td> const<code> [inline]</code></td>
661
Provides access to the underlying C GObject.
664
<p>Reimplemented from <a class="el" href="classGlib_1_1Interface.html#70a443071a69d3372c2cdd7128a91ed1">Glib::Interface</a>.</p>
2516
<a class="anchor" name="0320bac72ecc9ced1f894f1af696856f"></a><!-- doxytag: member="Gio::File::hash" ref="0320bac72ecc9ced1f894f1af696856f" args="() const " -->
2517
<div class="memitem">
2518
<div class="memproto">
2519
<table class="memname">
2521
<td class="memname">guint Gio::File::hash </td>
2523
<td class="paramname"> </td>
2524
<td> ) </td>
2529
<div class="memdoc">
2532
Creates a hash value for a <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>.
2534
This call does no blocking i/o. <dl compact><dt><b>Parameters:</b></dt><dd>
2535
<table border="0" cellspacing="2" cellpadding="0">
2536
<tr><td valign="top"></td><td valign="top"><em>file</em> </td><td>gconstpointer to a <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>. </td></tr>
2539
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if <em>file</em> is not a valid <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>, otherwise an integer that can be used as hash value for the <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>. This function is intended for easily hashing a <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> to add to a HashTable or similar data structure. </dd></dl>
2543
<a class="anchor" name="aa3b910bc9f240d4ebd0efc70979f163"></a><!-- doxytag: member="Gio::File::is_native" ref="aa3b910bc9f240d4ebd0efc70979f163" args="() const " -->
2544
<div class="memitem">
2545
<div class="memproto">
2546
<table class="memname">
2548
<td class="memname">bool Gio::File::is_native </td>
2550
<td class="paramname"> </td>
2551
<td> ) </td>
2556
<div class="memdoc">
2559
Checks to see if a file is native to the platform.
2561
A native file s one expressed in the platform-native filename format, e.g. "C:\Windows" or "/usr/bin/". This does not mean the file is local, as it might be on a locally mounted remote filesystem.<p>
2562
On some systems non-native files may be available using the native filesystem via a userspace filesystem (FUSE), in these cases this call will return <code>false</code>, but g_file_get_path() will still return a native path.<p>
2563
This call does no blocking i/o. <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if file is native. </dd></dl>
2567
<a class="anchor" name="77f7781b0ba65bc4e7e613b80b353fd7"></a><!-- doxytag: member="Gio::File::load_contents" ref="77f7781b0ba65bc4e7e613b80b353fd7" args="(char *&contents, gsize &length, std::string &etag_out)" -->
2568
<div class="memitem">
2569
<div class="memproto">
2570
<table class="memname">
2572
<td class="memname">bool Gio::File::load_contents </td>
2574
<td class="paramtype">char *& </td>
2575
<td class="paramname"> <em>contents</em>, </td>
2578
<td class="paramkey"></td>
2580
<td class="paramtype">gsize & </td>
2581
<td class="paramname"> <em>length</em>, </td>
2584
<td class="paramkey"></td>
2586
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2587
<td class="paramname"> <em>etag_out</em></td><td> </td>
2592
<td></td><td></td><td></td>
2596
<div class="memdoc">
2599
Loads the content of the file into memory, returning the size of the data.
2601
The data is always zero terminated, but this is not included in the resultant <em>length</em>.<p>
2602
<dl compact><dt><b>Parameters:</b></dt><dd>
2603
<table border="0" cellspacing="2" cellpadding="0">
2604
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A location to place the contents of the file. </td></tr>
2605
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>A location to place the length of the contents of the file. </td></tr>
2606
<tr><td valign="top"></td><td valign="top"><em>etag_out</em> </td><td>A location to place the current entity tag for the file. </td></tr>
2612
<a class="anchor" name="c53be228d732b34e062a2a57814cdf15"></a><!-- doxytag: member="Gio::File::load_contents" ref="c53be228d732b34e062a2a57814cdf15" args="(const Glib::RefPtr< Cancellable > &cancellable, char *&contents, gsize &length, std::string &etag_out)" -->
2613
<div class="memitem">
2614
<div class="memproto">
2615
<table class="memname">
2617
<td class="memname">bool Gio::File::load_contents </td>
2619
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2620
<td class="paramname"> <em>cancellable</em>, </td>
2623
<td class="paramkey"></td>
2625
<td class="paramtype">char *& </td>
2626
<td class="paramname"> <em>contents</em>, </td>
2629
<td class="paramkey"></td>
2631
<td class="paramtype">gsize & </td>
2632
<td class="paramname"> <em>length</em>, </td>
2635
<td class="paramkey"></td>
2637
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2638
<td class="paramname"> <em>etag_out</em></td><td> </td>
2643
<td></td><td></td><td></td>
2647
<div class="memdoc">
2650
Loads the content of the file into memory, returning the size of the data.
2652
The data is always zero terminated, but this is not included in the resultant <em>length</em>.<p>
2653
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> exception with CANCELLED will be returned.<p>
2654
<dl compact><dt><b>Parameters:</b></dt><dd>
2655
<table border="0" cellspacing="2" cellpadding="0">
2656
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A cancellable object. </td></tr>
2657
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A location to place the contents of the file. </td></tr>
2658
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>A location to place the length of the contents of the file. </td></tr>
2659
<tr><td valign="top"></td><td valign="top"><em>etag_out</em> </td><td>A location to place the current entity tag for the file. </td></tr>
2665
<a class="anchor" name="6af7ec98d5543bce07b917b65d7276ce"></a><!-- doxytag: member="Gio::File::load_contents_async" ref="6af7ec98d5543bce07b917b65d7276ce" args="(const SlotAsyncReady &slot)" -->
2666
<div class="memitem">
2667
<div class="memproto">
2668
<table class="memname">
2670
<td class="memname">void Gio::File::load_contents_async </td>
2672
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
2673
<td class="paramname"> <em>slot</em> </td>
2674
<td> ) </td>
2679
<div class="memdoc">
2682
Starts an asynchronous load of the file's contents.
2684
For more details, see <a class="el" href="classGio_1_1File.html#c53be228d732b34e062a2a57814cdf15" title="Loads the content of the file into memory, returning the size of the data.">load_contents()</a> which is the synchronous version of this call.<p>
2685
When the load operation has completed, the <em>slot</em> will be called. To finish the operation, call <a class="el" href="classGio_1_1File.html#5fd15277ab90bcc57db088be04cac457" title="Finishes an asynchronous load of the file's contents.">load_contents_finish()</a> with the <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a> provided to the <em>slot</em>.<p>
2686
<dl compact><dt><b>Parameters:</b></dt><dd>
2687
<table border="0" cellspacing="2" cellpadding="0">
2688
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
2694
<a class="anchor" name="d0e02ebffbaa13036e4636d2118f71a0"></a><!-- doxytag: member="Gio::File::load_contents_async" ref="d0e02ebffbaa13036e4636d2118f71a0" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable)" -->
2695
<div class="memitem">
2696
<div class="memproto">
2697
<table class="memname">
2699
<td class="memname">void Gio::File::load_contents_async </td>
2701
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
2702
<td class="paramname"> <em>slot</em>, </td>
2705
<td class="paramkey"></td>
2707
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2708
<td class="paramname"> <em>cancellable</em></td><td> </td>
2713
<td></td><td></td><td></td>
2717
<div class="memdoc">
2720
Starts an asynchronous load of the file's contents.
2722
For more details, see <a class="el" href="classGio_1_1File.html#c53be228d732b34e062a2a57814cdf15" title="Loads the content of the file into memory, returning the size of the data.">load_contents()</a> which is the synchronous version of this call.<p>
2723
When the load operation has completed, the <em>slot</em> will be called. To finish the operation, call <a class="el" href="classGio_1_1File.html#5fd15277ab90bcc57db088be04cac457" title="Finishes an asynchronous load of the file's contents.">load_contents_finish()</a> with the <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a> provided to the <em>slot</em>.<p>
2724
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
2725
<dl compact><dt><b>Parameters:</b></dt><dd>
2726
<table border="0" cellspacing="2" cellpadding="0">
2727
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
2728
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
2734
<a class="anchor" name="5fd15277ab90bcc57db088be04cac457"></a><!-- doxytag: member="Gio::File::load_contents_finish" ref="5fd15277ab90bcc57db088be04cac457" args="(const Glib::RefPtr< AsyncResult > &result, char *&contents, gsize &length, std::string &etag_out)" -->
2735
<div class="memitem">
2736
<div class="memproto">
2737
<table class="memname">
2739
<td class="memname">bool Gio::File::load_contents_finish </td>
2741
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
2742
<td class="paramname"> <em>result</em>, </td>
2745
<td class="paramkey"></td>
2747
<td class="paramtype">char *& </td>
2748
<td class="paramname"> <em>contents</em>, </td>
2751
<td class="paramkey"></td>
2753
<td class="paramtype">gsize & </td>
2754
<td class="paramname"> <em>length</em>, </td>
2757
<td class="paramkey"></td>
2759
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2760
<td class="paramname"> <em>etag_out</em></td><td> </td>
2765
<td></td><td></td><td></td>
2769
<div class="memdoc">
2772
Finishes an asynchronous load of the <em>file's</em> contents.
2774
The contents are placed in <em>contents</em>, and <em>length</em> is set to the size of the <em>contents</em> string. If <em>etag_out</em> is present, it will be set to the new entity tag for the <em>file</em>. <dl compact><dt><b>Parameters:</b></dt><dd>
2775
<table border="0" cellspacing="2" cellpadding="0">
2776
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
2777
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A location to place the contents of the file. </td></tr>
2778
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>A location to place the length of the contents of the file. </td></tr>
2779
<tr><td valign="top"></td><td valign="top"><em>etag_out</em> </td><td>A location to place the current entity tag for the file. </td></tr>
2782
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the load was successful. If <code>false</code> and <em>error</em> is present, it will be set appropriately. </dd></dl>
2786
<a class="anchor" name="362d71932c0ba8797a8c47b77df1b6d7"></a><!-- doxytag: member="Gio::File::load_partial_contents_async" ref="362d71932c0ba8797a8c47b77df1b6d7" args="(const SlotReadMore &slot_read_more, const SlotAsyncReady &slot_async_ready)" -->
2787
<div class="memitem">
2788
<div class="memproto">
2789
<table class="memname">
2791
<td class="memname">void Gio::File::load_partial_contents_async </td>
2793
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#dd182d22071784fc345adc757b3d687b">SlotReadMore</a>& </td>
2794
<td class="paramname"> <em>slot_read_more</em>, </td>
2797
<td class="paramkey"></td>
2799
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
2800
<td class="paramname"> <em>slot_async_ready</em></td><td> </td>
2805
<td></td><td></td><td></td>
2809
<div class="memdoc">
2812
Reads the partial contents of a file.
2814
The <em>slot_read_more</em> callback slot should be used to stop reading from the file when appropriate. This operation can be finished by <a class="el" href="classGio_1_1File.html#4b323508401d2e6fd2b3ad659f9bb5eb" title="Finishes an asynchronous partial load operation that was started with load_partial_contents_async()...">load_partial_contents_finish()</a>.<p>
2815
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
2816
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#4b323508401d2e6fd2b3ad659f9bb5eb" title="Finishes an asynchronous partial load operation that was started with load_partial_contents_async()...">load_partial_contents_finish()</a> to get the result of the operation.<p>
2817
<dl compact><dt><b>Parameters:</b></dt><dd>
2818
<table border="0" cellspacing="2" cellpadding="0">
2819
<tr><td valign="top"></td><td valign="top"><em>slot_read_more</em> </td><td>A callback to receive partial data and to specify whether further data should be read. </td></tr>
2820
<tr><td valign="top"></td><td valign="top"><em>slot_async_ready</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
2826
<a class="anchor" name="0e8d95fcdf7c2aa38f54e90a22d3ab6f"></a><!-- doxytag: member="Gio::File::load_partial_contents_async" ref="0e8d95fcdf7c2aa38f54e90a22d3ab6f" args="(const SlotReadMore &slot_read_more, const SlotAsyncReady &slot_async_ready, const Glib::RefPtr< Cancellable > &cancellable)" -->
2827
<div class="memitem">
2828
<div class="memproto">
2829
<table class="memname">
2831
<td class="memname">void Gio::File::load_partial_contents_async </td>
2833
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#dd182d22071784fc345adc757b3d687b">SlotReadMore</a>& </td>
2834
<td class="paramname"> <em>slot_read_more</em>, </td>
2837
<td class="paramkey"></td>
2839
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
2840
<td class="paramname"> <em>slot_async_ready</em>, </td>
2843
<td class="paramkey"></td>
2845
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2846
<td class="paramname"> <em>cancellable</em></td><td> </td>
2851
<td></td><td></td><td></td>
2855
<div class="memdoc">
2858
Reads the partial contents of a file.
2860
The <em>slot_read_more</em> callback slot should be used to stop reading from the file when appropriate. This operation can be finished by <a class="el" href="classGio_1_1File.html#4b323508401d2e6fd2b3ad659f9bb5eb" title="Finishes an asynchronous partial load operation that was started with load_partial_contents_async()...">load_partial_contents_finish()</a>.<p>
2861
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
2862
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#4b323508401d2e6fd2b3ad659f9bb5eb" title="Finishes an asynchronous partial load operation that was started with load_partial_contents_async()...">load_partial_contents_finish()</a> to get the result of the operation.<p>
2863
<dl compact><dt><b>Parameters:</b></dt><dd>
2864
<table border="0" cellspacing="2" cellpadding="0">
2865
<tr><td valign="top"></td><td valign="top"><em>slot_read_more</em> </td><td>A callback to receive partial data and to specify whether further data should be read. </td></tr>
2866
<tr><td valign="top"></td><td valign="top"><em>slot_async_ready</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
2867
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
2873
<a class="anchor" name="4b323508401d2e6fd2b3ad659f9bb5eb"></a><!-- doxytag: member="Gio::File::load_partial_contents_finish" ref="4b323508401d2e6fd2b3ad659f9bb5eb" args="(const Glib::RefPtr< AsyncResult > &result, char *&contents, gsize &length, std::string &etag_out)" -->
2874
<div class="memitem">
2875
<div class="memproto">
2876
<table class="memname">
2878
<td class="memname">bool Gio::File::load_partial_contents_finish </td>
2880
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
2881
<td class="paramname"> <em>result</em>, </td>
2884
<td class="paramkey"></td>
2886
<td class="paramtype">char *& </td>
2887
<td class="paramname"> <em>contents</em>, </td>
2890
<td class="paramkey"></td>
2892
<td class="paramtype">gsize & </td>
2893
<td class="paramname"> <em>length</em>, </td>
2896
<td class="paramkey"></td>
2898
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2899
<td class="paramname"> <em>etag_out</em></td><td> </td>
2904
<td></td><td></td><td></td>
2908
<div class="memdoc">
2911
Finishes an asynchronous partial load operation that was started with <a class="el" href="classGio_1_1File.html#0e8d95fcdf7c2aa38f54e90a22d3ab6f" title="Reads the partial contents of a file.">load_partial_contents_async()</a>.
2913
<dl compact><dt><b>Parameters:</b></dt><dd>
2914
<table border="0" cellspacing="2" cellpadding="0">
2915
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
2916
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A location to place the contents of the file. </td></tr>
2917
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>A location to place the length of the contents of the file. </td></tr>
2918
<tr><td valign="top"></td><td valign="top"><em>etag_out</em> </td><td>A location to place the current entity tag for the file. </td></tr>
2921
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the load was successful. If <code>false</code> and <em>error</em> is present, it will be set appropriately. </dd></dl>
2925
<a class="anchor" name="a1e9aa5f58a76a8562fd00a13434f554"></a><!-- doxytag: member="Gio::File::make_directory" ref="a1e9aa5f58a76a8562fd00a13434f554" args="()" -->
2926
<div class="memitem">
2927
<div class="memproto">
2928
<table class="memname">
2930
<td class="memname">bool Gio::File::make_directory </td>
2932
<td class="paramname"> </td>
2933
<td> ) </td>
2938
<div class="memdoc">
2941
Creates a directory.
2943
Note that this will only create a child directory of the immediate parent directory of the path or URI given by the <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>. To recursively create directories, see <a class="el" href="classGio_1_1File.html#874a487551d49ca62b31a3e5cf32fee6" title="Creates a directory and any parent directories that may not exist, similar to 'mkdir...">make_directory_with_parents()</a>. This function will fail if the parent directory does not exist, throwing an exception with IO_ERROR_NOT_FOUND. If the file system doesn't support creating directories, this function will fail, throwing an exception with IO_ERROR_NOT_SUPPORTED.<p>
2944
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on successful creation, <code>false</code> otherwise. </dd></dl>
2948
<a class="anchor" name="bfa05e23e95e77cabac289ab4e294a58"></a><!-- doxytag: member="Gio::File::make_directory" ref="bfa05e23e95e77cabac289ab4e294a58" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
2949
<div class="memitem">
2950
<div class="memproto">
2951
<table class="memname">
2953
<td class="memname">bool Gio::File::make_directory </td>
2955
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2956
<td class="paramname"> <em>cancellable</em> </td>
2957
<td> ) </td>
2962
<div class="memdoc">
2965
Creates a directory.
2967
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
2968
<table border="0" cellspacing="2" cellpadding="0">
2969
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
2972
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on successful creation, <code>false</code> otherwise. </dd></dl>
2976
<a class="anchor" name="874a487551d49ca62b31a3e5cf32fee6"></a><!-- doxytag: member="Gio::File::make_directory_with_parents" ref="874a487551d49ca62b31a3e5cf32fee6" args="()" -->
2977
<div class="memitem">
2978
<div class="memproto">
2979
<table class="memname">
2981
<td class="memname">bool Gio::File::make_directory_with_parents </td>
2983
<td class="paramname"> </td>
2984
<td> ) </td>
2989
<div class="memdoc">
2992
Creates a directory and any parent directories that may not exist, similar to 'mkdir -p'.
2994
If the file system does not support creating directories, this function will fail, throwing an exception with IO_ERROR_NOT_SUPPORTED.<p>
2995
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on successful creation, <code>false</code> otherwise.</dd></dl>
2996
<dl compact><dt><b><a class="el" href="newin2p18s.html#_newin2p18s000018">Since glibmm 2.18:</a></b></dt><dd></dd></dl>
3000
<a class="anchor" name="fb0b5b094339057b4b15952eb73e08d6"></a><!-- doxytag: member="Gio::File::make_directory_with_parents" ref="fb0b5b094339057b4b15952eb73e08d6" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
3001
<div class="memitem">
3002
<div class="memproto">
3003
<table class="memname">
3005
<td class="memname">bool Gio::File::make_directory_with_parents </td>
3007
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3008
<td class="paramname"> <em>cancellable</em> </td>
3009
<td> ) </td>
3014
<div class="memdoc">
3017
Creates a directory and any parent directories that may not exist similar to 'mkdir -p'.
3019
If the file system does not support creating directories, this function will fail, setting <em>error</em> to IO_ERROR_NOT_SUPPORTED.<p>
3020
For a local <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> the newly created directories will have the default (current) ownership and permissions of the current process.<p>
3021
If <em>cancellable</em> is not <code>0</code>, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error IO_ERROR_CANCELLED will be returned. <dl compact><dt><b>Parameters:</b></dt><dd>
3022
<table border="0" cellspacing="2" cellpadding="0">
3023
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object, <code>0</code> to ignore. </td></tr>
3026
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if all directories have been successfully created, <code>false</code> otherwise.</dd></dl>
3027
<dl compact><dt><b><a class="el" href="newin2p18s.html#_newin2p18s000017">Since glibmm 2.18:</a></b></dt><dd></dd></dl>
3031
<a class="anchor" name="8a9a3d060c2675ff9ac1c758f0b2c024"></a><!-- doxytag: member="Gio::File::make_symbolic_link" ref="8a9a3d060c2675ff9ac1c758f0b2c024" args="(const std::string &symlink_value)" -->
3032
<div class="memitem">
3033
<div class="memproto">
3034
<table class="memname">
3036
<td class="memname">bool Gio::File::make_symbolic_link </td>
3038
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
3039
<td class="paramname"> <em>symlink_value</em> </td>
3040
<td> ) </td>
3045
<div class="memdoc">
3048
Creates a symbolic link.
3050
<dl compact><dt><b>Parameters:</b></dt><dd>
3051
<table border="0" cellspacing="2" cellpadding="0">
3052
<tr><td valign="top"></td><td valign="top"><em>symlink_value</em> </td><td>A string with the value of the new symlink. </td></tr>
3055
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on the creation of a new symlink, <code>false</code> otherwise. </dd></dl>
3059
<a class="anchor" name="2709318e1f24dfd0cd498d28f5e1b8fe"></a><!-- doxytag: member="Gio::File::make_symbolic_link" ref="2709318e1f24dfd0cd498d28f5e1b8fe" args="(const std::string &symlink_value, const Glib::RefPtr< Cancellable > &cancellable)" -->
3060
<div class="memitem">
3061
<div class="memproto">
3062
<table class="memname">
3064
<td class="memname">bool Gio::File::make_symbolic_link </td>
3066
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
3067
<td class="paramname"> <em>symlink_value</em>, </td>
3070
<td class="paramkey"></td>
3072
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3073
<td class="paramname"> <em>cancellable</em></td><td> </td>
3078
<td></td><td></td><td></td>
3082
<div class="memdoc">
3085
Creates a symbolic link.
3087
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
3088
<table border="0" cellspacing="2" cellpadding="0">
3089
<tr><td valign="top"></td><td valign="top"><em>symlink_value</em> </td><td>A string with the value of the new symlink. </td></tr>
3090
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3093
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on the creation of a new symlink, <code>false</code> otherwise. </dd></dl>
3097
<a class="anchor" name="50896969a9de87f810f0bf5e2d3335bd"></a><!-- doxytag: member="Gio::File::monitor" ref="50896969a9de87f810f0bf5e2d3335bd" args="(FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
3098
<div class="memitem">
3099
<div class="memproto">
3100
<table class="memname">
3102
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor </td>
3104
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
3105
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code> </td>
3106
<td> ) </td>
3111
<div class="memdoc">
3114
Obtains a file monitor for the given file.
3116
If no file notification mechanism exists, then regular polling of the file is used.<p>
3117
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3118
<dl compact><dt><b>Parameters:</b></dt><dd>
3119
<table border="0" cellspacing="2" cellpadding="0">
3120
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
3121
<tr><td valign="top"></td><td valign="top"><em>A</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3124
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file.</dd></dl>
3125
<dl compact><dt><b><a class="el" href="newin2p18s.html#_newin2p18s000020">Since glibmm 2.18:</a></b></dt><dd></dd></dl>
3129
<a class="anchor" name="88aacee7bb6f6d968b4383311a9dd002"></a><!-- doxytag: member="Gio::File::monitor" ref="88aacee7bb6f6d968b4383311a9dd002" args="(const Glib::RefPtr< Cancellable > &cancellable, FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
3130
<div class="memitem">
3131
<div class="memproto">
3132
<table class="memname">
3134
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor </td>
3136
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3137
<td class="paramname"> <em>cancellable</em>, </td>
3140
<td class="paramkey"></td>
3142
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
3143
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code></td><td> </td>
3148
<td></td><td></td><td></td>
3152
<div class="memdoc">
3155
Obtains a file monitor for the given file.
3157
If no file notification mechanism exists, then regular polling of the file is used.<p>
3158
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3159
<dl compact><dt><b>Parameters:</b></dt><dd>
3160
<table border="0" cellspacing="2" cellpadding="0">
3161
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
3162
<tr><td valign="top"></td><td valign="top"><em>A</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3165
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file.</dd></dl>
3166
<dl compact><dt><b><a class="el" href="newin2p18s.html#_newin2p18s000019">Since glibmm 2.18:</a></b></dt><dd></dd></dl>
3170
<a class="anchor" name="12d36689c1024ff9fc8819f619910a92"></a><!-- doxytag: member="Gio::File::monitor_directory" ref="12d36689c1024ff9fc8819f619910a92" args="(FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
3171
<div class="memitem">
3172
<div class="memproto">
3173
<table class="memname">
3175
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor_directory </td>
3177
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
3178
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code> </td>
3179
<td> ) </td>
3184
<div class="memdoc">
3187
Obtains a directory monitor for the given file.
3189
This may fail if directory monitoring is not supported.<p>
3190
<dl compact><dt><b>Parameters:</b></dt><dd>
3191
<table border="0" cellspacing="2" cellpadding="0">
3192
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
3195
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file. </dd></dl>
3199
<a class="anchor" name="a0fa22ffba0ff50779e49ff9d12344e6"></a><!-- doxytag: member="Gio::File::monitor_directory" ref="a0fa22ffba0ff50779e49ff9d12344e6" args="(const Glib::RefPtr< Cancellable > &cancellable, FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
3200
<div class="memitem">
3201
<div class="memproto">
3202
<table class="memname">
3204
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor_directory </td>
3206
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3207
<td class="paramname"> <em>cancellable</em>, </td>
3210
<td class="paramkey"></td>
3212
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
3213
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code></td><td> </td>
3218
<td></td><td></td><td></td>
3222
<div class="memdoc">
3225
Obtains a directory monitor for the given file.
3227
This may fail if directory monitoring is not supported.<p>
3228
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3229
<dl compact><dt><b>Parameters:</b></dt><dd>
3230
<table border="0" cellspacing="2" cellpadding="0">
3231
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3232
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
3235
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file. </dd></dl>
3239
<a class="anchor" name="a410183ed3b4a745093383d038d271b9"></a><!-- doxytag: member="Gio::File::monitor_file" ref="a410183ed3b4a745093383d038d271b9" args="(FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
3240
<div class="memitem">
3241
<div class="memproto">
3242
<table class="memname">
3244
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor_file </td>
3246
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
3247
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code> </td>
3248
<td> ) </td>
3253
<div class="memdoc">
3256
Obtains a file monitor for the given file.
3258
If no file notification mechanism exists, then regular polling of the file is used.<p>
3259
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3260
<dl compact><dt><b>Parameters:</b></dt><dd>
3261
<table border="0" cellspacing="2" cellpadding="0">
3262
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
3263
<tr><td valign="top"></td><td valign="top"><em>A</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3266
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file. </dd></dl>
3270
<a class="anchor" name="b8e14809f330ddd58e628c96921cd987"></a><!-- doxytag: member="Gio::File::monitor_file" ref="b8e14809f330ddd58e628c96921cd987" args="(const Glib::RefPtr< Cancellable > &cancellable, FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
3271
<div class="memitem">
3272
<div class="memproto">
3273
<table class="memname">
3275
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor_file </td>
3277
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3278
<td class="paramname"> <em>cancellable</em>, </td>
3281
<td class="paramkey"></td>
3283
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
3284
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code></td><td> </td>
3289
<td></td><td></td><td></td>
3293
<div class="memdoc">
3296
Obtains a file monitor for the given file.
3298
If no file notification mechanism exists, then regular polling of the file is used.<p>
3299
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3300
<dl compact><dt><b>Parameters:</b></dt><dd>
3301
<table border="0" cellspacing="2" cellpadding="0">
3302
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
3303
<tr><td valign="top"></td><td valign="top"><em>A</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3306
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file. </dd></dl>
3310
<a class="anchor" name="20f8f18876102a5efaa0536bfa71d71c"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume" ref="20f8f18876102a5efaa0536bfa71d71c" args="(MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
3311
<div class="memitem">
3312
<div class="memproto">
3313
<table class="memname">
3315
<td class="memname">void Gio::File::mount_enclosing_volume </td>
3317
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
3318
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code> </td>
3319
<td> ) </td>
3324
<div class="memdoc">
3327
Starts a <em>mount_operation</em>, mounting the volume that contains the file.
3332
<a class="anchor" name="2172cdcdb683630b719c521bf00b1eb4"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume" ref="2172cdcdb683630b719c521bf00b1eb4" args="(const SlotAsyncReady &slot, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
3333
<div class="memitem">
3334
<div class="memproto">
3335
<table class="memname">
3337
<td class="memname">void Gio::File::mount_enclosing_volume </td>
3339
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3340
<td class="paramname"> <em>slot</em>, </td>
3343
<td class="paramkey"></td>
3345
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
3346
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
3351
<td></td><td></td><td></td>
3355
<div class="memdoc">
3358
Starts a <em>mount_operation</em>, mounting the volume that contains the file.
3360
When this operation has completed, <em>slot</em> will be called with, and the operation can be finalized with <a class="el" href="classGio_1_1File.html#efd44b1b3467bcc474b345ff98b4aa6d" title="Finishes a mount operation started by g_file_mount_enclosing_volume().">mount_enclosing_volume_finish()</a>.<p>
3361
<dl compact><dt><b>Parameters:</b></dt><dd>
3362
<table border="0" cellspacing="2" cellpadding="0">
3363
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
3369
<a class="anchor" name="70fd22116d9c8682433c4bb8cbd764c1"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume" ref="70fd22116d9c8682433c4bb8cbd764c1" args="(const Glib::RefPtr< MountOperation > &mount_operation, const SlotAsyncReady &slot, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
3370
<div class="memitem">
3371
<div class="memproto">
3372
<table class="memname">
3374
<td class="memname">void Gio::File::mount_enclosing_volume </td>
3376
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MountOperation.html">MountOperation</a>>& </td>
3377
<td class="paramname"> <em>mount_operation</em>, </td>
3380
<td class="paramkey"></td>
3382
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3383
<td class="paramname"> <em>slot</em>, </td>
3386
<td class="paramkey"></td>
3388
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
3389
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
3394
<td></td><td></td><td></td>
3398
<div class="memdoc">
3401
Starts a <em>mount_operation</em>, mounting the volume that contains the file.
3403
When this operation has completed, <em>slot</em> will be called with, and the operation can be finalized with <a class="el" href="classGio_1_1File.html#efd44b1b3467bcc474b345ff98b4aa6d" title="Finishes a mount operation started by g_file_mount_enclosing_volume().">mount_enclosing_volume_finish()</a>.<p>
3404
<dl compact><dt><b>Parameters:</b></dt><dd>
3405
<table border="0" cellspacing="2" cellpadding="0">
3406
<tr><td valign="top"></td><td valign="top"><em>mount_operation</em> </td><td>A <a class="el" href="classGio_1_1MountOperation.html" title="Authentication methods for mountable locations.">MountOperation</a>. </td></tr>
3407
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
3413
<a class="anchor" name="144aa2de6b696da90a6baffbe959d732"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume" ref="144aa2de6b696da90a6baffbe959d732" args="(const Glib::RefPtr< MountOperation > &mount_operation, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
3414
<div class="memitem">
3415
<div class="memproto">
3416
<table class="memname">
3418
<td class="memname">void Gio::File::mount_enclosing_volume </td>
3420
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MountOperation.html">MountOperation</a>>& </td>
3421
<td class="paramname"> <em>mount_operation</em>, </td>
3424
<td class="paramkey"></td>
3426
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3427
<td class="paramname"> <em>slot</em>, </td>
3430
<td class="paramkey"></td>
3432
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3433
<td class="paramname"> <em>cancellable</em>, </td>
3436
<td class="paramkey"></td>
3438
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
3439
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
3444
<td></td><td></td><td></td>
3448
<div class="memdoc">
3451
Starts a <em>mount_operation</em>, mounting the volume that contains the file.
3453
When this operation has completed, <em>slot</em> will be called with, and the operation can be finalized with <a class="el" href="classGio_1_1File.html#efd44b1b3467bcc474b345ff98b4aa6d" title="Finishes a mount operation started by g_file_mount_enclosing_volume().">mount_enclosing_volume_finish()</a>.<p>
3454
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3455
<dl compact><dt><b>Parameters:</b></dt><dd>
3456
<table border="0" cellspacing="2" cellpadding="0">
3457
<tr><td valign="top"></td><td valign="top"><em>mount_operation</em> </td><td>A <a class="el" href="classGio_1_1MountOperation.html" title="Authentication methods for mountable locations.">MountOperation</a>. </td></tr>
3458
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
3459
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3465
<a class="anchor" name="efd44b1b3467bcc474b345ff98b4aa6d"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume_finish" ref="efd44b1b3467bcc474b345ff98b4aa6d" args="(const Glib::RefPtr< AsyncResult > &result)" -->
3466
<div class="memitem">
3467
<div class="memproto">
3468
<table class="memname">
3470
<td class="memname">bool Gio::File::mount_enclosing_volume_finish </td>
3472
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
3473
<td class="paramname"> <em>result</em> </td>
3474
<td> ) </td>
3479
<div class="memdoc">
3482
Finishes a mount operation started by g_file_mount_enclosing_volume().
3484
<dl compact><dt><b>Parameters:</b></dt><dd>
3485
<table border="0" cellspacing="2" cellpadding="0">
3486
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
3489
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if successful. If an error has occurred, this function will return <code>false</code> and set <em>error</em> appropriately if present. </dd></dl>
3493
<a class="anchor" name="8501fa88f4aaa8d52c001596960a4572"></a><!-- doxytag: member="Gio::File::mount_mountable" ref="8501fa88f4aaa8d52c001596960a4572" args="(MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
3494
<div class="memitem">
3495
<div class="memproto">
3496
<table class="memname">
3498
<td class="memname">void Gio::File::mount_mountable </td>
3500
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
3501
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code> </td>
3502
<td> ) </td>
3507
<div class="memdoc">
3510
Mounts a file of type FILE_TYPE_MOUNTABLE without user interaction.
3515
<a class="anchor" name="049e06c3d95b49ad4bff1837ef6d8677"></a><!-- doxytag: member="Gio::File::mount_mountable" ref="049e06c3d95b49ad4bff1837ef6d8677" args="(const SlotAsyncReady &slot, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
3516
<div class="memitem">
3517
<div class="memproto">
3518
<table class="memname">
3520
<td class="memname">void Gio::File::mount_mountable </td>
3522
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3523
<td class="paramname"> <em>slot</em>, </td>
3526
<td class="paramkey"></td>
3528
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
3529
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
3534
<td></td><td></td><td></td>
3538
<div class="memdoc">
3541
Mounts a file of type FILE_TYPE_MOUNTABLE without user interaction.
3543
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#e15d36a7969c55122b9f85a1690a46e8" title="Finishes a mount operation.">mount_mountable_finish()</a> to get the result of the operation.<p>
3544
<dl compact><dt><b>Parameters:</b></dt><dd>
3545
<table border="0" cellspacing="2" cellpadding="0">
3546
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
3552
<a class="anchor" name="c3c29682ef5a50de73dc2c3c3333301c"></a><!-- doxytag: member="Gio::File::mount_mountable" ref="c3c29682ef5a50de73dc2c3c3333301c" args="(const Glib::RefPtr< MountOperation > &mount_operation, const SlotAsyncReady &slot, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
3553
<div class="memitem">
3554
<div class="memproto">
3555
<table class="memname">
3557
<td class="memname">void Gio::File::mount_mountable </td>
3559
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MountOperation.html">MountOperation</a>>& </td>
3560
<td class="paramname"> <em>mount_operation</em>, </td>
3563
<td class="paramkey"></td>
3565
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3566
<td class="paramname"> <em>slot</em>, </td>
3569
<td class="paramkey"></td>
3571
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
3572
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
3577
<td></td><td></td><td></td>
3581
<div class="memdoc">
3584
Mounts a file of type FILE_TYPE_MOUNTABLE.
3586
Using <em>mount_operation</em>, you can request callbacks when, for instance, passwords are needed during authentication.<p>
3587
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#e15d36a7969c55122b9f85a1690a46e8" title="Finishes a mount operation.">mount_mountable_finish()</a> to get the result of the operation.<p>
3588
<dl compact><dt><b>Parameters:</b></dt><dd>
3589
<table border="0" cellspacing="2" cellpadding="0">
3590
<tr><td valign="top"></td><td valign="top"><em>mount_operation</em> </td><td>A <a class="el" href="classGio_1_1MountOperation.html" title="Authentication methods for mountable locations.">MountOperation</a>. </td></tr>
3591
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
3597
<a class="anchor" name="40c88a403f5d01d722b5900545b6a4fe"></a><!-- doxytag: member="Gio::File::mount_mountable" ref="40c88a403f5d01d722b5900545b6a4fe" args="(const Glib::RefPtr< MountOperation > &mount_operation, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
3598
<div class="memitem">
3599
<div class="memproto">
3600
<table class="memname">
3602
<td class="memname">void Gio::File::mount_mountable </td>
3604
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MountOperation.html">MountOperation</a>>& </td>
3605
<td class="paramname"> <em>mount_operation</em>, </td>
3608
<td class="paramkey"></td>
3610
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3611
<td class="paramname"> <em>slot</em>, </td>
3614
<td class="paramkey"></td>
3616
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3617
<td class="paramname"> <em>cancellable</em>, </td>
3620
<td class="paramkey"></td>
3622
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
3623
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
3628
<td></td><td></td><td></td>
3632
<div class="memdoc">
3635
Mounts a file of type FILE_TYPE_MOUNTABLE.
3637
Using <em>mount_operation</em>, you can request callbacks when, for instance, passwords are needed during authentication.<p>
3638
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3639
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#e15d36a7969c55122b9f85a1690a46e8" title="Finishes a mount operation.">mount_mountable_finish()</a> to get the result of the operation.<p>
3640
<dl compact><dt><b>Parameters:</b></dt><dd>
3641
<table border="0" cellspacing="2" cellpadding="0">
3642
<tr><td valign="top"></td><td valign="top"><em>mount_operation</em> </td><td>A <a class="el" href="classGio_1_1MountOperation.html" title="Authentication methods for mountable locations.">MountOperation</a>. </td></tr>
3643
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
3644
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
3650
<a class="anchor" name="e15d36a7969c55122b9f85a1690a46e8"></a><!-- doxytag: member="Gio::File::mount_mountable_finish" ref="e15d36a7969c55122b9f85a1690a46e8" args="(const Glib::RefPtr< AsyncResult > &result)" -->
3651
<div class="memitem">
3652
<div class="memproto">
3653
<table class="memname">
3655
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>> Gio::File::mount_mountable_finish </td>
3657
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
3658
<td class="paramname"> <em>result</em> </td>
3659
<td> ) </td>
3664
<div class="memdoc">
3667
Finishes a mount operation.
3669
See g_file_mount_mountable() for details.<p>
3670
Finish an asynchronous mount operation that was started with g_file_mount_mountable(). <dl compact><dt><b>Parameters:</b></dt><dd>
3671
<table border="0" cellspacing="2" cellpadding="0">
3672
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
3675
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
3679
<a class="anchor" name="ba1fab56c3a8bea0b7e4d7f7324c5320"></a><!-- doxytag: member="Gio::File::move" ref="ba1fab56c3a8bea0b7e4d7f7324c5320" args="(const Glib::RefPtr< File > &destination, FileCopyFlags flags=FILE_COPY_NONE)" -->
3680
<div class="memitem">
3681
<div class="memproto">
3682
<table class="memname">
3684
<td class="memname">bool Gio::File::move </td>
3686
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3687
<td class="paramname"> <em>destination</em>, </td>
3690
<td class="paramkey"></td>
3692
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3693
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3698
<td></td><td></td><td></td>
3702
<div class="memdoc">
3708
<a class="anchor" name="dfb2d8bfed1cb7af50e5e5795ebea732"></a><!-- doxytag: member="Gio::File::move" ref="dfb2d8bfed1cb7af50e5e5795ebea732" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot, FileCopyFlags flags=FILE_COPY_NONE)" -->
3709
<div class="memitem">
3710
<div class="memproto">
3711
<table class="memname">
3713
<td class="memname">bool Gio::File::move </td>
3715
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3716
<td class="paramname"> <em>destination</em>, </td>
3719
<td class="paramkey"></td>
3721
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
3722
<td class="paramname"> <em>slot</em>, </td>
3725
<td class="paramkey"></td>
3727
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3728
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3733
<td></td><td></td><td></td>
3737
<div class="memdoc">
3743
<a class="anchor" name="51c0d55880178c37dee578fdc723b0f2"></a><!-- doxytag: member="Gio::File::move" ref="51c0d55880178c37dee578fdc723b0f2" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE)" -->
3744
<div class="memitem">
3745
<div class="memproto">
3746
<table class="memname">
3748
<td class="memname">bool Gio::File::move </td>
3750
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3751
<td class="paramname"> <em>destination</em>, </td>
3754
<td class="paramkey"></td>
3756
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
3757
<td class="paramname"> <em>slot</em>, </td>
3760
<td class="paramkey"></td>
3762
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3763
<td class="paramname"> <em>cancellable</em>, </td>
3766
<td class="paramkey"></td>
3768
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3769
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3774
<td></td><td></td><td></td>
3778
<div class="memdoc">
3781
Tries to move the file or directory source to the location specified by destination.
3783
If native move operations are supported then this is used, otherwise a copy and delete fallback is used. The native implementation may support moving directories (for instance on moves inside the same filesystem), but the fallback code does not.<p>
3784
If the flag FILE_COPY_OVERWRITE is specified an already existing destination file is overwritten.<p>
3785
If the flag FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks will be copied as symlinks, otherwise the target of the source symlink will be copied.<p>
3786
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3787
The operation can be monitored via the <em>slot</em> callback. If the source file does not exist then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown, independent on the status of the destination.<p>
3788
If G_FILE_COPY_OVERWRITE is not specified and the target exists, then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with EXISTS will be thrown.<p>
3789
If trying to overwrite a file over a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. If trying to overwrite a directory with a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WOULD_MERGE will be thrown.<p>
3790
If the source is a directory and the target does not exist, or FILE_COPY_OVERWRITE is specified and the target is a file, then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WOULD_RECURSE may be thrown (if the native move operation isn't available).
3793
<a class="anchor" name="0c0fd0ece2570b6704889df5ee43c283"></a><!-- doxytag: member="Gio::File::query_default_handler" ref="0c0fd0ece2570b6704889df5ee43c283" args="()" -->
3794
<div class="memitem">
3795
<div class="memproto">
3796
<table class="memname">
3798
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AppInfo.html">AppInfo</a>> Gio::File::query_default_handler </td>
3800
<td class="paramname"> </td>
3801
<td> ) </td>
3806
<div class="memdoc">
3809
Returns the <a class="el" href="classGio_1_1AppInfo.html" title="Application information, to describe applications installed on the system, and launch...">AppInfo</a> that is registered as the default application to handle the file specified by the file.
3811
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1AppInfo.html" title="Application information, to describe applications installed on the system, and launch...">AppInfo</a> if the handle was found, or an empty RefPtr if there were errors. </dd></dl>
3815
<a class="anchor" name="753546465735b25633b003333b66d05c"></a><!-- doxytag: member="Gio::File::query_default_handler" ref="753546465735b25633b003333b66d05c" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
3816
<div class="memitem">
3817
<div class="memproto">
3818
<table class="memname">
3820
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AppInfo.html">AppInfo</a>> Gio::File::query_default_handler </td>
3822
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3823
<td class="paramname"> <em>cancellable</em> </td>
3824
<td> ) </td>
3829
<div class="memdoc">
3832
Returns: a <a class="el" href="classGio_1_1AppInfo.html" title="Application information, to describe applications installed on the system, and launch...">AppInfo</a> if the handle was found, <code>0</code> if there were errors.
3834
<dl compact><dt><b>Parameters:</b></dt><dd>
3835
<table border="0" cellspacing="2" cellpadding="0">
3836
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object, <code>0</code> to ignore. </td></tr>
3839
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1AppInfo.html" title="Application information, to describe applications installed on the system, and launch...">AppInfo</a> if the handle was found, <code>0</code> if there were errors. When you are done with it, release it with Glib::object_unref(). </dd></dl>
1165
<a class="anchor" name="eecec6962f955bd72ac5595be37db7a4"></a><!-- doxytag: member="Gio::File::get_uri_scheme" ref="eecec6962f955bd72ac5595be37db7a4" args="() const " -->
1166
<div class="memitem">
1167
<div class="memproto">
1168
<table class="memname">
1170
<td class="memname"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> Gio::File::get_uri_scheme </td>
1172
<td class="paramname"> </td>
1173
<td> ) </td>
1178
<div class="memdoc">
1181
Gets the URI scheme for a <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>.
1183
RFC 3986 decodes the scheme as:<p>
1184
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]<p>
1185
Common schemes include "file", "http", "ftp", etc.<p>
1186
This call does no blocking i/o. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A string containing the URI scheme for the given <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>. The returned string should be freed with Glib::free() when no longer needed. </dd></dl>
1190
<a class="anchor" name="3ef959c7ad7096846f26eb8b282e3c68"></a><!-- doxytag: member="Gio::File::read" ref="3ef959c7ad7096846f26eb8b282e3c68" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
1191
<div class="memitem">
1192
<div class="memproto">
1193
<table class="memname">
1195
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInputStream.html">FileInputStream</a>> Gio::File::read </td>
1197
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1198
<td class="paramname"> <em>cancellable</em> </td>
1199
<td> ) </td>
1204
<div class="memdoc">
1207
Opens a file for reading.
1209
The result is a <a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> that can be used to read the contents of the file.<p>
1210
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED.<p>
1211
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. If the file is a directory, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on. <dl compact><dt><b>Parameters:</b></dt><dd>
1212
<table border="0" cellspacing="2" cellpadding="0">
1213
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a>. </td></tr>
1216
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> or <code>0</code> on error. </dd></dl>
1220
<a class="anchor" name="0395b3b0b8cec5dc1fd9953e52e5fbc1"></a><!-- doxytag: member="Gio::File::read" ref="0395b3b0b8cec5dc1fd9953e52e5fbc1" args="()" -->
1221
<div class="memitem">
1222
<div class="memproto">
1223
<table class="memname">
1225
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInputStream.html">FileInputStream</a>> Gio::File::read </td>
1227
<td class="paramname"> </td>
1228
<td> ) </td>
1233
<div class="memdoc">
1236
Opens a file for reading.
1238
The result is a <a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> that can be used to read the contents of the file.<p>
1239
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. If the file is a directory, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on. <dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> or an empty RefPtr on error. </dd></dl>
1243
<a class="anchor" name="2826eed0b1e76c3771f6ad5f5b993991"></a><!-- doxytag: member="Gio::File::read_async" ref="2826eed0b1e76c3771f6ad5f5b993991" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1244
<div class="memitem">
1245
<div class="memproto">
1246
<table class="memname">
1248
<td class="memname">void Gio::File::read_async </td>
1250
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1251
<td class="paramname"> <em>slot</em>, </td>
1254
<td class="paramkey"></td>
1256
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1257
<td class="paramname"> <em>cancellable</em>, </td>
1260
<td class="paramkey"></td>
1262
<td class="paramtype">int </td>
1263
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1268
<td></td><td></td><td></td>
1272
<div class="memdoc">
1275
Asynchronously opens the file for reading.
1277
For more details, see <a class="el" href="classGio_1_1File.html#0395b3b0b8cec5dc1fd9953e52e5fbc1" title="Opens a file for reading.">read()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#64b10854ad1add1f888ecb19403eb921" title="Finishes an asynchronous file read operation started with g_file_read_async().">read_finish()</a> to get the result of the operation.<p>
1278
<dl compact><dt><b>Parameters:</b></dt><dd>
1279
<table border="0" cellspacing="2" cellpadding="0">
1280
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1281
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
1282
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1288
<a class="anchor" name="b451a182a647408e697c9115e66f6194"></a><!-- doxytag: member="Gio::File::read_async" ref="b451a182a647408e697c9115e66f6194" args="(const SlotAsyncReady &slot, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1289
<div class="memitem">
1290
<div class="memproto">
1291
<table class="memname">
1293
<td class="memname">void Gio::File::read_async </td>
1295
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1296
<td class="paramname"> <em>slot</em>, </td>
1299
<td class="paramkey"></td>
1301
<td class="paramtype">int </td>
1302
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1307
<td></td><td></td><td></td>
1311
<div class="memdoc">
1314
Asynchronously opens the file for reading.
1316
For more details, see <a class="el" href="classGio_1_1File.html#0395b3b0b8cec5dc1fd9953e52e5fbc1" title="Opens a file for reading.">read()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#64b10854ad1add1f888ecb19403eb921" title="Finishes an asynchronous file read operation started with g_file_read_async().">read_finish()</a> to get the result of the operation.<p>
1317
<dl compact><dt><b>Parameters:</b></dt><dd>
1318
<table border="0" cellspacing="2" cellpadding="0">
1319
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1320
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1326
<a class="anchor" name="64b10854ad1add1f888ecb19403eb921"></a><!-- doxytag: member="Gio::File::read_finish" ref="64b10854ad1add1f888ecb19403eb921" args="(const Glib::RefPtr< AsyncResult > &result)" -->
1327
<div class="memitem">
1328
<div class="memproto">
1329
<table class="memname">
1331
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInputStream.html">FileInputStream</a>> Gio::File::read_finish </td>
1333
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
1334
<td class="paramname"> <em>result</em> </td>
1335
<td> ) </td>
1340
<div class="memdoc">
1343
Finishes an asynchronous file read operation started with g_file_read_async().
1345
<dl compact><dt><b>Parameters:</b></dt><dd>
1346
<table border="0" cellspacing="2" cellpadding="0">
1347
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
1350
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
1354
<a class="anchor" name="91c93ee71eee738690cb551d11df9528"></a><!-- doxytag: member="Gio::File::append_to" ref="91c93ee71eee738690cb551d11df9528" args="(const Glib::RefPtr< Cancellable > &cancellable, FileCreateFlags flags=FILE_CREATE_NONE)" -->
1355
<div class="memitem">
1356
<div class="memproto">
1357
<table class="memname">
1359
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::append_to </td>
1361
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1362
<td class="paramname"> <em>cancellable</em>, </td>
1365
<td class="paramkey"></td>
1367
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1368
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
1373
<td></td><td></td><td></td>
1377
<div class="memdoc">
1380
Gets an output stream for appending data to the file.
1382
If the file doesn't already exist it is created.<p>
1383
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
1384
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
1385
Some filesystems don't allow all filenames, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME. If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on. <dl compact><dt><b>Parameters:</b></dt><dd>
1386
<table border="0" cellspacing="2" cellpadding="0">
1387
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
1388
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
1391
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. </dd></dl>
1395
<a class="anchor" name="8db337b93f3b9b9a6e163477391e6c89"></a><!-- doxytag: member="Gio::File::append_to" ref="8db337b93f3b9b9a6e163477391e6c89" args="(FileCreateFlags flags=FILE_CREATE_NONE)" -->
1396
<div class="memitem">
1397
<div class="memproto">
1398
<table class="memname">
1400
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::append_to </td>
1402
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1403
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code> </td>
1404
<td> ) </td>
1409
<div class="memdoc">
1412
Gets an output stream for appending data to the file.
1414
If the file doesn't already exist it is created.<p>
1415
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
1416
Some filesystems don't allow all filenames, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME. If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on. <dl compact><dt><b>Parameters:</b></dt><dd>
1417
<table border="0" cellspacing="2" cellpadding="0">
1418
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
1421
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. </dd></dl>
1425
<a class="anchor" name="86258e11b2884422819d051c3cfd07a2"></a><!-- doxytag: member="Gio::File::create_file" ref="86258e11b2884422819d051c3cfd07a2" args="(const Glib::RefPtr< Cancellable > &cancellable, FileCreateFlags flags=FILE_CREATE_NONE)" -->
1426
<div class="memitem">
1427
<div class="memproto">
1428
<table class="memname">
1430
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::create_file </td>
1432
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1433
<td class="paramname"> <em>cancellable</em>, </td>
1436
<td class="paramkey"></td>
1438
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1439
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
1444
<td></td><td></td><td></td>
1448
<div class="memdoc">
1451
Creates a new file and returns an output stream for writing to it.
1453
The file must not already exists.<p>
1454
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
1455
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
1456
If a file with this name already exists a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with EXISTS will be thrown. If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown.<p>
1457
Some filesystems don't allow all filenames, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME, and if the name is to longa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with FILENAME_TOO_LONG will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
1458
<dl compact><dt><b>Parameters:</b></dt><dd>
1459
<table border="0" cellspacing="2" cellpadding="0">
1460
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
1461
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1464
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a> for the newly created file. </dd></dl>
1468
<a class="anchor" name="5cf2b17b953ccfefb1d13c39bd1be72c"></a><!-- doxytag: member="Gio::File::create_file" ref="5cf2b17b953ccfefb1d13c39bd1be72c" args="(FileCreateFlags flags=FILE_CREATE_NONE)" -->
1469
<div class="memitem">
1470
<div class="memproto">
1471
<table class="memname">
1473
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::create_file </td>
1475
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1476
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code> </td>
1477
<td> ) </td>
1482
<div class="memdoc">
1485
Creates a new file and returns an output stream for writing to it.
1487
The file must not already exists.<p>
1488
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
1489
If a file with this name already exists a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with EXISTS will be thrown. If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown.<p>
1490
Some filesystems don't allow all filenames, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME, and if the name is to longa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with FILENAME_TOO_LONG will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
1491
<dl compact><dt><b>Parameters:</b></dt><dd>
1492
<table border="0" cellspacing="2" cellpadding="0">
1493
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1496
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a> for the newly created file. </dd></dl>
1500
<a class="anchor" name="d7cf0360096504e40f799fde5cc8e9de"></a><!-- doxytag: member="Gio::File::replace" ref="d7cf0360096504e40f799fde5cc8e9de" args="(const Glib::RefPtr< Cancellable > &cancellable, const std::string &etag=std::string(), bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
1501
<div class="memitem">
1502
<div class="memproto">
1503
<table class="memname">
1505
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::replace </td>
1507
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1508
<td class="paramname"> <em>cancellable</em>, </td>
1511
<td class="paramkey"></td>
1513
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
1514
<td class="paramname"> <em>etag</em> = <code><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>()</code>, </td>
1517
<td class="paramkey"></td>
1519
<td class="paramtype">bool </td>
1520
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
1523
<td class="paramkey"></td>
1525
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1526
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
1531
<td></td><td></td><td></td>
1535
<div class="memdoc">
1538
Returns an output stream for overwriting the file, possibly creating a backup copy of the file first.
1540
This will try to replace the file in the safest way possible so that any errors during the writing will not affect an already existing copy of the file. For instance, for local files it may write to a temporary file and then atomically rename over the destination when the stream is closed.<p>
1541
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
1542
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
1543
If you pass in an etag value, then this value is compared to the current entity tag of the file, and if they differ a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown. This generally means that the file has been changed since you last read it. You can get the new etag from <a class="el" href="classGio_1_1FileOutputStream.html#8e29de4e67428a79b41180ca27af0a3d" title="Gets the entity tag for the file when it has been written.">FileOutputStream::get_etag()</a> after you've finished writing and closed the <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. When you load a new file you can use <a class="el" href="classGio_1_1FileInputStream.html#e9cf87761484839f4ea53bc33064f189" title="Queries a file input stream the given attributes.">FileInputStream::query_info()</a> to get the etag of the file.<p>
1544
If <em>make_backup</em> is true, this function will attempt to make a backup of the current file before overwriting it. If this fails aa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANT_CREATE_BACKUP will be thrown. If you want to replace anyway, try again with <em>make_backup</em> set to false.<p>
1545
If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown, and if the file is some other form of non-regular file then aa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_REGULAR_FILE will be thrown. Some file systems don't allow all file names, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME, and if the name is to longa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with FILENAME_TOO_LONG will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
1546
<dl compact><dt><b>Parameters:</b></dt><dd>
1547
<table border="0" cellspacing="2" cellpadding="0">
1548
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>An optional entity tag for the current Glib::File. </td></tr>
1549
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
1550
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
1553
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. </dd></dl>
1557
<a class="anchor" name="cf55f9291659566f6fd36271801b013b"></a><!-- doxytag: member="Gio::File::replace" ref="cf55f9291659566f6fd36271801b013b" args="(const std::string &etag=std::string(), bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
1558
<div class="memitem">
1559
<div class="memproto">
1560
<table class="memname">
1562
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::replace </td>
1564
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
1565
<td class="paramname"> <em>etag</em> = <code><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>()</code>, </td>
1568
<td class="paramkey"></td>
1570
<td class="paramtype">bool </td>
1571
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
1574
<td class="paramkey"></td>
1576
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1577
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
1582
<td></td><td></td><td></td>
1586
<div class="memdoc">
1589
Returns an output stream for overwriting the file, possibly creating a backup copy of the file first.
1591
This will try to replace the file in the safest way possible so that any errors during the writing will not affect an already existing copy of the file. For instance, for local files it may write to a temporary file and then atomically rename over the destination when the stream is closed.<p>
1592
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
1593
If you pass in an etag value, then this value is compared to the current entity tag of the file, and if they differ a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown. This generally means that the file has been changed since you last read it. You can get the new etag from <a class="el" href="classGio_1_1FileOutputStream.html#8e29de4e67428a79b41180ca27af0a3d" title="Gets the entity tag for the file when it has been written.">FileOutputStream::get_etag()</a> after you've finished writing and closed the <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. When you load a new file you can use <a class="el" href="classGio_1_1FileInputStream.html#e9cf87761484839f4ea53bc33064f189" title="Queries a file input stream the given attributes.">FileInputStream::query_info()</a> to get the etag of the file.<p>
1594
If <em>make_backup</em> is true, this function will attempt to make a backup of the current file before overwriting it. If this fails aa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANT_CREATE_BACKUP will be thrown. If you want to replace anyway, try again with <em>make_backup</em> set to false.<p>
1595
If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown, and if the file is some other form of non-regular file then aa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_REGULAR_FILE will be thrown. Some file systems don't allow all file names, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME, and if the name is to longa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with FILENAME_TOO_LONG will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
1596
<dl compact><dt><b>Parameters:</b></dt><dd>
1597
<table border="0" cellspacing="2" cellpadding="0">
1598
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>An optional entity tag for the current Glib::File. </td></tr>
1599
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
1600
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
1603
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. </dd></dl>
1607
<a class="anchor" name="1e3dfb193e8f2ab69e24c4370de5335a"></a><!-- doxytag: member="Gio::File::append_to_async" ref="1e3dfb193e8f2ab69e24c4370de5335a" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1608
<div class="memitem">
1609
<div class="memproto">
1610
<table class="memname">
1612
<td class="memname">void Gio::File::append_to_async </td>
1614
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1615
<td class="paramname"> <em>slot</em>, </td>
1618
<td class="paramkey"></td>
1620
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1621
<td class="paramname"> <em>cancellable</em>, </td>
1624
<td class="paramkey"></td>
1626
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1627
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
1630
<td class="paramkey"></td>
1632
<td class="paramtype">int </td>
1633
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1638
<td></td><td></td><td></td>
1642
<div class="memdoc">
1645
Asynchronously opens the file for appending.
1647
For more details, see <a class="el" href="classGio_1_1File.html#91c93ee71eee738690cb551d11df9528" title="Gets an output stream for appending data to the file.">append_to()</a> which is the synchronous version of this call.<p>
1648
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#cb1f2d32055b8da274ea241c69487dc6" title="Finishes an asynchronous file append operation started with g_file_append_to_async()...">append_to_finish()</a> to get the result of the operation. <dl compact><dt><b>Parameters:</b></dt><dd>
1649
<table border="0" cellspacing="2" cellpadding="0">
1650
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1651
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
1652
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1653
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1659
<a class="anchor" name="bff3163e9bf8d8208cd0c0e568b777de"></a><!-- doxytag: member="Gio::File::append_to_async" ref="bff3163e9bf8d8208cd0c0e568b777de" args="(const SlotAsyncReady &slot, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1660
<div class="memitem">
1661
<div class="memproto">
1662
<table class="memname">
1664
<td class="memname">void Gio::File::append_to_async </td>
1666
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1667
<td class="paramname"> <em>slot</em>, </td>
1670
<td class="paramkey"></td>
1672
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1673
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
1676
<td class="paramkey"></td>
1678
<td class="paramtype">int </td>
1679
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1684
<td></td><td></td><td></td>
1688
<div class="memdoc">
1691
Asynchronously opens the file for appending.
1693
For more details, see <a class="el" href="classGio_1_1File.html#91c93ee71eee738690cb551d11df9528" title="Gets an output stream for appending data to the file.">append_to()</a> which is the synchronous version of this call.<p>
1694
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#cb1f2d32055b8da274ea241c69487dc6" title="Finishes an asynchronous file append operation started with g_file_append_to_async()...">append_to_finish()</a> to get the result of the operation. <dl compact><dt><b>Parameters:</b></dt><dd>
1695
<table border="0" cellspacing="2" cellpadding="0">
1696
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1697
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1698
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1704
<a class="anchor" name="cb1f2d32055b8da274ea241c69487dc6"></a><!-- doxytag: member="Gio::File::append_to_finish" ref="cb1f2d32055b8da274ea241c69487dc6" args="(const Glib::RefPtr< AsyncResult > &result)" -->
1705
<div class="memitem">
1706
<div class="memproto">
1707
<table class="memname">
1709
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::append_to_finish </td>
1711
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
1712
<td class="paramname"> <em>result</em> </td>
1713
<td> ) </td>
1718
<div class="memdoc">
1721
Finishes an asynchronous file append operation started with g_file_append_to_async().
1723
<dl compact><dt><b>Parameters:</b></dt><dd>
1724
<table border="0" cellspacing="2" cellpadding="0">
1725
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td><a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
1728
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A valid <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
1732
<a class="anchor" name="e0c42446d37aa466173965b7db1a2053"></a><!-- doxytag: member="Gio::File::create_file_async" ref="e0c42446d37aa466173965b7db1a2053" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1733
<div class="memitem">
1734
<div class="memproto">
1735
<table class="memname">
1737
<td class="memname">void Gio::File::create_file_async </td>
1739
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1740
<td class="paramname"> <em>slot</em>, </td>
1743
<td class="paramkey"></td>
1745
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1746
<td class="paramname"> <em>cancellable</em>, </td>
1749
<td class="paramkey"></td>
1751
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1752
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
1755
<td class="paramkey"></td>
1757
<td class="paramtype">int </td>
1758
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1763
<td></td><td></td><td></td>
1767
<div class="memdoc">
1770
Asynchronously creates a new file and returns an output stream for writing to it.
1772
The file must not already exist. For more details, see <a class="el" href="classGio_1_1File.html#86258e11b2884422819d051c3cfd07a2" title="Creates a new file and returns an output stream for writing to it.">create_file()</a> which is the synchronous version of this call.<p>
1773
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#622b9f7aeaebe2ac53df0574c9c4211a" title="Finishes an asynchronous file create operation started with g_file_create_async()...">create_file_finish()</a> to get the result of the operation.<p>
1774
<dl compact><dt><b>Parameters:</b></dt><dd>
1775
<table border="0" cellspacing="2" cellpadding="0">
1776
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1777
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1778
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
1779
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1785
<a class="anchor" name="3fe6ed015f3d2bb72aa7aceed8dc7ca1"></a><!-- doxytag: member="Gio::File::create_file_async" ref="3fe6ed015f3d2bb72aa7aceed8dc7ca1" args="(const SlotAsyncReady &slot, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1786
<div class="memitem">
1787
<div class="memproto">
1788
<table class="memname">
1790
<td class="memname">void Gio::File::create_file_async </td>
1792
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1793
<td class="paramname"> <em>slot</em>, </td>
1796
<td class="paramkey"></td>
1798
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1799
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
1802
<td class="paramkey"></td>
1804
<td class="paramtype">int </td>
1805
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1810
<td></td><td></td><td></td>
1814
<div class="memdoc">
1817
Asynchronously creates a new file and returns an output stream for writing to it.
1819
The file must not already exist. For more details, see <a class="el" href="classGio_1_1File.html#86258e11b2884422819d051c3cfd07a2" title="Creates a new file and returns an output stream for writing to it.">create_file()</a> which is the synchronous version of this call.<p>
1820
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#622b9f7aeaebe2ac53df0574c9c4211a" title="Finishes an asynchronous file create operation started with g_file_create_async()...">create_file_finish()</a> to get the result of the operation.<p>
1821
<dl compact><dt><b>Parameters:</b></dt><dd>
1822
<table border="0" cellspacing="2" cellpadding="0">
1823
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>a set of FileCreateFlags. </td></tr>
1824
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1825
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1831
<a class="anchor" name="622b9f7aeaebe2ac53df0574c9c4211a"></a><!-- doxytag: member="Gio::File::create_file_finish" ref="622b9f7aeaebe2ac53df0574c9c4211a" args="(const Glib::RefPtr< AsyncResult > &result)" -->
1832
<div class="memitem">
1833
<div class="memproto">
1834
<table class="memname">
1836
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::create_file_finish </td>
1838
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
1839
<td class="paramname"> <em>result</em> </td>
1840
<td> ) </td>
1845
<div class="memdoc">
1848
Finishes an asynchronous file create operation started with g_file_create_async().
1850
<dl compact><dt><b>Parameters:</b></dt><dd>
1851
<table border="0" cellspacing="2" cellpadding="0">
1852
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
1855
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
1859
<a class="anchor" name="d777cdaa404a6a668ee8d520299687ce"></a><!-- doxytag: member="Gio::File::replace_async" ref="d777cdaa404a6a668ee8d520299687ce" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, const std::string &etag=std::string(), bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1860
<div class="memitem">
1861
<div class="memproto">
1862
<table class="memname">
1864
<td class="memname">void Gio::File::replace_async </td>
1866
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1867
<td class="paramname"> <em>slot</em>, </td>
1870
<td class="paramkey"></td>
1872
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
1873
<td class="paramname"> <em>cancellable</em>, </td>
1876
<td class="paramkey"></td>
1878
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
1879
<td class="paramname"> <em>etag</em> = <code><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>()</code>, </td>
1882
<td class="paramkey"></td>
1884
<td class="paramtype">bool </td>
1885
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
1888
<td class="paramkey"></td>
1890
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1891
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
1894
<td class="paramkey"></td>
1896
<td class="paramtype">int </td>
1897
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1902
<td></td><td></td><td></td>
1906
<div class="memdoc">
1909
Asyncronously overwrites the file, replacing the contents, possibly creating a backup copy of the file first.
1911
For more details, see <a class="el" href="classGio_1_1File.html#d7cf0360096504e40f799fde5cc8e9de" title="Returns an output stream for overwriting the file, possibly creating a backup copy...">replace()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#b28557d592f2c53df618728cf865e65e" title="Finishes an asynchronous file replace operation started with g_file_replace_async()...">replace_finish()</a> to get the result of the operation.<p>
1912
<dl compact><dt><b>Parameters:</b></dt><dd>
1913
<table border="0" cellspacing="2" cellpadding="0">
1914
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1915
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
1916
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>An entity tag for the current <a class="el" href="classGio_1_1File.html" title="File and directory handling.">Gio::File</a>. </td></tr>
1917
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup of the existing file should be made. </td></tr>
1918
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
1919
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1925
<a class="anchor" name="e51e51a2e3a45da4324230b4d5401a58"></a><!-- doxytag: member="Gio::File::replace_async" ref="e51e51a2e3a45da4324230b4d5401a58" args="(const SlotAsyncReady &slot, const std::string &etag=std::string(), bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
1926
<div class="memitem">
1927
<div class="memproto">
1928
<table class="memname">
1930
<td class="memname">void Gio::File::replace_async </td>
1932
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
1933
<td class="paramname"> <em>slot</em>, </td>
1936
<td class="paramkey"></td>
1938
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
1939
<td class="paramname"> <em>etag</em> = <code><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>()</code>, </td>
1942
<td class="paramkey"></td>
1944
<td class="paramtype">bool </td>
1945
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
1948
<td class="paramkey"></td>
1950
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
1951
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
1954
<td class="paramkey"></td>
1956
<td class="paramtype">int </td>
1957
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
1962
<td></td><td></td><td></td>
1966
<div class="memdoc">
1969
Asyncronously overwrites the file, replacing the contents, possibly creating a backup copy of the file first.
1971
For more details, see <a class="el" href="classGio_1_1File.html#d7cf0360096504e40f799fde5cc8e9de" title="Returns an output stream for overwriting the file, possibly creating a backup copy...">replace()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#b28557d592f2c53df618728cf865e65e" title="Finishes an asynchronous file replace operation started with g_file_replace_async()...">replace_finish()</a> to get the result of the operation.<p>
1972
<dl compact><dt><b>Parameters:</b></dt><dd>
1973
<table border="0" cellspacing="2" cellpadding="0">
1974
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
1975
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>An entity tag for the current <a class="el" href="classGio_1_1File.html" title="File and directory handling.">Gio::File</a>. </td></tr>
1976
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup of the existing file should be made. </td></tr>
1977
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
1978
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
1984
<a class="anchor" name="b28557d592f2c53df618728cf865e65e"></a><!-- doxytag: member="Gio::File::replace_finish" ref="b28557d592f2c53df618728cf865e65e" args="(const Glib::RefPtr< AsyncResult > &result)" -->
1985
<div class="memitem">
1986
<div class="memproto">
1987
<table class="memname">
1989
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::replace_finish </td>
1991
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
1992
<td class="paramname"> <em>result</em> </td>
1993
<td> ) </td>
1998
<div class="memdoc">
2001
Finishes an asynchronous file replace operation started with g_file_replace_async().
2003
<dl compact><dt><b>Parameters:</b></dt><dd>
2004
<table border="0" cellspacing="2" cellpadding="0">
2005
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
2008
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>, or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
2012
<a class="anchor" name="db25ffdbe571d33e89c9503fe9a20dcd"></a><!-- doxytag: member="Gio::File::query_info" ref="db25ffdbe571d33e89c9503fe9a20dcd" args="(const Glib::RefPtr< Cancellable > &cancellable, const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE) const " -->
2013
<div class="memitem">
2014
<div class="memproto">
2015
<table class="memname">
2017
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>> Gio::File::query_info </td>
2019
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2020
<td class="paramname"> <em>cancellable</em>, </td>
2023
<td class="paramkey"></td>
2025
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2026
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
2029
<td class="paramkey"></td>
2031
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
2032
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
2037
<td></td><td></td><td> const</td>
2041
<div class="memdoc">
2044
Gets the requested information about the file.
2046
The result is a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> object that contains key-value attributes (such as the type or size of the file).<p>
2047
The <em>attribute</em> value is a string that specifies the file attributes that should be gathered. It is not an error if it's not possible to read a particular requested attribute from a file - it just won't be set. <em>attribute</em> should be a comma-separated list of attribute or attribute wildcards. The wildcard "*" means all attributes, and a wildcard like "standard::*" means all attributes in the standard namespace. An example attribute query be "standard::*,owner::user". The standard attributes are available as defines, like G_FILE_ATTRIBUTE_STANDARD_NAME.<p>
2048
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
2049
For symlinks, normally the information about the target of the symlink is returned, rather than information about the symlink itself. However if you pass FILE_QUERY_INFO_NOFOLLOW_SYMLINKS in <em>flags</em> the information about the symlink itself will be returned. Also, for symlinks that point to non-existing files the information about the symlink itself will be returned.<p>
2050
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
2051
<dl compact><dt><b>Parameters:</b></dt><dd>
2052
<table border="0" cellspacing="2" cellpadding="0">
2053
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
2054
<tr><td valign="top"></td><td valign="top"><em>attributes,:</em> </td><td>An attribute query string. </td></tr>
2055
<tr><td valign="top"></td><td valign="top"><em>flags,:</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
2058
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> for the file, or an empty RefPtr on error. </dd></dl>
2062
<a class="anchor" name="4e4b9c07ade255b12e2b43c38c3aba90"></a><!-- doxytag: member="Gio::File::query_info" ref="4e4b9c07ade255b12e2b43c38c3aba90" args="(const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE) const " -->
2063
<div class="memitem">
2064
<div class="memproto">
2065
<table class="memname">
2067
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>> Gio::File::query_info </td>
2069
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2070
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
2073
<td class="paramkey"></td>
2075
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
2076
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
2081
<td></td><td></td><td> const</td>
2085
<div class="memdoc">
2088
Gets the requested information about the file.
2090
The result is a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> object that contains key-value attributes (such as the type or size of the file).<p>
2091
The <em>attribute</em> value is a string that specifies the file attributes that should be gathered. It is not an error if it's not possible to read a particular requested attribute from a file - it just won't be set. <em>attribute</em> should be a comma-separated list of attribute or attribute wildcards. The wildcard "*" means all attributes, and a wildcard like "standard::*" means all attributes in the standard namespace. An example attribute query be "standard::*,owner::user". The standard attributes are available as defines, like G_FILE_ATTRIBUTE_STANDARD_NAME.<p>
2092
For symlinks, normally the information about the target of the symlink is returned, rather than information about the symlink itself. However if you pass FILE_QUERY_INFO_NOFOLLOW_SYMLINKS in <em>flags</em> the information about the symlink itself will be returned. Also, for symlinks that point to non-existing files the information about the symlink itself will be returned.<p>
2093
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
2094
<dl compact><dt><b>Parameters:</b></dt><dd>
2095
<table border="0" cellspacing="2" cellpadding="0">
2096
<tr><td valign="top"></td><td valign="top"><em>attributes,:</em> </td><td>An attribute query string. </td></tr>
2097
<tr><td valign="top"></td><td valign="top"><em>flags,:</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
2100
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> for the file, or an empty RefPtr on error. </dd></dl>
2104
<a class="anchor" name="d8b0a75e0afdb5f6874ea5e304d55ea8"></a><!-- doxytag: member="Gio::File::query_exists" ref="d8b0a75e0afdb5f6874ea5e304d55ea8" args="(const Glib::RefPtr< Cancellable > &cancellable) const " -->
2105
<div class="memitem">
2106
<div class="memproto">
2107
<table class="memname">
2109
<td class="memname">bool Gio::File::query_exists </td>
2111
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2112
<td class="paramname"> <em>cancellable</em> </td>
2113
<td> ) </td>
2118
<div class="memdoc">
2121
Utility function to check if a particular file exists.
2123
This is implemented using <a class="el" href="classGio_1_1File.html#db25ffdbe571d33e89c9503fe9a20dcd" title="Gets the requested information about the file.">query_info()</a> and as such does blocking I/O.<p>
2124
Note that in many cases it is racy to first check for file existence and then execute something based on the outcome of that, because the file might have been created or removed in between the operations. The general approach to handling that is to not check, but just do the operation and handle the errors as they come.<p>
2125
As an example of race-free checking, take the case of reading a file, and if it doesn't exist, creating it. There are two racy versions: read it, and on error create it; and: check if it exists, if not create it. These can both result in two processes creating the file (with perhaps a partially written file as the result). The correct approach is to always try to create the file with File::create() which will either atomically create the file or fail with a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> exception with EXISTS.<p>
2126
However, in many cases an existence check is useful in a user interface, for instance to make a menu item sensitive/insensitive, so that you don't have to fool users that something is possible and then just show and error dialog. If you do this, you should make sure to also handle the errors that can happen due to races when you execute the operation. <dl compact><dt><b>Parameters:</b></dt><dd>
2127
<table border="0" cellspacing="2" cellpadding="0">
2128
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object, <code>0</code> to ignore. </td></tr>
2131
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the file exists (and can be detected without error), <code>false</code> otherwise (or if cancelled). </dd></dl>
4170
<a class="anchor" name="4e4b9c07ade255b12e2b43c38c3aba90"></a><!-- doxytag: member="Gio::File::query_info" ref="4e4b9c07ade255b12e2b43c38c3aba90" args="(const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE) const " -->
4171
<div class="memitem">
4172
<div class="memproto">
4173
<table class="memname">
4175
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>> Gio::File::query_info </td>
4177
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4178
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
4181
<td class="paramkey"></td>
4183
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4184
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
4189
<td></td><td></td><td> const</td>
4193
<div class="memdoc">
4196
Gets the requested information about the file.
4198
The result is a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> object that contains key-value attributes (such as the type or size of the file).<p>
4199
The <em>attribute</em> value is a string that specifies the file attributes that should be gathered. It is not an error if it's not possible to read a particular requested attribute from a file - it just won't be set. <em>attribute</em> should be a comma-separated list of attribute or attribute wildcards. The wildcard "*" means all attributes, and a wildcard like "standard::*" means all attributes in the standard namespace. An example attribute query be "standard::*,owner::user". The standard attributes are available as defines, like G_FILE_ATTRIBUTE_STANDARD_NAME.<p>
4200
For symlinks, normally the information about the target of the symlink is returned, rather than information about the symlink itself. However if you pass FILE_QUERY_INFO_NOFOLLOW_SYMLINKS in <em>flags</em> the information about the symlink itself will be returned. Also, for symlinks that point to non-existing files the information about the symlink itself will be returned.<p>
4201
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
4202
<dl compact><dt><b>Parameters:</b></dt><dd>
4203
<table border="0" cellspacing="2" cellpadding="0">
4204
<tr><td valign="top"></td><td valign="top"><em>attributes,:</em> </td><td>An attribute query string. </td></tr>
4205
<tr><td valign="top"></td><td valign="top"><em>flags,:</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
4208
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> for the file, or an empty RefPtr on error. </dd></dl>
4212
<a class="anchor" name="db25ffdbe571d33e89c9503fe9a20dcd"></a><!-- doxytag: member="Gio::File::query_info" ref="db25ffdbe571d33e89c9503fe9a20dcd" args="(const Glib::RefPtr< Cancellable > &cancellable, const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE) const " -->
4213
<div class="memitem">
4214
<div class="memproto">
4215
<table class="memname">
4217
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>> Gio::File::query_info </td>
4219
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4220
<td class="paramname"> <em>cancellable</em>, </td>
4223
<td class="paramkey"></td>
4225
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4226
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
4229
<td class="paramkey"></td>
4231
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4232
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
4237
<td></td><td></td><td> const</td>
4241
<div class="memdoc">
4244
Gets the requested information about the file.
4246
The result is a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> object that contains key-value attributes (such as the type or size of the file).<p>
4247
The <em>attribute</em> value is a string that specifies the file attributes that should be gathered. It is not an error if it's not possible to read a particular requested attribute from a file - it just won't be set. <em>attribute</em> should be a comma-separated list of attribute or attribute wildcards. The wildcard "*" means all attributes, and a wildcard like "standard::*" means all attributes in the standard namespace. An example attribute query be "standard::*,owner::user". The standard attributes are available as defines, like G_FILE_ATTRIBUTE_STANDARD_NAME.<p>
4248
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
4249
For symlinks, normally the information about the target of the symlink is returned, rather than information about the symlink itself. However if you pass FILE_QUERY_INFO_NOFOLLOW_SYMLINKS in <em>flags</em> the information about the symlink itself will be returned. Also, for symlinks that point to non-existing files the information about the symlink itself will be returned.<p>
4250
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
4251
<dl compact><dt><b>Parameters:</b></dt><dd>
4252
<table border="0" cellspacing="2" cellpadding="0">
4253
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4254
<tr><td valign="top"></td><td valign="top"><em>attributes,:</em> </td><td>An attribute query string. </td></tr>
4255
<tr><td valign="top"></td><td valign="top"><em>flags,:</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
4258
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> for the file, or an empty RefPtr on error. </dd></dl>
4262
<a class="anchor" name="fcad69d782a971802a8aa85125ac2c8c"></a><!-- doxytag: member="Gio::File::query_info_async" ref="fcad69d782a971802a8aa85125ac2c8c" args="(const SlotAsyncReady &slot, const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE, int io_priority=Glib::PRIORITY_DEFAULT) const " -->
4263
<div class="memitem">
4264
<div class="memproto">
4265
<table class="memname">
4267
<td class="memname">void Gio::File::query_info_async </td>
4269
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4270
<td class="paramname"> <em>slot</em>, </td>
4273
<td class="paramkey"></td>
4275
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4276
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
4279
<td class="paramkey"></td>
4281
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4282
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code>, </td>
4285
<td class="paramkey"></td>
4287
<td class="paramtype">int </td>
4288
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
4293
<td></td><td></td><td> const</td>
4297
<div class="memdoc">
4300
Asynchronously gets the requested information about specified file.
4302
The result is a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> object that contains key-value attributes (such as type or size for the file).<p>
4303
For more details, see <a class="el" href="classGio_1_1File.html#db25ffdbe571d33e89c9503fe9a20dcd" title="Gets the requested information about the file.">query_info()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#fd4ffc3630b41754c177658f2e745357" title="Finishes an asynchronous file info query.">query_info_finish()</a> to get the result of the operation.<p>
4304
<dl compact><dt><b>Parameters:</b></dt><dd>
4305
<table border="0" cellspacing="2" cellpadding="0">
4306
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4307
<tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>An attribute query string. </td></tr>
4308
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
4309
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
4315
<a class="anchor" name="7bd60e7864f8954c35e3b0891058e61c"></a><!-- doxytag: member="Gio::File::query_info_async" ref="7bd60e7864f8954c35e3b0891058e61c" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE, int io_priority=Glib::PRIORITY_DEFAULT) const " -->
4316
<div class="memitem">
4317
<div class="memproto">
4318
<table class="memname">
4320
<td class="memname">void Gio::File::query_info_async </td>
4322
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4323
<td class="paramname"> <em>slot</em>, </td>
4326
<td class="paramkey"></td>
4328
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4329
<td class="paramname"> <em>cancellable</em>, </td>
4332
<td class="paramkey"></td>
4334
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4335
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
4338
<td class="paramkey"></td>
4340
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4341
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code>, </td>
4344
<td class="paramkey"></td>
4346
<td class="paramtype">int </td>
4347
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
4352
<td></td><td></td><td> const</td>
4356
<div class="memdoc">
4359
Asynchronously gets the requested information about specified file.
4361
The result is a <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> object that contains key-value attributes (such as type or size for the file).<p>
4362
For more details, see <a class="el" href="classGio_1_1File.html#db25ffdbe571d33e89c9503fe9a20dcd" title="Gets the requested information about the file.">query_info()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#fd4ffc3630b41754c177658f2e745357" title="Finishes an asynchronous file info query.">query_info_finish()</a> to get the result of the operation.<p>
4363
<dl compact><dt><b>Parameters:</b></dt><dd>
4364
<table border="0" cellspacing="2" cellpadding="0">
4365
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4366
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
4367
<tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>An attribute query string. </td></tr>
4368
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
4369
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
4375
<a class="anchor" name="fd4ffc3630b41754c177658f2e745357"></a><!-- doxytag: member="Gio::File::query_info_finish" ref="fd4ffc3630b41754c177658f2e745357" args="(const Glib::RefPtr< AsyncResult > &result)" -->
4376
<div class="memitem">
4377
<div class="memproto">
4378
<table class="memname">
4380
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>> Gio::File::query_info_finish </td>
4382
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
4383
<td class="paramname"> <em>result</em> </td>
4384
<td> ) </td>
4389
<div class="memdoc">
4392
Finishes an asynchronous file info query.
4394
See g_file_query_info_async(). <dl compact><dt><b>Parameters:</b></dt><dd>
4395
<table border="0" cellspacing="2" cellpadding="0">
4396
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
4399
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> for given <em>file</em> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
4403
<a class="anchor" name="1ae03d0652bcfbad2f47409b8f815bc4"></a><!-- doxytag: member="Gio::File::query_settable_attributes" ref="1ae03d0652bcfbad2f47409b8f815bc4" args="()" -->
4404
<div class="memitem">
4405
<div class="memproto">
4406
<table class="memname">
4408
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileAttributeInfoList.html">FileAttributeInfoList</a>> Gio::File::query_settable_attributes </td>
4410
<td class="paramname"> </td>
4411
<td> ) </td>
4416
<div class="memdoc">
4419
Obtain the list of settable attributes for the file.
4421
Returns: a <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the settable attributes. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the settable attributes. </dd></dl>
4425
<a class="anchor" name="4a543339b58cff6a7e5ddd840df0e69e"></a><!-- doxytag: member="Gio::File::query_settable_attributes" ref="4a543339b58cff6a7e5ddd840df0e69e" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
4426
<div class="memitem">
4427
<div class="memproto">
4428
<table class="memname">
4430
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileAttributeInfoList.html">FileAttributeInfoList</a>> Gio::File::query_settable_attributes </td>
4432
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4433
<td class="paramname"> <em>cancellable</em> </td>
4434
<td> ) </td>
4439
<div class="memdoc">
4442
Obtain the list of settable attributes for the file.
4444
Returns: a <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the settable attributes. <dl compact><dt><b>Parameters:</b></dt><dd>
4445
<table border="0" cellspacing="2" cellpadding="0">
4446
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object, <code>0</code> to ignore. </td></tr>
4449
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the settable attributes. When you are done with it, release it with g_file_attribute_info_list_unref(). </dd></dl>
4453
<a class="anchor" name="a0278acd7d09ed292359004defb742b0"></a><!-- doxytag: member="Gio::File::query_writable_namespaces" ref="a0278acd7d09ed292359004defb742b0" args="()" -->
4454
<div class="memitem">
4455
<div class="memproto">
4456
<table class="memname">
4458
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileAttributeInfoList.html">FileAttributeInfoList</a>> Gio::File::query_writable_namespaces </td>
4460
<td class="paramname"> </td>
4461
<td> ) </td>
4466
<div class="memdoc">
4469
Obtain the list of attribute namespaces where new attributes can be created by a user.
4471
An example of this is extended attributes (in the "xattr" namespace).<p>
4472
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the writable namespaces. </dd></dl>
4476
<a class="anchor" name="f5c7463b92e2887597486e7b195ca12f"></a><!-- doxytag: member="Gio::File::query_writable_namespaces" ref="f5c7463b92e2887597486e7b195ca12f" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
4477
<div class="memitem">
4478
<div class="memproto">
4479
<table class="memname">
4481
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileAttributeInfoList.html">FileAttributeInfoList</a>> Gio::File::query_writable_namespaces </td>
4483
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4484
<td class="paramname"> <em>cancellable</em> </td>
4485
<td> ) </td>
4490
<div class="memdoc">
4493
Obtain the list of attribute namespaces where new attributes can be created by a user.
4495
An example of this is extended attributes (in the "xattr" namespace).<p>
4496
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4497
<table border="0" cellspacing="2" cellpadding="0">
4498
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4501
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the writable namespaces. When you are done with it, release it with g_file_attribute_info_list_unref(). </dd></dl>
4505
<a class="anchor" name="0395b3b0b8cec5dc1fd9953e52e5fbc1"></a><!-- doxytag: member="Gio::File::read" ref="0395b3b0b8cec5dc1fd9953e52e5fbc1" args="()" -->
4506
<div class="memitem">
4507
<div class="memproto">
4508
<table class="memname">
4510
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInputStream.html">FileInputStream</a>> Gio::File::read </td>
4512
<td class="paramname"> </td>
4513
<td> ) </td>
4518
<div class="memdoc">
4521
Opens a file for reading.
4523
The result is a <a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> that can be used to read the contents of the file.<p>
4524
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. If the file is a directory, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on. <dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> or an empty RefPtr on error. </dd></dl>
4528
<a class="anchor" name="3ef959c7ad7096846f26eb8b282e3c68"></a><!-- doxytag: member="Gio::File::read" ref="3ef959c7ad7096846f26eb8b282e3c68" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
4529
<div class="memitem">
4530
<div class="memproto">
4531
<table class="memname">
4533
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInputStream.html">FileInputStream</a>> Gio::File::read </td>
4535
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4536
<td class="paramname"> <em>cancellable</em> </td>
4537
<td> ) </td>
4542
<div class="memdoc">
4545
Opens a file for reading.
4547
The result is a <a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> that can be used to read the contents of the file.<p>
4548
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED.<p>
4549
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. If the file is a directory, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on. <dl compact><dt><b>Parameters:</b></dt><dd>
4550
<table border="0" cellspacing="2" cellpadding="0">
4551
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a>. </td></tr>
4554
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> or <code>0</code> on error. </dd></dl>
4558
<a class="anchor" name="b451a182a647408e697c9115e66f6194"></a><!-- doxytag: member="Gio::File::read_async" ref="b451a182a647408e697c9115e66f6194" args="(const SlotAsyncReady &slot, int io_priority=Glib::PRIORITY_DEFAULT)" -->
4559
<div class="memitem">
4560
<div class="memproto">
4561
<table class="memname">
4563
<td class="memname">void Gio::File::read_async </td>
4565
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4566
<td class="paramname"> <em>slot</em>, </td>
4569
<td class="paramkey"></td>
4571
<td class="paramtype">int </td>
4572
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
4577
<td></td><td></td><td></td>
4581
<div class="memdoc">
4584
Asynchronously opens the file for reading.
4586
For more details, see <a class="el" href="classGio_1_1File.html#0395b3b0b8cec5dc1fd9953e52e5fbc1" title="Opens a file for reading.">read()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#64b10854ad1add1f888ecb19403eb921" title="Finishes an asynchronous file read operation started with g_file_read_async().">read_finish()</a> to get the result of the operation.<p>
4587
<dl compact><dt><b>Parameters:</b></dt><dd>
4588
<table border="0" cellspacing="2" cellpadding="0">
4589
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4590
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
4596
<a class="anchor" name="2826eed0b1e76c3771f6ad5f5b993991"></a><!-- doxytag: member="Gio::File::read_async" ref="2826eed0b1e76c3771f6ad5f5b993991" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
4597
<div class="memitem">
4598
<div class="memproto">
4599
<table class="memname">
4601
<td class="memname">void Gio::File::read_async </td>
4603
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4604
<td class="paramname"> <em>slot</em>, </td>
4607
<td class="paramkey"></td>
4609
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4610
<td class="paramname"> <em>cancellable</em>, </td>
4613
<td class="paramkey"></td>
4615
<td class="paramtype">int </td>
4616
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
4621
<td></td><td></td><td></td>
4625
<div class="memdoc">
4628
Asynchronously opens the file for reading.
4630
For more details, see <a class="el" href="classGio_1_1File.html#0395b3b0b8cec5dc1fd9953e52e5fbc1" title="Opens a file for reading.">read()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#64b10854ad1add1f888ecb19403eb921" title="Finishes an asynchronous file read operation started with g_file_read_async().">read_finish()</a> to get the result of the operation.<p>
4631
<dl compact><dt><b>Parameters:</b></dt><dd>
4632
<table border="0" cellspacing="2" cellpadding="0">
4633
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4634
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
4635
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
4641
<a class="anchor" name="64b10854ad1add1f888ecb19403eb921"></a><!-- doxytag: member="Gio::File::read_finish" ref="64b10854ad1add1f888ecb19403eb921" args="(const Glib::RefPtr< AsyncResult > &result)" -->
4642
<div class="memitem">
4643
<div class="memproto">
4644
<table class="memname">
4646
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInputStream.html">FileInputStream</a>> Gio::File::read_finish </td>
4648
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
4649
<td class="paramname"> <em>result</em> </td>
4650
<td> ) </td>
4655
<div class="memdoc">
4658
Finishes an asynchronous file read operation started with g_file_read_async().
4660
<dl compact><dt><b>Parameters:</b></dt><dd>
4661
<table border="0" cellspacing="2" cellpadding="0">
4662
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
4665
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file.">FileInputStream</a> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
4669
<a class="anchor" name="14f34508dea523cbf889b7193e513ca4"></a><!-- doxytag: member="Gio::File::remove" ref="14f34508dea523cbf889b7193e513ca4" args="()" -->
4670
<div class="memitem">
4671
<div class="memproto">
4672
<table class="memname">
4674
<td class="memname">bool Gio::File::remove </td>
4676
<td class="paramname"> </td>
4677
<td> ) </td>
4682
<div class="memdoc">
4687
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the file was deleted. <code>false</code> otherwise. </dd></dl>
4691
<a class="anchor" name="ded971b0cf84801f6684ad4bd5dc66c5"></a><!-- doxytag: member="Gio::File::remove" ref="ded971b0cf84801f6684ad4bd5dc66c5" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
4692
<div class="memitem">
4693
<div class="memproto">
4694
<table class="memname">
4696
<td class="memname">bool Gio::File::remove </td>
4698
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4699
<td class="paramname"> <em>cancellable</em> </td>
4700
<td> ) </td>
4705
<div class="memdoc">
4710
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4711
<table border="0" cellspacing="2" cellpadding="0">
4712
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4715
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the file was deleted. <code>false</code> otherwise. </dd></dl>
4719
<a class="anchor" name="cf55f9291659566f6fd36271801b013b"></a><!-- doxytag: member="Gio::File::replace" ref="cf55f9291659566f6fd36271801b013b" args="(const std::string &etag=std::string(), bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
4720
<div class="memitem">
4721
<div class="memproto">
4722
<table class="memname">
4724
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::replace </td>
4726
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4727
<td class="paramname"> <em>etag</em> = <code><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>()</code>, </td>
4730
<td class="paramkey"></td>
4732
<td class="paramtype">bool </td>
4733
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
4736
<td class="paramkey"></td>
4738
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
4739
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
4744
<td></td><td></td><td></td>
4748
<div class="memdoc">
4751
Returns an output stream for overwriting the file, possibly creating a backup copy of the file first.
4753
This will try to replace the file in the safest way possible so that any errors during the writing will not affect an already existing copy of the file. For instance, for local files it may write to a temporary file and then atomically rename over the destination when the stream is closed.<p>
4754
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
4755
If you pass in an etag value, then this value is compared to the current entity tag of the file, and if they differ a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown. This generally means that the file has been changed since you last read it. You can get the new etag from <a class="el" href="classGio_1_1FileOutputStream.html#8e29de4e67428a79b41180ca27af0a3d" title="Gets the entity tag for the file when it has been written.">FileOutputStream::get_etag()</a> after you've finished writing and closed the <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. When you load a new file you can use <a class="el" href="classGio_1_1FileInputStream.html#e9cf87761484839f4ea53bc33064f189" title="Queries a file input stream the given attributes.">FileInputStream::query_info()</a> to get the etag of the file.<p>
4756
If <em>make_backup</em> is true, this function will attempt to make a backup of the current file before overwriting it. If this fails aa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANT_CREATE_BACKUP will be thrown. If you want to replace anyway, try again with <em>make_backup</em> set to false.<p>
4757
If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown, and if the file is some other form of non-regular file then aa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_REGULAR_FILE will be thrown. Some file systems don't allow all file names, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME, and if the name is to longa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with FILENAME_TOO_LONG will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
4758
<dl compact><dt><b>Parameters:</b></dt><dd>
4759
<table border="0" cellspacing="2" cellpadding="0">
4760
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>An optional entity tag for the current Glib::File. </td></tr>
4761
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
4762
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
4765
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. </dd></dl>
4769
<a class="anchor" name="d7cf0360096504e40f799fde5cc8e9de"></a><!-- doxytag: member="Gio::File::replace" ref="d7cf0360096504e40f799fde5cc8e9de" args="(const Glib::RefPtr< Cancellable > &cancellable, const std::string &etag=std::string(), bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
4770
<div class="memitem">
4771
<div class="memproto">
4772
<table class="memname">
4774
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::replace </td>
4776
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4777
<td class="paramname"> <em>cancellable</em>, </td>
4780
<td class="paramkey"></td>
4782
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4783
<td class="paramname"> <em>etag</em> = <code><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>()</code>, </td>
4786
<td class="paramkey"></td>
4788
<td class="paramtype">bool </td>
4789
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
4792
<td class="paramkey"></td>
4794
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
4795
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
4800
<td></td><td></td><td></td>
4804
<div class="memdoc">
4807
Returns an output stream for overwriting the file, possibly creating a backup copy of the file first.
4809
This will try to replace the file in the safest way possible so that any errors during the writing will not affect an already existing copy of the file. For instance, for local files it may write to a temporary file and then atomically rename over the destination when the stream is closed.<p>
4810
By default files created are generally readable by everyone, but if you pass FILE_CREATE_PRIVATE in <em>flags</em> the file will be made readable only to the current user, to the level that is supported on the target filesystem.<p>
4811
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
4812
If you pass in an etag value, then this value is compared to the current entity tag of the file, and if they differ a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown. This generally means that the file has been changed since you last read it. You can get the new etag from <a class="el" href="classGio_1_1FileOutputStream.html#8e29de4e67428a79b41180ca27af0a3d" title="Gets the entity tag for the file when it has been written.">FileOutputStream::get_etag()</a> after you've finished writing and closed the <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. When you load a new file you can use <a class="el" href="classGio_1_1FileInputStream.html#e9cf87761484839f4ea53bc33064f189" title="Queries a file input stream the given attributes.">FileInputStream::query_info()</a> to get the etag of the file.<p>
4813
If <em>make_backup</em> is true, this function will attempt to make a backup of the current file before overwriting it. If this fails aa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANT_CREATE_BACKUP will be thrown. If you want to replace anyway, try again with <em>make_backup</em> set to false.<p>
4814
If the file is a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown, and if the file is some other form of non-regular file then aa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_REGULAR_FILE will be thrown. Some file systems don't allow all file names, and may throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with INVALID_FILENAME, and if the name is to longa <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with FILENAME_TOO_LONG will be thrown. Other errors are possible too, and depend on what kind of filesystem the file is on.<p>
4815
<dl compact><dt><b>Parameters:</b></dt><dd>
4816
<table border="0" cellspacing="2" cellpadding="0">
4817
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>An optional entity tag for the current Glib::File. </td></tr>
4818
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
4819
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
4822
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>. </dd></dl>
4826
<a class="anchor" name="e51e51a2e3a45da4324230b4d5401a58"></a><!-- doxytag: member="Gio::File::replace_async" ref="e51e51a2e3a45da4324230b4d5401a58" args="(const SlotAsyncReady &slot, const std::string &etag=std::string(), bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
4827
<div class="memitem">
4828
<div class="memproto">
4829
<table class="memname">
4831
<td class="memname">void Gio::File::replace_async </td>
4833
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4834
<td class="paramname"> <em>slot</em>, </td>
4837
<td class="paramkey"></td>
4839
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4840
<td class="paramname"> <em>etag</em> = <code><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>()</code>, </td>
4843
<td class="paramkey"></td>
4845
<td class="paramtype">bool </td>
4846
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
4849
<td class="paramkey"></td>
4851
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
4852
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
4855
<td class="paramkey"></td>
4857
<td class="paramtype">int </td>
4858
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
4863
<td></td><td></td><td></td>
4867
<div class="memdoc">
4870
Asyncronously overwrites the file, replacing the contents, possibly creating a backup copy of the file first.
4872
For more details, see <a class="el" href="classGio_1_1File.html#d7cf0360096504e40f799fde5cc8e9de" title="Returns an output stream for overwriting the file, possibly creating a backup copy...">replace()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#b28557d592f2c53df618728cf865e65e" title="Finishes an asynchronous file replace operation started with g_file_replace_async()...">replace_finish()</a> to get the result of the operation.<p>
4873
<dl compact><dt><b>Parameters:</b></dt><dd>
4874
<table border="0" cellspacing="2" cellpadding="0">
4875
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4876
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>An entity tag for the current <a class="el" href="classGio_1_1File.html" title="File and directory handling.">Gio::File</a>. </td></tr>
4877
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup of the existing file should be made. </td></tr>
4878
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
4879
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
4885
<a class="anchor" name="d777cdaa404a6a668ee8d520299687ce"></a><!-- doxytag: member="Gio::File::replace_async" ref="d777cdaa404a6a668ee8d520299687ce" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, const std::string &etag=std::string(), bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
4886
<div class="memitem">
4887
<div class="memproto">
4888
<table class="memname">
4890
<td class="memname">void Gio::File::replace_async </td>
4892
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4893
<td class="paramname"> <em>slot</em>, </td>
4896
<td class="paramkey"></td>
4898
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4899
<td class="paramname"> <em>cancellable</em>, </td>
4902
<td class="paramkey"></td>
4904
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4905
<td class="paramname"> <em>etag</em> = <code><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>()</code>, </td>
4908
<td class="paramkey"></td>
4910
<td class="paramtype">bool </td>
4911
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
4914
<td class="paramkey"></td>
4916
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
4917
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code>, </td>
4920
<td class="paramkey"></td>
4922
<td class="paramtype">int </td>
4923
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
4928
<td></td><td></td><td></td>
4932
<div class="memdoc">
4935
Asyncronously overwrites the file, replacing the contents, possibly creating a backup copy of the file first.
4937
For more details, see <a class="el" href="classGio_1_1File.html#d7cf0360096504e40f799fde5cc8e9de" title="Returns an output stream for overwriting the file, possibly creating a backup copy...">replace()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#b28557d592f2c53df618728cf865e65e" title="Finishes an asynchronous file replace operation started with g_file_replace_async()...">replace_finish()</a> to get the result of the operation.<p>
4938
<dl compact><dt><b>Parameters:</b></dt><dd>
4939
<table border="0" cellspacing="2" cellpadding="0">
4940
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4941
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
4942
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>An entity tag for the current <a class="el" href="classGio_1_1File.html" title="File and directory handling.">Gio::File</a>. </td></tr>
4943
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup of the existing file should be made. </td></tr>
4944
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
4945
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
4951
<a class="anchor" name="af33a17461ff4f70fed06818e364f617"></a><!-- doxytag: member="Gio::File::replace_contents" ref="af33a17461ff4f70fed06818e364f617" args="(const std::string &contents, const std::string &etag, std::string &new_etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
4952
<div class="memitem">
4953
<div class="memproto">
4954
<table class="memname">
4956
<td class="memname">void Gio::File::replace_contents </td>
4958
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4959
<td class="paramname"> <em>contents</em>, </td>
4962
<td class="paramkey"></td>
4964
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4965
<td class="paramname"> <em>etag</em>, </td>
4968
<td class="paramkey"></td>
4970
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4971
<td class="paramname"> <em>new_etag</em>, </td>
4974
<td class="paramkey"></td>
4976
<td class="paramtype">bool </td>
4977
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
4980
<td class="paramkey"></td>
4982
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
4983
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
4988
<td></td><td></td><td></td>
4992
<div class="memdoc">
4995
Replaces the contents of the file with <em>contents</em>.
4997
If <em>etag</em> is specified (not an empty string) any existing file must have that etag, or a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown.<p>
4998
If <em>make_backup</em> is <code>true</code>, this function will attempt to make a backup of the file.<p>
4999
The returned <em>new_etag</em> can be used to verify that the file hasn't changed the next time it is saved over. <dl compact><dt><b>Parameters:</b></dt><dd>
5000
<table border="0" cellspacing="2" cellpadding="0">
5001
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A string containing the new contents for the file. </td></tr>
5002
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>The old entity tag for the document. </td></tr>
5003
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
5004
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
5005
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location to a new entity tag for the document. </td></tr>
5011
<a class="anchor" name="23126b43cd262b63c0e458c3a4d0b65c"></a><!-- doxytag: member="Gio::File::replace_contents" ref="23126b43cd262b63c0e458c3a4d0b65c" args="(const std::string &contents, const std::string &etag, std::string &new_etag, const Glib::RefPtr< Cancellable > &cancellable, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
5012
<div class="memitem">
5013
<div class="memproto">
5014
<table class="memname">
5016
<td class="memname">void Gio::File::replace_contents </td>
5018
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5019
<td class="paramname"> <em>contents</em>, </td>
5022
<td class="paramkey"></td>
5024
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5025
<td class="paramname"> <em>etag</em>, </td>
5028
<td class="paramkey"></td>
5030
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5031
<td class="paramname"> <em>new_etag</em>, </td>
5034
<td class="paramkey"></td>
5036
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5037
<td class="paramname"> <em>cancellable</em>, </td>
5040
<td class="paramkey"></td>
5042
<td class="paramtype">bool </td>
5043
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
5046
<td class="paramkey"></td>
5048
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
5049
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
5054
<td></td><td></td><td></td>
5058
<div class="memdoc">
5061
Replaces the contents of the file with <em>contents</em>.
5063
If <em>etag</em> is specified (not an empty string) any existing file must have that etag, or a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown.<p>
5064
If <em>make_backup</em> is <code>true</code>, this function will attempt to make a backup of the file.<p>
5065
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5066
The returned <em>new_etag</em> can be used to verify that the file hasn't changed the next time it is saved over. <dl compact><dt><b>Parameters:</b></dt><dd>
5067
<table border="0" cellspacing="2" cellpadding="0">
5068
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A string containing the new contents for the file. </td></tr>
5069
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>The old entity tag for the document. </td></tr>
5070
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
5071
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
5072
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location to a new entity tag for the document. </td></tr>
5073
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5079
<a class="anchor" name="e7febf1f0f3b4b9efca9fae469082846"></a><!-- doxytag: member="Gio::File::replace_contents" ref="e7febf1f0f3b4b9efca9fae469082846" args="(const char *contents, gsize length, const std::string &etag, std::string &new_etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
5080
<div class="memitem">
5081
<div class="memproto">
5082
<table class="memname">
5084
<td class="memname">void Gio::File::replace_contents </td>
5086
<td class="paramtype">const char * </td>
5087
<td class="paramname"> <em>contents</em>, </td>
5090
<td class="paramkey"></td>
5092
<td class="paramtype">gsize </td>
5093
<td class="paramname"> <em>length</em>, </td>
5096
<td class="paramkey"></td>
5098
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5099
<td class="paramname"> <em>etag</em>, </td>
5102
<td class="paramkey"></td>
5104
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5105
<td class="paramname"> <em>new_etag</em>, </td>
5108
<td class="paramkey"></td>
5110
<td class="paramtype">bool </td>
5111
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
5114
<td class="paramkey"></td>
5116
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
5117
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
5122
<td></td><td></td><td></td>
5126
<div class="memdoc">
5129
Replaces the contents of the file with <em>contents</em> of <em>length</em> bytes.
5131
If <em>etag</em> is specified (not an empty string) any existing file must have that etag, or a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown.<p>
5132
If <em>make_backup</em> is <code>true</code>, this function will attempt to make a backup of the file.<p>
5133
The returned <em>new_etag</em> can be used to verify that the file hasn't changed the next time it is saved over. <dl compact><dt><b>Parameters:</b></dt><dd>
5134
<table border="0" cellspacing="2" cellpadding="0">
5135
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A string containing the new contents for the file. </td></tr>
5136
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of <em>contents</em> in bytes. </td></tr>
5137
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>The old entity tag for the document. </td></tr>
5138
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
5139
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
5140
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location to a new entity tag for the document. </td></tr>
5146
<a class="anchor" name="f10deca1d5c5d1f650d3b182624330dc"></a><!-- doxytag: member="Gio::File::replace_contents" ref="f10deca1d5c5d1f650d3b182624330dc" args="(const char *contents, gsize length, const std::string &etag, std::string &new_etag, const Glib::RefPtr< Cancellable > &cancellable, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
5147
<div class="memitem">
5148
<div class="memproto">
5149
<table class="memname">
5151
<td class="memname">void Gio::File::replace_contents </td>
5153
<td class="paramtype">const char * </td>
5154
<td class="paramname"> <em>contents</em>, </td>
5157
<td class="paramkey"></td>
5159
<td class="paramtype">gsize </td>
5160
<td class="paramname"> <em>length</em>, </td>
5163
<td class="paramkey"></td>
5165
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5166
<td class="paramname"> <em>etag</em>, </td>
5169
<td class="paramkey"></td>
5171
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5172
<td class="paramname"> <em>new_etag</em>, </td>
5175
<td class="paramkey"></td>
5177
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5178
<td class="paramname"> <em>cancellable</em>, </td>
5181
<td class="paramkey"></td>
5183
<td class="paramtype">bool </td>
5184
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
5187
<td class="paramkey"></td>
5189
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
5190
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
5195
<td></td><td></td><td></td>
5199
<div class="memdoc">
5202
Replaces the contents of the file with <em>contents</em> of <em>length</em> bytes.
5204
If <em>etag</em> is specified (not an empty string) any existing file must have that etag, or a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown.<p>
5205
If <em>make_backup</em> is <code>true</code>, this function will attempt to make a backup of the file.<p>
5206
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5207
The returned <em>new_etag</em> can be used to verify that the file hasn't changed the next time it is saved over. <dl compact><dt><b>Parameters:</b></dt><dd>
5208
<table border="0" cellspacing="2" cellpadding="0">
5209
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A string containing the new contents for the file. </td></tr>
5210
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of <em>contents</em> in bytes. </td></tr>
5211
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>The old entity tag for the document. </td></tr>
5212
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
5213
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
5214
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location to a new entity tag for the document. </td></tr>
5215
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5221
<a class="anchor" name="6fc86aab90620881899a701c2b2775cb"></a><!-- doxytag: member="Gio::File::replace_contents_async" ref="6fc86aab90620881899a701c2b2775cb" args="(const SlotAsyncReady &slot, const std::string &contents, const std::string &etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
5222
<div class="memitem">
5223
<div class="memproto">
5224
<table class="memname">
5226
<td class="memname">void Gio::File::replace_contents_async </td>
5228
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5229
<td class="paramname"> <em>slot</em>, </td>
5232
<td class="paramkey"></td>
5234
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5235
<td class="paramname"> <em>contents</em>, </td>
5238
<td class="paramkey"></td>
5240
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5241
<td class="paramname"> <em>etag</em>, </td>
5244
<td class="paramkey"></td>
5246
<td class="paramtype">bool </td>
5247
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
5250
<td class="paramkey"></td>
5252
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
5253
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
5258
<td></td><td></td><td></td>
5262
<div class="memdoc">
5265
Starts an asynchronous replacement of the file with the given <em>contents</em>.
5267
<em>etag</em> will replace the document's current entity tag.<p>
5268
When this operation has completed, <em>slot</em> will be called and the operation can be finalized with <a class="el" href="classGio_1_1File.html#f019065c5503c7f47d778c20f8e5de32" title="Finishes an asynchronous replace of the given file .">replace_contents_finish()</a>.<p>
5269
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5270
If <em>make_backup</em> is true, this function will attempt to make a backup of the file.<p>
5271
<dl compact><dt><b>Parameters:</b></dt><dd>
5272
<table border="0" cellspacing="2" cellpadding="0">
5273
<tr><td valign="top"></td><td valign="top"><em>slot,:</em> </td><td>A callback to call when the request is satisfied. </td></tr>
5274
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>String of contents to replace the file with. </td></tr>
5275
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>a new entity tag for the file. </td></tr>
5276
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup should be created. </td></tr>
5277
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
5283
<a class="anchor" name="380d6ce6362fc05e0e18ff1b881ceac7"></a><!-- doxytag: member="Gio::File::replace_contents_async" ref="380d6ce6362fc05e0e18ff1b881ceac7" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, const std::string &contents, const std::string &etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
5284
<div class="memitem">
5285
<div class="memproto">
5286
<table class="memname">
5288
<td class="memname">void Gio::File::replace_contents_async </td>
5290
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5291
<td class="paramname"> <em>slot</em>, </td>
5294
<td class="paramkey"></td>
5296
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5297
<td class="paramname"> <em>cancellable</em>, </td>
5300
<td class="paramkey"></td>
5302
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5303
<td class="paramname"> <em>contents</em>, </td>
5306
<td class="paramkey"></td>
5308
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5309
<td class="paramname"> <em>etag</em>, </td>
5312
<td class="paramkey"></td>
5314
<td class="paramtype">bool </td>
5315
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
5318
<td class="paramkey"></td>
5320
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
5321
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
5326
<td></td><td></td><td></td>
5330
<div class="memdoc">
5333
Starts an asynchronous replacement of the file with the given <em>contents</em> of <em>length</em> bytes.
5335
<em>etag</em> will replace the document's current entity tag.<p>
5336
When this operation has completed, <em>slot</em> will be called and the operation can be finalized with <a class="el" href="classGio_1_1File.html#f019065c5503c7f47d778c20f8e5de32" title="Finishes an asynchronous replace of the given file .">replace_contents_finish()</a>.<p>
5337
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5338
If <em>make_backup</em> is true, this function will attempt to make a backup of the file.<p>
5339
<dl compact><dt><b>Parameters:</b></dt><dd>
5340
<table border="0" cellspacing="2" cellpadding="0">
5341
<tr><td valign="top"></td><td valign="top"><em>slot,:</em> </td><td>A callback to call when the request is satisfied. </td></tr>
5342
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5343
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>String of contents to replace the file with. </td></tr>
5344
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>a new entity tag for the file. </td></tr>
5345
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup should be created. </td></tr>
5346
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
5352
<a class="anchor" name="9a1c445e84124e16294974a73f2f1bbb"></a><!-- doxytag: member="Gio::File::replace_contents_async" ref="9a1c445e84124e16294974a73f2f1bbb" args="(const SlotAsyncReady &slot, const char *contents, gsize length, const std::string &etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
5353
<div class="memitem">
5354
<div class="memproto">
5355
<table class="memname">
5357
<td class="memname">void Gio::File::replace_contents_async </td>
5359
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5360
<td class="paramname"> <em>slot</em>, </td>
5363
<td class="paramkey"></td>
5365
<td class="paramtype">const char * </td>
5366
<td class="paramname"> <em>contents</em>, </td>
5369
<td class="paramkey"></td>
5371
<td class="paramtype">gsize </td>
5372
<td class="paramname"> <em>length</em>, </td>
5375
<td class="paramkey"></td>
5377
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5378
<td class="paramname"> <em>etag</em>, </td>
5381
<td class="paramkey"></td>
5383
<td class="paramtype">bool </td>
5384
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
5387
<td class="paramkey"></td>
5389
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
5390
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
5395
<td></td><td></td><td></td>
5399
<div class="memdoc">
5402
Starts an asynchronous replacement of the file with the given <em>contents</em> of <em>length</em> bytes.
5404
<em>etag</em> will replace the document's current entity tag.<p>
5405
When this operation has completed, <em>slot</em> will be called and the operation can be finalized with <a class="el" href="classGio_1_1File.html#f019065c5503c7f47d778c20f8e5de32" title="Finishes an asynchronous replace of the given file .">replace_contents_finish()</a>.<p>
5406
If <em>make_backup</em> is true, this function will attempt to make a backup of the file.<p>
5407
<dl compact><dt><b>Parameters:</b></dt><dd>
5408
<table border="0" cellspacing="2" cellpadding="0">
5409
<tr><td valign="top"></td><td valign="top"><em>slot,:</em> </td><td>A callback to call when the request is satisfied. </td></tr>
5410
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>String of contents to replace the file with. </td></tr>
5411
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of <em>contents</em> in bytes. </td></tr>
5412
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>a new entity tag for the file. </td></tr>
5413
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup should be created. </td></tr>
5414
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
5420
<a class="anchor" name="d33b24a7942429157f47379f4353378c"></a><!-- doxytag: member="Gio::File::replace_contents_async" ref="d33b24a7942429157f47379f4353378c" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, const char *contents, gsize length, const std::string &etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
5421
<div class="memitem">
5422
<div class="memproto">
5423
<table class="memname">
5425
<td class="memname">void Gio::File::replace_contents_async </td>
5427
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5428
<td class="paramname"> <em>slot</em>, </td>
5431
<td class="paramkey"></td>
5433
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5434
<td class="paramname"> <em>cancellable</em>, </td>
5437
<td class="paramkey"></td>
5439
<td class="paramtype">const char * </td>
5440
<td class="paramname"> <em>contents</em>, </td>
5443
<td class="paramkey"></td>
5445
<td class="paramtype">gsize </td>
5446
<td class="paramname"> <em>length</em>, </td>
5449
<td class="paramkey"></td>
5451
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5452
<td class="paramname"> <em>etag</em>, </td>
5455
<td class="paramkey"></td>
5457
<td class="paramtype">bool </td>
5458
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
5461
<td class="paramkey"></td>
5463
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
5464
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
5469
<td></td><td></td><td></td>
5473
<div class="memdoc">
5476
Starts an asynchronous replacement of the file with the given <em>contents</em> of <em>length</em> bytes.
5478
<em>etag</em> will replace the document's current entity tag.<p>
5479
When this operation has completed, <em>slot</em> will be called and the operation can be finalized with <a class="el" href="classGio_1_1File.html#f019065c5503c7f47d778c20f8e5de32" title="Finishes an asynchronous replace of the given file .">replace_contents_finish()</a>.<p>
5480
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5481
If <em>make_backup</em> is true, this function will attempt to make a backup of the file.<p>
5482
<dl compact><dt><b>Parameters:</b></dt><dd>
5483
<table border="0" cellspacing="2" cellpadding="0">
5484
<tr><td valign="top"></td><td valign="top"><em>slot,:</em> </td><td>A callback to call when the request is satisfied. </td></tr>
5485
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5486
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>String of contents to replace the file with. </td></tr>
5487
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of <em>contents</em> in bytes. </td></tr>
5488
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>a new entity tag for the file. </td></tr>
5489
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup should be created. </td></tr>
5490
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
5496
<a class="anchor" name="f0372ffd3f535f39b7e48c0483e4c1f4"></a><!-- doxytag: member="Gio::File::replace_contents_finish" ref="f0372ffd3f535f39b7e48c0483e4c1f4" args="(const Glib::RefPtr< AsyncResult > &result)" -->
5497
<div class="memitem">
5498
<div class="memproto">
5499
<table class="memname">
5501
<td class="memname">void Gio::File::replace_contents_finish </td>
5503
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
5504
<td class="paramname"> <em>result</em> </td>
5505
<td> ) </td>
5510
<div class="memdoc">
5513
Finishes an asynchronous replace of the given file .
5515
See <a class="el" href="classGio_1_1File.html#d33b24a7942429157f47379f4353378c" title="Starts an asynchronous replacement of the file with the given contents of length...">replace_contents_async()</a>. Sets <em>new_etag</em> to the new entity tag for the document. <dl compact><dt><b>Parameters:</b></dt><dd>
5516
<table border="0" cellspacing="2" cellpadding="0">
5517
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. for the document. </td></tr>
5523
<a class="anchor" name="f019065c5503c7f47d778c20f8e5de32"></a><!-- doxytag: member="Gio::File::replace_contents_finish" ref="f019065c5503c7f47d778c20f8e5de32" args="(const Glib::RefPtr< AsyncResult > &result, std::string &etag)" -->
5524
<div class="memitem">
5525
<div class="memproto">
5526
<table class="memname">
5528
<td class="memname">void Gio::File::replace_contents_finish </td>
5530
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
5531
<td class="paramname"> <em>result</em>, </td>
5534
<td class="paramkey"></td>
5536
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5537
<td class="paramname"> <em>etag</em></td><td> </td>
5542
<td></td><td></td><td></td>
5546
<div class="memdoc">
5549
Finishes an asynchronous replace of the given file .
5551
See <a class="el" href="classGio_1_1File.html#d33b24a7942429157f47379f4353378c" title="Starts an asynchronous replacement of the file with the given contents of length...">replace_contents_async()</a>. Sets <em>new_etag</em> to the new entity tag for the document. <dl compact><dt><b>Parameters:</b></dt><dd>
5552
<table border="0" cellspacing="2" cellpadding="0">
5553
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
5554
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location of a new entity tag for the document. </td></tr>
5560
<a class="anchor" name="b28557d592f2c53df618728cf865e65e"></a><!-- doxytag: member="Gio::File::replace_finish" ref="b28557d592f2c53df618728cf865e65e" args="(const Glib::RefPtr< AsyncResult > &result)" -->
5561
<div class="memitem">
5562
<div class="memproto">
5563
<table class="memname">
5565
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileOutputStream.html">FileOutputStream</a>> Gio::File::replace_finish </td>
5567
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
5568
<td class="paramname"> <em>result</em> </td>
5569
<td> ) </td>
5574
<div class="memdoc">
5577
Finishes an asynchronous file replace operation started with g_file_replace_async().
5579
<dl compact><dt><b>Parameters:</b></dt><dd>
5580
<table border="0" cellspacing="2" cellpadding="0">
5581
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
5584
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file.">FileOutputStream</a>, or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
5588
<a class="anchor" name="c5e286d421c7236df39881f8ce0a4e03"></a><!-- doxytag: member="Gio::File::resolve_relative_path" ref="c5e286d421c7236df39881f8ce0a4e03" args="(const std::string &relative_path) const " -->
5589
<div class="memitem">
5590
<div class="memproto">
5591
<table class="memname">
5593
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>> Gio::File::resolve_relative_path </td>
5595
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5596
<td class="paramname"> <em>relative_path</em> </td>
5597
<td> ) </td>
5602
<div class="memdoc">
5605
Resolves a relative path for <em>file</em> to an absolute path.
5607
This call does no blocking i/o. <dl compact><dt><b>Parameters:</b></dt><dd>
5608
<table border="0" cellspacing="2" cellpadding="0">
5609
<tr><td valign="top"></td><td valign="top"><em>relative_path</em> </td><td>A given relative path string. </td></tr>
5612
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> to the resolved path. <code>0</code> if <em>relative_path</em> is <code>0</code> or if <em>file</em> is invalid. Free the returned object with Glib::object_unref(). </dd></dl>
5616
<a class="anchor" name="09f574259052186e1b516bdcbe696710"></a><!-- doxytag: member="Gio::File::set_attribute_byte_string" ref="09f574259052186e1b516bdcbe696710" args="(const std::string &attribute, const std::string &value, FileQueryInfoFlags flags)" -->
5617
<div class="memitem">
5618
<div class="memproto">
5619
<table class="memname">
5621
<td class="memname">bool Gio::File::set_attribute_byte_string </td>
5623
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5624
<td class="paramname"> <em>attribute</em>, </td>
5627
<td class="paramkey"></td>
5629
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5630
<td class="paramname"> <em>value</em>, </td>
5633
<td class="paramkey"></td>
5635
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
5636
<td class="paramname"> <em>flags</em></td><td> </td>
5641
<td></td><td></td><td></td>
5645
<div class="memdoc">
5648
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_BYTE_STRING to <em>value</em>.
5650
If <em>attribute</em> is of a different type, this operation will fail, returning <code>false</code>.<p>
5651
<dl compact><dt><b>Parameters:</b></dt><dd>
5652
<table border="0" cellspacing="2" cellpadding="0">
5653
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
5654
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string containing the attribute's new value. </td></tr>
5655
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
5658
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
5662
<a class="anchor" name="4f4373b8694c346a6908195f1f2644f3"></a><!-- doxytag: member="Gio::File::set_attribute_byte_string" ref="4f4373b8694c346a6908195f1f2644f3" args="(const std::string &attribute, const std::string &value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
5663
<div class="memitem">
5664
<div class="memproto">
5665
<table class="memname">
5667
<td class="memname">bool Gio::File::set_attribute_byte_string </td>
5669
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5670
<td class="paramname"> <em>attribute</em>, </td>
5673
<td class="paramkey"></td>
5675
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5676
<td class="paramname"> <em>value</em>, </td>
5679
<td class="paramkey"></td>
5681
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
5682
<td class="paramname"> <em>flags</em>, </td>
5685
<td class="paramkey"></td>
5687
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5688
<td class="paramname"> <em>cancellable</em></td><td> </td>
5693
<td></td><td></td><td></td>
5697
<div class="memdoc">
5700
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_BYTE_STRING to <em>value</em>.
5702
If <em>attribute</em> is of a different type, this operation will fail, returning <code>false</code>.<p>
5703
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
5704
<table border="0" cellspacing="2" cellpadding="0">
5705
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
5706
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string containing the attribute's new value. </td></tr>
5707
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
5708
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5711
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
5715
<a class="anchor" name="4a707084a3c0a963548a21d17d0ec0b5"></a><!-- doxytag: member="Gio::File::set_attribute_int32" ref="4a707084a3c0a963548a21d17d0ec0b5" args="(const std::string &attribute, gint32 value, FileQueryInfoFlags flags)" -->
5716
<div class="memitem">
5717
<div class="memproto">
5718
<table class="memname">
5720
<td class="memname">bool Gio::File::set_attribute_int32 </td>
5722
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5723
<td class="paramname"> <em>attribute</em>, </td>
5726
<td class="paramkey"></td>
5728
<td class="paramtype">gint32 </td>
5729
<td class="paramname"> <em>value</em>, </td>
5732
<td class="paramkey"></td>
5734
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
5735
<td class="paramname"> <em>flags</em></td><td> </td>
5740
<td></td><td></td><td></td>
5744
<div class="memdoc">
5747
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_INT32 to <em>value</em>.
5749
If <em>attribute</em> is of a different type, this operation will fail.<p>
5750
<dl compact><dt><b>Parameters:</b></dt><dd>
5751
<table border="0" cellspacing="2" cellpadding="0">
5752
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
5753
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A gint32 containing the attribute's new value. </td></tr>
5754
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
5757
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
5761
<a class="anchor" name="b0290ecba7b06ccf7736e2292708667e"></a><!-- doxytag: member="Gio::File::set_attribute_int32" ref="b0290ecba7b06ccf7736e2292708667e" args="(const std::string &attribute, gint32 value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
5762
<div class="memitem">
5763
<div class="memproto">
5764
<table class="memname">
5766
<td class="memname">bool Gio::File::set_attribute_int32 </td>
5768
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5769
<td class="paramname"> <em>attribute</em>, </td>
5772
<td class="paramkey"></td>
5774
<td class="paramtype">gint32 </td>
5775
<td class="paramname"> <em>value</em>, </td>
5778
<td class="paramkey"></td>
5780
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
5781
<td class="paramname"> <em>flags</em>, </td>
5784
<td class="paramkey"></td>
5786
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5787
<td class="paramname"> <em>cancellable</em></td><td> </td>
5792
<td></td><td></td><td></td>
5796
<div class="memdoc">
5799
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_INT32 to <em>value</em>.
5801
If <em>attribute</em> is of a different type, this operation will fail.<p>
5802
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
5803
<table border="0" cellspacing="2" cellpadding="0">
5804
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
5805
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A gint32 containing the attribute's new value. </td></tr>
5806
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
5807
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5810
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
5814
<a class="anchor" name="4477b0063110951b26c855696ec34802"></a><!-- doxytag: member="Gio::File::set_attribute_int64" ref="4477b0063110951b26c855696ec34802" args="(const std::string &attribute, gint64 value, FileQueryInfoFlags flags)" -->
5815
<div class="memitem">
5816
<div class="memproto">
5817
<table class="memname">
5819
<td class="memname">bool Gio::File::set_attribute_int64 </td>
5821
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5822
<td class="paramname"> <em>attribute</em>, </td>
5825
<td class="paramkey"></td>
5827
<td class="paramtype">gint64 </td>
5828
<td class="paramname"> <em>value</em>, </td>
5831
<td class="paramkey"></td>
5833
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
5834
<td class="paramname"> <em>flags</em></td><td> </td>
5839
<td></td><td></td><td></td>
5843
<div class="memdoc">
5846
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_INT64 to <em>value</em>.
5848
If <em>attribute</em> is of a different type, this operation will fail.<p>
5849
<dl compact><dt><b>Parameters:</b></dt><dd>
5850
<table border="0" cellspacing="2" cellpadding="0">
5851
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
5852
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint64 containing the attribute's new value. </td></tr>
5853
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
5856
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set, <code>false</code> otherwise. </dd></dl>
5860
<a class="anchor" name="111d73a2d003e5a5a4c5f86c7c3d2fb7"></a><!-- doxytag: member="Gio::File::set_attribute_int64" ref="111d73a2d003e5a5a4c5f86c7c3d2fb7" args="(const std::string &attribute, gint64 value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
5861
<div class="memitem">
5862
<div class="memproto">
5863
<table class="memname">
5865
<td class="memname">bool Gio::File::set_attribute_int64 </td>
5867
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5868
<td class="paramname"> <em>attribute</em>, </td>
5871
<td class="paramkey"></td>
5873
<td class="paramtype">gint64 </td>
5874
<td class="paramname"> <em>value</em>, </td>
5877
<td class="paramkey"></td>
5879
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
5880
<td class="paramname"> <em>flags</em>, </td>
5883
<td class="paramkey"></td>
5885
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5886
<td class="paramname"> <em>cancellable</em></td><td> </td>
5891
<td></td><td></td><td></td>
5895
<div class="memdoc">
5898
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_INT64 to <em>value</em>.
5900
If <em>attribute</em> is of a different type, this operation will fail.<p>
5901
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
5902
<table border="0" cellspacing="2" cellpadding="0">
5903
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
5904
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint64 containing the attribute's new value. </td></tr>
5905
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
5906
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5909
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set, <code>false</code> otherwise. </dd></dl>
5913
<a class="anchor" name="75fa7e1a44e97a910d232f2b4ab4bfdd"></a><!-- doxytag: member="Gio::File::set_attribute_string" ref="75fa7e1a44e97a910d232f2b4ab4bfdd" args="(const std::string &attribute, const std::string &value, FileQueryInfoFlags flags)" -->
5914
<div class="memitem">
5915
<div class="memproto">
5916
<table class="memname">
5918
<td class="memname">bool Gio::File::set_attribute_string </td>
5920
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5921
<td class="paramname"> <em>attribute</em>, </td>
5924
<td class="paramkey"></td>
5926
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5927
<td class="paramname"> <em>value</em>, </td>
5930
<td class="paramkey"></td>
5932
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
5933
<td class="paramname"> <em>flags</em></td><td> </td>
5938
<td></td><td></td><td></td>
5942
<div class="memdoc">
5945
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_STRING to <em>value</em>.
5947
If <em>attribute</em> is of a different type, this operation will fail.<p>
5948
<dl compact><dt><b>Parameters:</b></dt><dd>
5949
<table border="0" cellspacing="2" cellpadding="0">
5950
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
5951
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string containing the attribute's value. </td></tr>
5952
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>FileQueryInfoFlags. </td></tr>
5955
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set, <code>false</code> otherwise. </dd></dl>
5959
<a class="anchor" name="5ce5f43fd5e2836ac1989a54d3233ff6"></a><!-- doxytag: member="Gio::File::set_attribute_string" ref="5ce5f43fd5e2836ac1989a54d3233ff6" args="(const std::string &attribute, const std::string &value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
5960
<div class="memitem">
5961
<div class="memproto">
5962
<table class="memname">
5964
<td class="memname">bool Gio::File::set_attribute_string </td>
5966
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5967
<td class="paramname"> <em>attribute</em>, </td>
5970
<td class="paramkey"></td>
5972
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5973
<td class="paramname"> <em>value</em>, </td>
5976
<td class="paramkey"></td>
5978
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
5979
<td class="paramname"> <em>flags</em>, </td>
5982
<td class="paramkey"></td>
5984
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5985
<td class="paramname"> <em>cancellable</em></td><td> </td>
5990
<td></td><td></td><td></td>
5994
<div class="memdoc">
5997
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_STRING to <em>value</em>.
5999
If <em>attribute</em> is of a different type, this operation will fail.<p>
6000
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
6001
<table border="0" cellspacing="2" cellpadding="0">
6002
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
6003
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string containing the attribute's value. </td></tr>
6004
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>FileQueryInfoFlags. </td></tr>
6005
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
6008
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set, <code>false</code> otherwise. </dd></dl>
6012
<a class="anchor" name="7f769f140143f2e96a7587a10b6792a9"></a><!-- doxytag: member="Gio::File::set_attribute_uint32" ref="7f769f140143f2e96a7587a10b6792a9" args="(const std::string &attribute, guint32 value, FileQueryInfoFlags flags)" -->
6013
<div class="memitem">
6014
<div class="memproto">
6015
<table class="memname">
6017
<td class="memname">bool Gio::File::set_attribute_uint32 </td>
6019
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6020
<td class="paramname"> <em>attribute</em>, </td>
6023
<td class="paramkey"></td>
6025
<td class="paramtype">guint32 </td>
6026
<td class="paramname"> <em>value</em>, </td>
6029
<td class="paramkey"></td>
6031
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
6032
<td class="paramname"> <em>flags</em></td><td> </td>
6037
<td></td><td></td><td></td>
6041
<div class="memdoc">
6044
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_UINT32 to <em>value</em>.
6046
If <em>attribute</em> is of a different type, this operation will fail.<p>
6047
<dl compact><dt><b>Parameters:</b></dt><dd>
6048
<table border="0" cellspacing="2" cellpadding="0">
6049
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
6050
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint32 containing the attribute's new value. </td></tr>
6051
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
6054
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
6058
<a class="anchor" name="e53b0f4d2214e050a290c8e35cac0f27"></a><!-- doxytag: member="Gio::File::set_attribute_uint32" ref="e53b0f4d2214e050a290c8e35cac0f27" args="(const std::string &attribute, guint32 value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
6059
<div class="memitem">
6060
<div class="memproto">
6061
<table class="memname">
6063
<td class="memname">bool Gio::File::set_attribute_uint32 </td>
6065
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6066
<td class="paramname"> <em>attribute</em>, </td>
6069
<td class="paramkey"></td>
6071
<td class="paramtype">guint32 </td>
6072
<td class="paramname"> <em>value</em>, </td>
6075
<td class="paramkey"></td>
6077
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
6078
<td class="paramname"> <em>flags</em>, </td>
6081
<td class="paramkey"></td>
6083
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6084
<td class="paramname"> <em>cancellable</em></td><td> </td>
6089
<td></td><td></td><td></td>
6093
<div class="memdoc">
6096
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_UINT32 to <em>value</em>.
6098
If <em>attribute</em> is of a different type, this operation will fail.<p>
6099
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
6100
<table border="0" cellspacing="2" cellpadding="0">
6101
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
6102
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint32 containing the attribute's new value. </td></tr>
6103
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
6104
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
6107
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
6111
<a class="anchor" name="4aa77b3580df88cfd3d7231af78155c7"></a><!-- doxytag: member="Gio::File::set_attribute_uint64" ref="4aa77b3580df88cfd3d7231af78155c7" args="(const std::string &attribute, guint64 value, FileQueryInfoFlags flags)" -->
6112
<div class="memitem">
6113
<div class="memproto">
6114
<table class="memname">
6116
<td class="memname">bool Gio::File::set_attribute_uint64 </td>
6118
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6119
<td class="paramname"> <em>attribute</em>, </td>
6122
<td class="paramkey"></td>
6124
<td class="paramtype">guint64 </td>
6125
<td class="paramname"> <em>value</em>, </td>
6128
<td class="paramkey"></td>
6130
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
6131
<td class="paramname"> <em>flags</em></td><td> </td>
6136
<td></td><td></td><td></td>
6140
<div class="memdoc">
6143
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_UINT64 to <em>value</em>.
6145
If <em>attribute</em> is of a different type, this operation will fail.<p>
6146
<dl compact><dt><b>Parameters:</b></dt><dd>
6147
<table border="0" cellspacing="2" cellpadding="0">
6148
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
6149
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint64 containing the attribute's new value. </td></tr>
6150
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
6153
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
6157
<a class="anchor" name="48638081fd7af772a39af59a558b17f7"></a><!-- doxytag: member="Gio::File::set_attribute_uint64" ref="48638081fd7af772a39af59a558b17f7" args="(const std::string &attribute, guint64 value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
6158
<div class="memitem">
6159
<div class="memproto">
6160
<table class="memname">
6162
<td class="memname">bool Gio::File::set_attribute_uint64 </td>
6164
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6165
<td class="paramname"> <em>attribute</em>, </td>
6168
<td class="paramkey"></td>
6170
<td class="paramtype">guint64 </td>
6171
<td class="paramname"> <em>value</em>, </td>
6174
<td class="paramkey"></td>
6176
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
6177
<td class="paramname"> <em>flags</em>, </td>
6180
<td class="paramkey"></td>
6182
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6183
<td class="paramname"> <em>cancellable</em></td><td> </td>
6188
<td></td><td></td><td></td>
6192
<div class="memdoc">
6195
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_UINT64 to <em>value</em>.
6197
If <em>attribute</em> is of a different type, this operation will fail.<p>
6198
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
6199
<table border="0" cellspacing="2" cellpadding="0">
6200
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
6201
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint64 containing the attribute's new value. </td></tr>
6202
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
6203
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
6206
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
6210
<a class="anchor" name="61317a1980318537aa8ada7bb8cc2390"></a><!-- doxytag: member="Gio::File::set_attributes_async" ref="61317a1980318537aa8ada7bb8cc2390" args="(const Glib::RefPtr< FileInfo > &info, const SlotAsyncReady &slot, FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
6211
<div class="memitem">
6212
<div class="memproto">
6213
<table class="memname">
6215
<td class="memname">void Gio::File::set_attributes_async </td>
6217
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
6218
<td class="paramname"> <em>info</em>, </td>
6221
<td class="paramkey"></td>
6223
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6224
<td class="paramname"> <em>slot</em>, </td>
6227
<td class="paramkey"></td>
6229
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
6230
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code>, </td>
6233
<td class="paramkey"></td>
6235
<td class="paramtype">int </td>
6236
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
6241
<td></td><td></td><td></td>
6245
<div class="memdoc">
6248
Asynchronously sets the attributes of file with info.
6250
For more details, see <a class="el" href="classGio_1_1File.html#69d9e40a85b96809abc5189b34e8d9b7" title="Tries to set all attributes in the FileInfo on the target values, not stopping on...">set_attributes_from_info()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#efd45aed7b975b6e204e67927de2817a">set_attributes_finish()</a> to get the result of the operation.<p>
6251
<dl compact><dt><b>Parameters:</b></dt><dd>
6252
<table border="0" cellspacing="2" cellpadding="0">
6253
<tr><td valign="top"></td><td valign="top"><em>info</em> </td><td>A <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a>. </td></tr>
6254
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
6255
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
6256
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
6262
<a class="anchor" name="14165fba9bf7d91448c3207407ae50c2"></a><!-- doxytag: member="Gio::File::set_attributes_async" ref="14165fba9bf7d91448c3207407ae50c2" args="(const Glib::RefPtr< FileInfo > &info, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
6263
<div class="memitem">
6264
<div class="memproto">
6265
<table class="memname">
6267
<td class="memname">void Gio::File::set_attributes_async </td>
6269
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
6270
<td class="paramname"> <em>info</em>, </td>
6273
<td class="paramkey"></td>
6275
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6276
<td class="paramname"> <em>slot</em>, </td>
6279
<td class="paramkey"></td>
6281
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6282
<td class="paramname"> <em>cancellable</em>, </td>
6285
<td class="paramkey"></td>
6287
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
6288
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code>, </td>
6291
<td class="paramkey"></td>
6293
<td class="paramtype">int </td>
6294
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
6299
<td></td><td></td><td></td>
6303
<div class="memdoc">
6306
Asynchronously sets the attributes of file with info.
6308
For more details, see <a class="el" href="classGio_1_1File.html#69d9e40a85b96809abc5189b34e8d9b7" title="Tries to set all attributes in the FileInfo on the target values, not stopping on...">set_attributes_from_info()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#efd45aed7b975b6e204e67927de2817a">set_attributes_finish()</a> to get the result of the operation.<p>
6309
<dl compact><dt><b>Parameters:</b></dt><dd>
6310
<table border="0" cellspacing="2" cellpadding="0">
6311
<tr><td valign="top"></td><td valign="top"><em>info</em> </td><td>A <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a>. </td></tr>
6312
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
6313
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
6314
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
6315
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
6321
<a class="anchor" name="efd45aed7b975b6e204e67927de2817a"></a><!-- doxytag: member="Gio::File::set_attributes_finish" ref="efd45aed7b975b6e204e67927de2817a" args="(const Glib::RefPtr< AsyncResult > &result, const Glib::RefPtr< FileInfo > &info)" -->
6322
<div class="memitem">
6323
<div class="memproto">
6324
<table class="memname">
6326
<td class="memname">bool Gio::File::set_attributes_finish </td>
6328
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
6329
<td class="paramname"> <em>result</em>, </td>
6332
<td class="paramkey"></td>
6334
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
6335
<td class="paramname"> <em>info</em></td><td> </td>
6340
<td></td><td></td><td></td>
6344
<div class="memdoc">
6350
<a class="anchor" name="e9f6975ffef28f0d7145601a99de0903"></a><!-- doxytag: member="Gio::File::set_attributes_from_info" ref="e9f6975ffef28f0d7145601a99de0903" args="(const Glib::RefPtr< FileInfo > &info, FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE)" -->
6351
<div class="memitem">
6352
<div class="memproto">
6353
<table class="memname">
6355
<td class="memname">bool Gio::File::set_attributes_from_info </td>
6357
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
6358
<td class="paramname"> <em>info</em>, </td>
6361
<td class="paramkey"></td>
6363
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
6364
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
6369
<td></td><td></td><td></td>
6373
<div class="memdoc">
6376
Tries to set all attributes in the <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> on the target values, not stopping on the first error.
6378
If there is any error during this operation then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown. <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Error</a> on particular fields are flagged by setting the "status" field in the attribute value to FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can also detect further errors.<p>
6379
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6380
<dl compact><dt><b>Parameters:</b></dt><dd>
6381
<table border="0" cellspacing="2" cellpadding="0">
6382
<tr><td valign="top"></td><td valign="top"><em>info</em> </td><td>A <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a>. </td></tr>
6383
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
6386
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if there was any error, <code>false</code> otherwise. </dd></dl>
6390
<a class="anchor" name="69d9e40a85b96809abc5189b34e8d9b7"></a><!-- doxytag: member="Gio::File::set_attributes_from_info" ref="69d9e40a85b96809abc5189b34e8d9b7" args="(const Glib::RefPtr< FileInfo > &info, const Glib::RefPtr< Cancellable > &cancellable, FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE)" -->
6391
<div class="memitem">
6392
<div class="memproto">
6393
<table class="memname">
6395
<td class="memname">bool Gio::File::set_attributes_from_info </td>
6397
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
6398
<td class="paramname"> <em>info</em>, </td>
6401
<td class="paramkey"></td>
6403
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6404
<td class="paramname"> <em>cancellable</em>, </td>
6407
<td class="paramkey"></td>
6409
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
6410
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
6415
<td></td><td></td><td></td>
6419
<div class="memdoc">
6422
Tries to set all attributes in the <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> on the target values, not stopping on the first error.
6424
If there is any error during this operation then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown. <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Error</a> on particular fields are flagged by setting the "status" field in the attribute value to FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can also detect further errors.<p>
6425
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6426
<dl compact><dt><b>Parameters:</b></dt><dd>
6427
<table border="0" cellspacing="2" cellpadding="0">
6428
<tr><td valign="top"></td><td valign="top"><em>info</em> </td><td>A <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a>. </td></tr>
6429
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
6430
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
6433
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if there was any error, <code>false</code> otherwise. </dd></dl>
2601
<a class="anchor" name="6eb675267c7ea1c2a0d40e2e754d8333"></a><!-- doxytag: member="Gio::File::find_enclosing_mount" ref="6eb675267c7ea1c2a0d40e2e754d8333" args="()" -->
2602
<div class="memitem">
2603
<div class="memproto">
2604
<table class="memname">
2606
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Mount.html">Mount</a>> Gio::File::find_enclosing_mount </td>
2608
<td class="paramname"> </td>
2609
<td> ) </td>
2614
<div class="memdoc">
2617
Gets a <a class="el" href="classGio_1_1Mount.html" title="The Mount interface represents user-visible mounts.">Mount</a> for the <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>.
2619
If the FileIface for the file does not have a mount (e.g. possibly a remote share), an <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> wtih NOT_FOUND will be thrown and an empty RefPtr will be returned.<p>
2620
<dl compact><dt><b>Parameters:</b></dt><dd>
2621
<table border="0" cellspacing="2" cellpadding="0">
2622
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
2625
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1Mount.html" title="The Mount interface represents user-visible mounts.">Mount</a> where the file is located. </dd></dl>
2629
<a class="anchor" name="78c95d4fa47157f7757b686677dec018"></a><!-- doxytag: member="Gio::File::find_enclosing_mount_async" ref="78c95d4fa47157f7757b686677dec018" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
2630
<div class="memitem">
2631
<div class="memproto">
2632
<table class="memname">
2634
<td class="memname">void Gio::File::find_enclosing_mount_async </td>
2636
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
2637
<td class="paramname"> <em>slot</em>, </td>
2640
<td class="paramkey"></td>
2642
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2643
<td class="paramname"> <em>cancellable</em>, </td>
2646
<td class="paramkey"></td>
2648
<td class="paramtype">int </td>
2649
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
2654
<td></td><td></td><td></td>
2658
<div class="memdoc">
2661
Asynchronously gets the mount for the file.
2663
For more details, see <a class="el" href="classGio_1_1File.html#6eb675267c7ea1c2a0d40e2e754d8333" title="Gets a Mount for the File.">find_enclosing_mount()</a> which is the synchronous version of this call.<p>
2664
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#a12e6222d81179937cdc366f4d315433" title="Finishes an asynchronous find mount request.">find_enclosing_mount_finish()</a> to get the result of the operation.<p>
2665
<dl compact><dt><b>Parameters:</b></dt><dd>
2666
<table border="0" cellspacing="2" cellpadding="0">
2667
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
2668
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
2669
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
2675
<a class="anchor" name="67458be57c5687e7469bc26e2594f4be"></a><!-- doxytag: member="Gio::File::find_enclosing_mount_async" ref="67458be57c5687e7469bc26e2594f4be" args="(const SlotAsyncReady &slot, int io_priority=Glib::PRIORITY_DEFAULT)" -->
2676
<div class="memitem">
2677
<div class="memproto">
2678
<table class="memname">
2680
<td class="memname">void Gio::File::find_enclosing_mount_async </td>
2682
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
2683
<td class="paramname"> <em>slot</em>, </td>
2686
<td class="paramkey"></td>
2688
<td class="paramtype">int </td>
2689
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
2694
<td></td><td></td><td></td>
2698
<div class="memdoc">
2701
Asynchronously gets the mount for the file.
2703
For more details, see <a class="el" href="classGio_1_1File.html#6eb675267c7ea1c2a0d40e2e754d8333" title="Gets a Mount for the File.">find_enclosing_mount()</a> which is the synchronous version of this call.<p>
2704
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#a12e6222d81179937cdc366f4d315433" title="Finishes an asynchronous find mount request.">find_enclosing_mount_finish()</a> to get the result of the operation.<p>
2705
<dl compact><dt><b>Parameters:</b></dt><dd>
2706
<table border="0" cellspacing="2" cellpadding="0">
2707
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
2708
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
2714
<a class="anchor" name="a12e6222d81179937cdc366f4d315433"></a><!-- doxytag: member="Gio::File::find_enclosing_mount_finish" ref="a12e6222d81179937cdc366f4d315433" args="(const Glib::RefPtr< AsyncResult > &result)" -->
2715
<div class="memitem">
2716
<div class="memproto">
2717
<table class="memname">
2719
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Mount.html">Mount</a>> Gio::File::find_enclosing_mount_finish </td>
2721
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
2722
<td class="paramname"> <em>result</em> </td>
2723
<td> ) </td>
2728
<div class="memdoc">
2731
Finishes an asynchronous find mount request.
2733
See g_file_find_enclosing_mount_async(). <dl compact><dt><b>Parameters:</b></dt><dd>
2734
<table border="0" cellspacing="2" cellpadding="0">
2735
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
2738
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGio_1_1Mount.html" title="The Mount interface represents user-visible mounts.">Mount</a> for given <em>file</em> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
2742
<a class="anchor" name="68c3afcddc0d4860aa2afb4bf715bb20"></a><!-- doxytag: member="Gio::File::enumerate_children" ref="68c3afcddc0d4860aa2afb4bf715bb20" args="(const Glib::RefPtr< Cancellable > &cancellable, const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE)" -->
2743
<div class="memitem">
2744
<div class="memproto">
2745
<table class="memname">
2747
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileEnumerator.html">FileEnumerator</a>> Gio::File::enumerate_children </td>
2749
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2750
<td class="paramname"> <em>cancellable</em>, </td>
2753
<td class="paramkey"></td>
2755
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2756
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
2759
<td class="paramkey"></td>
2761
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
2762
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
2767
<td></td><td></td><td></td>
2771
<div class="memdoc">
2774
Gets the requested information about the files in a directory.
2776
The result is a <a class="el" href="classGio_1_1FileEnumerator.html" title="Enumerated Files Routines.">FileEnumerator</a> object that will give out <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> objects for all the files in the directory.<p>
2777
The <em>attribute</em> value is a string that specifies the file attributes that should be gathered. It is not an error if its not possible to read a particular requested attribute from a file, it just won't be set. <em>attribute</em> should be a comma-separated list of attribute or attribute wildcards. The wildcard "*" means all attributes, and a wildcard like "standard::*" means all attributes in the standard namespace. An example attribute query be "standard::*,owner::user". The standard attributes are availible as defines, like FILE_ATTRIBUTE_STANDARD_NAME.<p>
2778
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
2779
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. If the file is not a directory, a <a class="el" href="classGlib_1_1FileError.html" title="Exception class for file-related errors.">Glib::FileError</a> with NOTDIR will be thrown. Other errors are possible too.<p>
2780
<dl compact><dt><b>Parameters:</b></dt><dd>
2781
<table border="0" cellspacing="2" cellpadding="0">
2782
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
2783
<tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>An attribute query string. </td></tr>
2784
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
2787
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileEnumerator.html" title="Enumerated Files Routines.">FileEnumerator</a> if successful. </dd></dl>
2791
<a class="anchor" name="c0e293d607499b223f4892fb290ab2d6"></a><!-- doxytag: member="Gio::File::enumerate_children" ref="c0e293d607499b223f4892fb290ab2d6" args="(const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE)" -->
2792
<div class="memitem">
2793
<div class="memproto">
2794
<table class="memname">
2796
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileEnumerator.html">FileEnumerator</a>> Gio::File::enumerate_children </td>
2798
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2799
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
2802
<td class="paramkey"></td>
2804
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
2805
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
2810
<td></td><td></td><td></td>
2814
<div class="memdoc">
2817
Gets the requested information about the files in a directory.
2819
The result is a <a class="el" href="classGio_1_1FileEnumerator.html" title="Enumerated Files Routines.">FileEnumerator</a> object that will give out <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> objects for all the files in the directory.<p>
2820
The <em>attribute</em> value is a string that specifies the file attributes that should be gathered. It is not an error if its not possible to read a particular requested attribute from a file, it just won't be set. <em>attribute</em> should be a comma-separated list of attribute or attribute wildcards. The wildcard "*" means all attributes, and a wildcard like "standard::*" means all attributes in the standard namespace. An example attribute query be "standard::*,owner::user". The standard attributes are availible as defines, like FILE_ATTRIBUTE_STANDARD_NAME.<p>
2821
If the file does not exist, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown. If the file is not a directory, a <a class="el" href="classGlib_1_1FileError.html" title="Exception class for file-related errors.">Glib::FileError</a> with NOTDIR will be thrown. Other errors are possible too.<p>
2822
<dl compact><dt><b>Parameters:</b></dt><dd>
2823
<table border="0" cellspacing="2" cellpadding="0">
2824
<tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>An attribute query string. </td></tr>
2825
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
2828
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileEnumerator.html" title="Enumerated Files Routines.">FileEnumerator</a> if successful. </dd></dl>
2832
<a class="anchor" name="1ead7237b7057d9b15cf5f3065988131"></a><!-- doxytag: member="Gio::File::enumerate_children_async" ref="1ead7237b7057d9b15cf5f3065988131" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
2833
<div class="memitem">
2834
<div class="memproto">
2835
<table class="memname">
2837
<td class="memname">void Gio::File::enumerate_children_async </td>
2839
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
2840
<td class="paramname"> <em>slot</em>, </td>
2843
<td class="paramkey"></td>
2845
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2846
<td class="paramname"> <em>cancellable</em>, </td>
2849
<td class="paramkey"></td>
2851
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2852
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
2855
<td class="paramkey"></td>
2857
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
2858
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code>, </td>
2861
<td class="paramkey"></td>
2863
<td class="paramtype">int </td>
2864
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
2869
<td></td><td></td><td></td>
2873
<div class="memdoc">
2876
Asynchronously gets the requested information about the files in a directory.
2878
The result is a GFileEnumerator object that will give out GFileInfo objects for all the files in the directory.<p>
2879
For more details, see <a class="el" href="classGio_1_1File.html#68c3afcddc0d4860aa2afb4bf715bb20" title="Gets the requested information about the files in a directory.">enumerate_children()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#617a2950448788e68df128c58e068a14" title="Finishes an async enumerate children operation.">enumerate_children_finish()</a> to get the result of the operation.<p>
2880
<dl compact><dt><b>Parameters:</b></dt><dd>
2881
<table border="0" cellspacing="2" cellpadding="0">
2882
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
2883
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
2884
<tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>An attribute query string. </td></tr>
2885
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
2886
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
2892
<a class="anchor" name="5b5470cf1c97754a12169201665f1202"></a><!-- doxytag: member="Gio::File::enumerate_children_async" ref="5b5470cf1c97754a12169201665f1202" args="(const SlotAsyncReady &slot, const std::string &attributes="*", FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
2893
<div class="memitem">
2894
<div class="memproto">
2895
<table class="memname">
2897
<td class="memname">void Gio::File::enumerate_children_async </td>
2899
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
2900
<td class="paramname"> <em>slot</em>, </td>
2903
<td class="paramkey"></td>
2905
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
2906
<td class="paramname"> <em>attributes</em> = <code>"*"</code>, </td>
2909
<td class="paramkey"></td>
2911
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
2912
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code>, </td>
2915
<td class="paramkey"></td>
2917
<td class="paramtype">int </td>
2918
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
2923
<td></td><td></td><td></td>
2927
<div class="memdoc">
2930
Asynchronously gets the requested information about the files in a directory.
2932
The result is a GFileEnumerator object that will give out GFileInfo objects for all the files in the directory.<p>
2933
For more details, see <a class="el" href="classGio_1_1File.html#68c3afcddc0d4860aa2afb4bf715bb20" title="Gets the requested information about the files in a directory.">enumerate_children()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#617a2950448788e68df128c58e068a14" title="Finishes an async enumerate children operation.">enumerate_children_finish()</a> to get the result of the operation.<p>
2934
<dl compact><dt><b>Parameters:</b></dt><dd>
2935
<table border="0" cellspacing="2" cellpadding="0">
2936
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
2937
<tr><td valign="top"></td><td valign="top"><em>attributes</em> </td><td>An attribute query string. </td></tr>
2938
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
2939
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
2945
<a class="anchor" name="617a2950448788e68df128c58e068a14"></a><!-- doxytag: member="Gio::File::enumerate_children_finish" ref="617a2950448788e68df128c58e068a14" args="(const Glib::RefPtr< AsyncResult > &result)" -->
2946
<div class="memitem">
2947
<div class="memproto">
2948
<table class="memname">
2950
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileEnumerator.html">FileEnumerator</a>> Gio::File::enumerate_children_finish </td>
2952
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
2953
<td class="paramname"> <em>result</em> </td>
2954
<td> ) </td>
2959
<div class="memdoc">
2962
Finishes an async enumerate children operation.
2964
See g_file_enumerate_children_async(). <dl compact><dt><b>Parameters:</b></dt><dd>
2965
<table border="0" cellspacing="2" cellpadding="0">
2966
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
2969
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileEnumerator.html" title="Enumerated Files Routines.">FileEnumerator</a> or <code>0</code> if an error occurred. Free the returned object with Glib::object_unref(). </dd></dl>
2973
<a class="anchor" name="3dd75810d7c9ebafac398288f5afc018"></a><!-- doxytag: member="Gio::File::set_display_name" ref="3dd75810d7c9ebafac398288f5afc018" args="(const Glib::ustring &display_name, const Glib::RefPtr< Cancellable > &cancellable)" -->
2974
<div class="memitem">
2975
<div class="memproto">
2976
<table class="memname">
2978
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>> Gio::File::set_display_name </td>
2980
<td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td>
2981
<td class="paramname"> <em>display_name</em>, </td>
2984
<td class="paramkey"></td>
2986
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
2987
<td class="paramname"> <em>cancellable</em></td><td> </td>
2992
<td></td><td></td><td></td>
2996
<div class="memdoc">
2999
Renames <em>file</em> to the specified display name.
3001
The display name is converted from UTF8 to the correct encoding for the target filesystem if possible and the <em>file</em> is renamed to this.<p>
3002
If you want to implement a rename operation in the user interface the edit name (FILE_ATTRIBUTE_STANDARD_EDIT_NAME) should be used as the initial value in the rename widget, and then the result after editing should be passed to g_file_set_display_name().<p>
3003
On success the resulting converted filename is returned.<p>
3004
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
3005
<table border="0" cellspacing="2" cellpadding="0">
3006
<tr><td valign="top"></td><td valign="top"><em>display_name</em> </td><td>A string. </td></tr>
3007
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3010
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> specifying what <em>file</em> was renamed to, or <code>0</code> if there was an error. </dd></dl>
6658
<a class="anchor" name="cae5ecd962e832cf8d538877f4118da8"></a><!-- doxytag: member="Gio::File::trash" ref="cae5ecd962e832cf8d538877f4118da8" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
6659
<div class="memitem">
6660
<div class="memproto">
6661
<table class="memname">
6663
<td class="memname">bool Gio::File::trash </td>
6665
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6666
<td class="paramname"> <em>cancellable</em> </td>
6667
<td> ) </td>
6672
<div class="memdoc">
6675
Sends <em>file</em> to the "Trashcan", if possible.
6677
This is similar to deleting it, but the user can recover it before emptying the trashcan. Not all file systems support trashing, so this call can throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_SUPPORTED.<p>
6678
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
6679
<table border="0" cellspacing="2" cellpadding="0">
6680
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
6683
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on successful trash, <code>false</code> otherwise. </dd></dl>
3273
<a class="anchor" name="f9e906ed93069e6adb6d87dae158cad9"></a><!-- doxytag: member="Gio::File::copy" ref="f9e906ed93069e6adb6d87dae158cad9" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE)" -->
3274
<div class="memitem">
3275
<div class="memproto">
3276
<table class="memname">
3278
<td class="memname">bool Gio::File::copy </td>
3280
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3281
<td class="paramname"> <em>destination</em>, </td>
3284
<td class="paramkey"></td>
3286
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
3287
<td class="paramname"> <em>slot</em>, </td>
3290
<td class="paramkey"></td>
3292
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3293
<td class="paramname"> <em>cancellable</em>, </td>
3296
<td class="paramkey"></td>
3298
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3299
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3304
<td></td><td></td><td></td>
3308
<div class="memdoc">
3311
Copies the file source to the location specified by destination.
3313
Can not handle recursive copies of directories. If the flag FILE_COPY_OVERWRITE is specified an already existing destination file is overwritten. If the flag FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks will be copied as symlinks, otherwise the target of the source symlink will be copied.<p>
3314
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3315
The operation can be monitored via the <em>slot</em> callback.<p>
3316
If the source file does not exist then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown, independent on the status of the destination.<p>
3317
If FILE_COPY_OVERWRITE is not specified and the target exists, then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with EXISTS will be thrown.<p>
3318
If trying to overwrite a file over a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. If trying to overwrite a directory with a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WOULD_MERGE will be thrown.<p>
3319
If the source is a directory and the target does not exist, or FILE_COPY_OVERWRITE is specified and the target is a file, then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WOULD_RECURSE will be thrown.<p>
3320
If you are interested in copying the <a class="el" href="classGio_1_1File.html" title="File and directory handling.">Gio::File</a> object itself (not the on-disk file), see <a class="el" href="classGio_1_1File.html#9ea238062cdc317ae982ffae5c226c9b" title="Duplicates a File handle.">File::dup()</a>.
3323
<a class="anchor" name="1d8159b5b377db174b376b3c09deb7c1"></a><!-- doxytag: member="Gio::File::copy" ref="1d8159b5b377db174b376b3c09deb7c1" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot, FileCopyFlags flags=FILE_COPY_NONE)" -->
3324
<div class="memitem">
3325
<div class="memproto">
3326
<table class="memname">
3328
<td class="memname">bool Gio::File::copy </td>
3330
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3331
<td class="paramname"> <em>destination</em>, </td>
3334
<td class="paramkey"></td>
3336
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
3337
<td class="paramname"> <em>slot</em>, </td>
3340
<td class="paramkey"></td>
3342
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3343
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3348
<td></td><td></td><td></td>
3352
<div class="memdoc">
3358
<a class="anchor" name="7a6b45bed32567031bc7b48273ad4079"></a><!-- doxytag: member="Gio::File::copy" ref="7a6b45bed32567031bc7b48273ad4079" args="(const Glib::RefPtr< File > &destination, FileCopyFlags flags=FILE_COPY_NONE)" -->
3359
<div class="memitem">
3360
<div class="memproto">
3361
<table class="memname">
3363
<td class="memname">bool Gio::File::copy </td>
3365
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3366
<td class="paramname"> <em>destination</em>, </td>
3369
<td class="paramkey"></td>
3371
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3372
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3377
<td></td><td></td><td></td>
3381
<div class="memdoc">
3387
<a class="anchor" name="1785b7a4780d5d4ba5ae651350e34398"></a><!-- doxytag: member="Gio::File::copy_async" ref="1785b7a4780d5d4ba5ae651350e34398" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot_progress, const SlotAsyncReady &slot_ready, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
3388
<div class="memitem">
3389
<div class="memproto">
3390
<table class="memname">
3392
<td class="memname">void Gio::File::copy_async </td>
3394
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3395
<td class="paramname"> <em>destination</em>, </td>
3398
<td class="paramkey"></td>
3400
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
3401
<td class="paramname"> <em>slot_progress</em>, </td>
3404
<td class="paramkey"></td>
3406
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3407
<td class="paramname"> <em>slot_ready</em>, </td>
3410
<td class="paramkey"></td>
3412
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3413
<td class="paramname"> <em>cancellable</em>, </td>
3416
<td class="paramkey"></td>
3418
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3419
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code>, </td>
3422
<td class="paramkey"></td>
3424
<td class="paramtype">int </td>
3425
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
3430
<td></td><td></td><td></td>
3434
<div class="memdoc">
3437
Copies the file to the location specified by <em>destination</em> asynchronously.
3439
For details of the behaviour, see <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>.<p>
3440
When the operation is finished, <em>slot_ready</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#68294636a2d649c9de53332faee02cf6" title="Finishes copying the file started with g_file_copy_async().">copy_finish()</a> to get the result of the operation.<p>
3441
The function specified by <em>slot_progress</em> will be called just like in <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>, however the callback will run in the main loop, not in the thread that is doing the I/O operation.<p>
3442
<dl compact><dt><b>Parameters:</b></dt><dd>
3443
<table border="0" cellspacing="2" cellpadding="0">
3444
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>Destination <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> </td></tr>
3445
<tr><td valign="top"></td><td valign="top"><em>slot_progress</em> </td><td>The callback slot to be called with progress information </td></tr>
3446
<tr><td valign="top"></td><td valign="top"><em>slot_ready</em> </td><td>A SlotAsyncReady to call when the request is satisfied </td></tr>
3447
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation </td></tr>
3448
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Set of FileCopyFlags </td></tr>
3449
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request </td></tr>
3455
<a class="anchor" name="5b8ae7393c73a9a1d383a82d61f4ac30"></a><!-- doxytag: member="Gio::File::copy_async" ref="5b8ae7393c73a9a1d383a82d61f4ac30" args="(const Glib::RefPtr< File > &destination, const SlotAsyncReady &slot_ready, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
3456
<div class="memitem">
3457
<div class="memproto">
3458
<table class="memname">
3460
<td class="memname">void Gio::File::copy_async </td>
3462
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3463
<td class="paramname"> <em>destination</em>, </td>
3466
<td class="paramkey"></td>
3468
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3469
<td class="paramname"> <em>slot_ready</em>, </td>
3472
<td class="paramkey"></td>
3474
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3475
<td class="paramname"> <em>cancellable</em>, </td>
3478
<td class="paramkey"></td>
3480
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3481
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code>, </td>
3484
<td class="paramkey"></td>
3486
<td class="paramtype">int </td>
3487
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
3492
<td></td><td></td><td></td>
3496
<div class="memdoc">
3499
Copies the file to the location specified by <em>destination</em> asynchronously.
3501
For details of the behaviour, see <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>.<p>
3502
When the operation is finished, <em>slot_ready</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#68294636a2d649c9de53332faee02cf6" title="Finishes copying the file started with g_file_copy_async().">copy_finish()</a> to get the result of the operation.<p>
3503
<dl compact><dt><b>Parameters:</b></dt><dd>
3504
<table border="0" cellspacing="2" cellpadding="0">
3505
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>Destination <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> </td></tr>
3506
<tr><td valign="top"></td><td valign="top"><em>slot_ready</em> </td><td>A SlotAsyncReady to call when the request is satisfied </td></tr>
3507
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation </td></tr>
3508
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Set of FileCopyFlags </td></tr>
3509
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request </td></tr>
3515
<a class="anchor" name="c2b1a85f29bbbe15998c090b3794cbf5"></a><!-- doxytag: member="Gio::File::copy_async" ref="c2b1a85f29bbbe15998c090b3794cbf5" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot_progress, const SlotAsyncReady &slot_ready, FileCopyFlags flags=FILE_COPY_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
3516
<div class="memitem">
3517
<div class="memproto">
3518
<table class="memname">
3520
<td class="memname">void Gio::File::copy_async </td>
3522
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3523
<td class="paramname"> <em>destination</em>, </td>
3526
<td class="paramkey"></td>
3528
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
3529
<td class="paramname"> <em>slot_progress</em>, </td>
3532
<td class="paramkey"></td>
3534
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3535
<td class="paramname"> <em>slot_ready</em>, </td>
3538
<td class="paramkey"></td>
3540
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3541
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code>, </td>
3544
<td class="paramkey"></td>
3546
<td class="paramtype">int </td>
3547
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
3552
<td></td><td></td><td></td>
3556
<div class="memdoc">
3559
Copies the file to the location specified by <em>destination</em> asynchronously.
3561
For details of the behaviour, see <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>.<p>
3562
When the operation is finished, <em>slot_ready</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#68294636a2d649c9de53332faee02cf6" title="Finishes copying the file started with g_file_copy_async().">copy_finish()</a> to get the result of the operation.<p>
3563
The function specified by <em>slot_progress</em> will be called just like in <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>, however the callback will run in the main loop, not in the thread that is doing the I/O operation.<p>
3564
<dl compact><dt><b>Parameters:</b></dt><dd>
3565
<table border="0" cellspacing="2" cellpadding="0">
3566
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>Destination <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> </td></tr>
3567
<tr><td valign="top"></td><td valign="top"><em>slot_progress</em> </td><td>The callback slot to be called with progress information </td></tr>
3568
<tr><td valign="top"></td><td valign="top"><em>slot_ready</em> </td><td>A SlotAsyncReady to call when the request is satisfied </td></tr>
3569
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Set of FileCopyFlags </td></tr>
3570
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request </td></tr>
3576
<a class="anchor" name="d538a383b8761d04bd36ed1aa1071e50"></a><!-- doxytag: member="Gio::File::copy_async" ref="d538a383b8761d04bd36ed1aa1071e50" args="(const Glib::RefPtr< File > &destination, const SlotAsyncReady &slot_ready, FileCopyFlags flags=FILE_COPY_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
3577
<div class="memitem">
3578
<div class="memproto">
3579
<table class="memname">
3581
<td class="memname">void Gio::File::copy_async </td>
3583
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3584
<td class="paramname"> <em>destination</em>, </td>
3587
<td class="paramkey"></td>
3589
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
3590
<td class="paramname"> <em>slot_ready</em>, </td>
3593
<td class="paramkey"></td>
3595
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3596
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code>, </td>
3599
<td class="paramkey"></td>
3601
<td class="paramtype">int </td>
3602
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
3607
<td></td><td></td><td></td>
3611
<div class="memdoc">
3614
Copies the file to the location specified by <em>destination</em> asynchronously.
3616
For details of the behaviour, see <a class="el" href="classGio_1_1File.html#f9e906ed93069e6adb6d87dae158cad9" title="Copies the file source to the location specified by destination.">copy()</a>.<p>
3617
When the operation is finished, <em>slot_ready</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#68294636a2d649c9de53332faee02cf6" title="Finishes copying the file started with g_file_copy_async().">copy_finish()</a> to get the result of the operation.<p>
3618
<dl compact><dt><b>Parameters:</b></dt><dd>
3619
<table border="0" cellspacing="2" cellpadding="0">
3620
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>Destination <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> </td></tr>
3621
<tr><td valign="top"></td><td valign="top"><em>slot_ready</em> </td><td>A SlotAsyncReady to call when the request is satisfied </td></tr>
3622
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Set of FileCopyFlags </td></tr>
3623
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request </td></tr>
3629
<a class="anchor" name="68294636a2d649c9de53332faee02cf6"></a><!-- doxytag: member="Gio::File::copy_finish" ref="68294636a2d649c9de53332faee02cf6" args="(const Glib::RefPtr< AsyncResult > &result)" -->
3630
<div class="memitem">
3631
<div class="memproto">
3632
<table class="memname">
3634
<td class="memname">bool Gio::File::copy_finish </td>
3636
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
3637
<td class="paramname"> <em>result</em> </td>
3638
<td> ) </td>
3643
<div class="memdoc">
3646
Finishes copying the file started with g_file_copy_async().
3648
<dl compact><dt><b>Parameters:</b></dt><dd>
3649
<table border="0" cellspacing="2" cellpadding="0">
3650
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
3653
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <code>true</code> on success, <code>false</code> on error. </dd></dl>
3657
<a class="anchor" name="51c0d55880178c37dee578fdc723b0f2"></a><!-- doxytag: member="Gio::File::move" ref="51c0d55880178c37dee578fdc723b0f2" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE)" -->
3658
<div class="memitem">
3659
<div class="memproto">
3660
<table class="memname">
3662
<td class="memname">bool Gio::File::move </td>
3664
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3665
<td class="paramname"> <em>destination</em>, </td>
3668
<td class="paramkey"></td>
3670
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
3671
<td class="paramname"> <em>slot</em>, </td>
3674
<td class="paramkey"></td>
3676
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3677
<td class="paramname"> <em>cancellable</em>, </td>
3680
<td class="paramkey"></td>
3682
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3683
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3688
<td></td><td></td><td></td>
3692
<div class="memdoc">
3695
Tries to move the file or directory source to the location specified by destination.
3697
If native move operations are supported then this is used, otherwise a copy and delete fallback is used. The native implementation may support moving directories (for instance on moves inside the same filesystem), but the fallback code does not.<p>
3698
If the flag FILE_COPY_OVERWRITE is specified an already existing destination file is overwritten.<p>
3699
If the flag FILE_COPY_NOFOLLOW_SYMLINKS is specified then symlinks will be copied as symlinks, otherwise the target of the source symlink will be copied.<p>
3700
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
3701
The operation can be monitored via the <em>slot</em> callback. If the source file does not exist then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with NOT_FOUND will be thrown, independent on the status of the destination.<p>
3702
If G_FILE_COPY_OVERWRITE is not specified and the target exists, then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with EXISTS will be thrown.<p>
3703
If trying to overwrite a file over a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with IS_DIRECTORY will be thrown. If trying to overwrite a directory with a directory a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WOULD_MERGE will be thrown.<p>
3704
If the source is a directory and the target does not exist, or FILE_COPY_OVERWRITE is specified and the target is a file, then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WOULD_RECURSE may be thrown (if the native move operation isn't available).
3707
<a class="anchor" name="dfb2d8bfed1cb7af50e5e5795ebea732"></a><!-- doxytag: member="Gio::File::move" ref="dfb2d8bfed1cb7af50e5e5795ebea732" args="(const Glib::RefPtr< File > &destination, const SlotFileProgress &slot, FileCopyFlags flags=FILE_COPY_NONE)" -->
3708
<div class="memitem">
3709
<div class="memproto">
3710
<table class="memname">
3712
<td class="memname">bool Gio::File::move </td>
3714
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3715
<td class="paramname"> <em>destination</em>, </td>
3718
<td class="paramkey"></td>
3720
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#c5ff32ee99845479d138eee49d92e59c">SlotFileProgress</a>& </td>
3721
<td class="paramname"> <em>slot</em>, </td>
3724
<td class="paramkey"></td>
3726
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3727
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3732
<td></td><td></td><td></td>
3736
<div class="memdoc">
3742
<a class="anchor" name="ba1fab56c3a8bea0b7e4d7f7324c5320"></a><!-- doxytag: member="Gio::File::move" ref="ba1fab56c3a8bea0b7e4d7f7324c5320" args="(const Glib::RefPtr< File > &destination, FileCopyFlags flags=FILE_COPY_NONE)" -->
3743
<div class="memitem">
3744
<div class="memproto">
3745
<table class="memname">
3747
<td class="memname">bool Gio::File::move </td>
3749
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
3750
<td class="paramname"> <em>destination</em>, </td>
3753
<td class="paramkey"></td>
3755
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
3756
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
3761
<td></td><td></td><td></td>
3765
<div class="memdoc">
3771
<a class="anchor" name="bfa05e23e95e77cabac289ab4e294a58"></a><!-- doxytag: member="Gio::File::make_directory" ref="bfa05e23e95e77cabac289ab4e294a58" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
3772
<div class="memitem">
3773
<div class="memproto">
3774
<table class="memname">
3776
<td class="memname">bool Gio::File::make_directory </td>
3778
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3779
<td class="paramname"> <em>cancellable</em> </td>
3780
<td> ) </td>
3785
<div class="memdoc">
3788
Creates a directory.
3790
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
3791
<table border="0" cellspacing="2" cellpadding="0">
3792
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3795
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on successful creation, <code>false</code> otherwise. </dd></dl>
3799
<a class="anchor" name="a1e9aa5f58a76a8562fd00a13434f554"></a><!-- doxytag: member="Gio::File::make_directory" ref="a1e9aa5f58a76a8562fd00a13434f554" args="()" -->
3800
<div class="memitem">
3801
<div class="memproto">
3802
<table class="memname">
3804
<td class="memname">bool Gio::File::make_directory </td>
3806
<td class="paramname"> </td>
3807
<td> ) </td>
3812
<div class="memdoc">
3815
Creates a directory.
3817
Note that this will only create a child directory of the immediate parent directory of the path or URI given by the <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a>. To recursively create directories, see <a class="el" href="classGio_1_1File.html#874a487551d49ca62b31a3e5cf32fee6" title="Creates a directory and any parent directories that may not exist, similar to 'mkdir...">make_directory_with_parents()</a>. This function will fail if the parent directory does not exist, throwing an exception with IO_ERROR_NOT_FOUND. If the file system doesn't support creating directories, this function will fail, throwing an exception with IO_ERROR_NOT_SUPPORTED.<p>
3818
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on successful creation, <code>false</code> otherwise. </dd></dl>
3822
<a class="anchor" name="fb0b5b094339057b4b15952eb73e08d6"></a><!-- doxytag: member="Gio::File::make_directory_with_parents" ref="fb0b5b094339057b4b15952eb73e08d6" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
3823
<div class="memitem">
3824
<div class="memproto">
3825
<table class="memname">
3827
<td class="memname">bool Gio::File::make_directory_with_parents </td>
3829
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3830
<td class="paramname"> <em>cancellable</em> </td>
3831
<td> ) </td>
3836
<div class="memdoc">
3839
Creates a directory and any parent directories that may not exist similar to 'mkdir -p'.
3841
If the file system does not support creating directories, this function will fail, setting <em>error</em> to IO_ERROR_NOT_SUPPORTED.<p>
3842
For a local <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> the newly created directories will have the default (current) ownership and permissions of the current process.<p>
3843
If <em>cancellable</em> is not <code>0</code>, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error IO_ERROR_CANCELLED will be returned. <dl compact><dt><b>Parameters:</b></dt><dd>
3844
<table border="0" cellspacing="2" cellpadding="0">
3845
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object, <code>0</code> to ignore. </td></tr>
3848
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if all directories have been successfully created, <code>false</code> otherwise.</dd></dl>
3849
<dl compact><dt><b><a class="el" href="newin2p18s.html#_newin2p18s000017">Since glibmm 2.18:</a></b></dt><dd></dd></dl>
3853
<a class="anchor" name="874a487551d49ca62b31a3e5cf32fee6"></a><!-- doxytag: member="Gio::File::make_directory_with_parents" ref="874a487551d49ca62b31a3e5cf32fee6" args="()" -->
3854
<div class="memitem">
3855
<div class="memproto">
3856
<table class="memname">
3858
<td class="memname">bool Gio::File::make_directory_with_parents </td>
3860
<td class="paramname"> </td>
3861
<td> ) </td>
3866
<div class="memdoc">
3869
Creates a directory and any parent directories that may not exist, similar to 'mkdir -p'.
3871
If the file system does not support creating directories, this function will fail, throwing an exception with IO_ERROR_NOT_SUPPORTED.<p>
3872
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on successful creation, <code>false</code> otherwise.</dd></dl>
3873
<dl compact><dt><b><a class="el" href="newin2p18s.html#_newin2p18s000018">Since glibmm 2.18:</a></b></dt><dd></dd></dl>
3877
<a class="anchor" name="2709318e1f24dfd0cd498d28f5e1b8fe"></a><!-- doxytag: member="Gio::File::make_symbolic_link" ref="2709318e1f24dfd0cd498d28f5e1b8fe" args="(const std::string &symlink_value, const Glib::RefPtr< Cancellable > &cancellable)" -->
3878
<div class="memitem">
3879
<div class="memproto">
3880
<table class="memname">
3882
<td class="memname">bool Gio::File::make_symbolic_link </td>
3884
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
3885
<td class="paramname"> <em>symlink_value</em>, </td>
3888
<td class="paramkey"></td>
3890
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3891
<td class="paramname"> <em>cancellable</em></td><td> </td>
3896
<td></td><td></td><td></td>
3900
<div class="memdoc">
3903
Creates a symbolic link.
3905
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
3906
<table border="0" cellspacing="2" cellpadding="0">
3907
<tr><td valign="top"></td><td valign="top"><em>symlink_value</em> </td><td>A string with the value of the new symlink. </td></tr>
3908
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
3911
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on the creation of a new symlink, <code>false</code> otherwise. </dd></dl>
3915
<a class="anchor" name="8a9a3d060c2675ff9ac1c758f0b2c024"></a><!-- doxytag: member="Gio::File::make_symbolic_link" ref="8a9a3d060c2675ff9ac1c758f0b2c024" args="(const std::string &symlink_value)" -->
3916
<div class="memitem">
3917
<div class="memproto">
3918
<table class="memname">
3920
<td class="memname">bool Gio::File::make_symbolic_link </td>
3922
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
3923
<td class="paramname"> <em>symlink_value</em> </td>
3924
<td> ) </td>
3929
<div class="memdoc">
3932
Creates a symbolic link.
3934
<dl compact><dt><b>Parameters:</b></dt><dd>
3935
<table border="0" cellspacing="2" cellpadding="0">
3936
<tr><td valign="top"></td><td valign="top"><em>symlink_value</em> </td><td>A string with the value of the new symlink. </td></tr>
3939
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on the creation of a new symlink, <code>false</code> otherwise. </dd></dl>
3943
<a class="anchor" name="4a543339b58cff6a7e5ddd840df0e69e"></a><!-- doxytag: member="Gio::File::query_settable_attributes" ref="4a543339b58cff6a7e5ddd840df0e69e" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
3944
<div class="memitem">
3945
<div class="memproto">
3946
<table class="memname">
3948
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileAttributeInfoList.html">FileAttributeInfoList</a>> Gio::File::query_settable_attributes </td>
3950
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
3951
<td class="paramname"> <em>cancellable</em> </td>
3952
<td> ) </td>
3957
<div class="memdoc">
3960
Obtain the list of settable attributes for the file.
3962
Returns: a <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the settable attributes. <dl compact><dt><b>Parameters:</b></dt><dd>
3963
<table border="0" cellspacing="2" cellpadding="0">
3964
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object, <code>0</code> to ignore. </td></tr>
3967
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the settable attributes. When you are done with it, release it with g_file_attribute_info_list_unref(). </dd></dl>
3971
<a class="anchor" name="1ae03d0652bcfbad2f47409b8f815bc4"></a><!-- doxytag: member="Gio::File::query_settable_attributes" ref="1ae03d0652bcfbad2f47409b8f815bc4" args="()" -->
3972
<div class="memitem">
3973
<div class="memproto">
3974
<table class="memname">
3976
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileAttributeInfoList.html">FileAttributeInfoList</a>> Gio::File::query_settable_attributes </td>
3978
<td class="paramname"> </td>
3979
<td> ) </td>
3984
<div class="memdoc">
3987
Obtain the list of settable attributes for the file.
3989
Returns: a <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the settable attributes. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the settable attributes. </dd></dl>
3993
<a class="anchor" name="f5c7463b92e2887597486e7b195ca12f"></a><!-- doxytag: member="Gio::File::query_writable_namespaces" ref="f5c7463b92e2887597486e7b195ca12f" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
3994
<div class="memitem">
3995
<div class="memproto">
3996
<table class="memname">
3998
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileAttributeInfoList.html">FileAttributeInfoList</a>> Gio::File::query_writable_namespaces </td>
4000
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4001
<td class="paramname"> <em>cancellable</em> </td>
4002
<td> ) </td>
4007
<div class="memdoc">
4010
Obtain the list of attribute namespaces where new attributes can be created by a user.
4012
An example of this is extended attributes (in the "xattr" namespace).<p>
4013
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4014
<table border="0" cellspacing="2" cellpadding="0">
4015
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4018
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the writable namespaces. When you are done with it, release it with g_file_attribute_info_list_unref(). </dd></dl>
4022
<a class="anchor" name="a0278acd7d09ed292359004defb742b0"></a><!-- doxytag: member="Gio::File::query_writable_namespaces" ref="a0278acd7d09ed292359004defb742b0" args="()" -->
4023
<div class="memitem">
4024
<div class="memproto">
4025
<table class="memname">
4027
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileAttributeInfoList.html">FileAttributeInfoList</a>> Gio::File::query_writable_namespaces </td>
4029
<td class="paramname"> </td>
4030
<td> ) </td>
4035
<div class="memdoc">
4038
Obtain the list of attribute namespaces where new attributes can be created by a user.
4040
An example of this is extended attributes (in the "xattr" namespace).<p>
4041
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileAttributeInfoList.html" title="Key-Value paired file attributes.">FileAttributeInfoList</a> describing the writable namespaces. </dd></dl>
4045
<a class="anchor" name="69d9e40a85b96809abc5189b34e8d9b7"></a><!-- doxytag: member="Gio::File::set_attributes_from_info" ref="69d9e40a85b96809abc5189b34e8d9b7" args="(const Glib::RefPtr< FileInfo > &info, const Glib::RefPtr< Cancellable > &cancellable, FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE)" -->
4046
<div class="memitem">
4047
<div class="memproto">
4048
<table class="memname">
4050
<td class="memname">bool Gio::File::set_attributes_from_info </td>
4052
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
4053
<td class="paramname"> <em>info</em>, </td>
4056
<td class="paramkey"></td>
4058
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4059
<td class="paramname"> <em>cancellable</em>, </td>
4062
<td class="paramkey"></td>
4064
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4065
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
4070
<td></td><td></td><td></td>
4074
<div class="memdoc">
4077
Tries to set all attributes in the <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> on the target values, not stopping on the first error.
4079
If there is any error during this operation then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown. <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Error</a> on particular fields are flagged by setting the "status" field in the attribute value to FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can also detect further errors.<p>
4080
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
4081
<dl compact><dt><b>Parameters:</b></dt><dd>
4082
<table border="0" cellspacing="2" cellpadding="0">
4083
<tr><td valign="top"></td><td valign="top"><em>info</em> </td><td>A <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a>. </td></tr>
4084
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
4085
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
4088
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if there was any error, <code>false</code> otherwise. </dd></dl>
4092
<a class="anchor" name="e9f6975ffef28f0d7145601a99de0903"></a><!-- doxytag: member="Gio::File::set_attributes_from_info" ref="e9f6975ffef28f0d7145601a99de0903" args="(const Glib::RefPtr< FileInfo > &info, FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE)" -->
4093
<div class="memitem">
4094
<div class="memproto">
4095
<table class="memname">
4097
<td class="memname">bool Gio::File::set_attributes_from_info </td>
4099
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
4100
<td class="paramname"> <em>info</em>, </td>
4103
<td class="paramkey"></td>
4105
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4106
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code></td><td> </td>
4111
<td></td><td></td><td></td>
4115
<div class="memdoc">
4118
Tries to set all attributes in the <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a> on the target values, not stopping on the first error.
4120
If there is any error during this operation then a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown. <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Error</a> on particular fields are flagged by setting the "status" field in the attribute value to FILE_ATTRIBUTE_STATUS_ERROR_SETTING, which means you can also detect further errors.<p>
4121
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
4122
<dl compact><dt><b>Parameters:</b></dt><dd>
4123
<table border="0" cellspacing="2" cellpadding="0">
4124
<tr><td valign="top"></td><td valign="top"><em>info</em> </td><td>A <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a>. </td></tr>
4125
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
4128
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if there was any error, <code>false</code> otherwise. </dd></dl>
4132
<a class="anchor" name="14165fba9bf7d91448c3207407ae50c2"></a><!-- doxytag: member="Gio::File::set_attributes_async" ref="14165fba9bf7d91448c3207407ae50c2" args="(const Glib::RefPtr< FileInfo > &info, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
4133
<div class="memitem">
4134
<div class="memproto">
4135
<table class="memname">
4137
<td class="memname">void Gio::File::set_attributes_async </td>
4139
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
4140
<td class="paramname"> <em>info</em>, </td>
4143
<td class="paramkey"></td>
4145
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4146
<td class="paramname"> <em>slot</em>, </td>
4149
<td class="paramkey"></td>
4151
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4152
<td class="paramname"> <em>cancellable</em>, </td>
4155
<td class="paramkey"></td>
4157
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4158
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code>, </td>
4161
<td class="paramkey"></td>
4163
<td class="paramtype">int </td>
4164
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
4169
<td></td><td></td><td></td>
4173
<div class="memdoc">
4176
Asynchronously sets the attributes of file with info.
4178
For more details, see <a class="el" href="classGio_1_1File.html#69d9e40a85b96809abc5189b34e8d9b7" title="Tries to set all attributes in the FileInfo on the target values, not stopping on...">set_attributes_from_info()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#efd45aed7b975b6e204e67927de2817a">set_attributes_finish()</a> to get the result of the operation.<p>
4179
<dl compact><dt><b>Parameters:</b></dt><dd>
4180
<table border="0" cellspacing="2" cellpadding="0">
4181
<tr><td valign="top"></td><td valign="top"><em>info</em> </td><td>A <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a>. </td></tr>
4182
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4183
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
4184
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
4185
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
4191
<a class="anchor" name="61317a1980318537aa8ada7bb8cc2390"></a><!-- doxytag: member="Gio::File::set_attributes_async" ref="61317a1980318537aa8ada7bb8cc2390" args="(const Glib::RefPtr< FileInfo > &info, const SlotAsyncReady &slot, FileQueryInfoFlags flags=FILE_QUERY_INFO_NONE, int io_priority=Glib::PRIORITY_DEFAULT)" -->
4192
<div class="memitem">
4193
<div class="memproto">
4194
<table class="memname">
4196
<td class="memname">void Gio::File::set_attributes_async </td>
4198
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
4199
<td class="paramname"> <em>info</em>, </td>
4202
<td class="paramkey"></td>
4204
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4205
<td class="paramname"> <em>slot</em>, </td>
4208
<td class="paramkey"></td>
4210
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4211
<td class="paramname"> <em>flags</em> = <code>FILE_QUERY_INFO_NONE</code>, </td>
4214
<td class="paramkey"></td>
4216
<td class="paramtype">int </td>
4217
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
4222
<td></td><td></td><td></td>
4226
<div class="memdoc">
4229
Asynchronously sets the attributes of file with info.
4231
For more details, see <a class="el" href="classGio_1_1File.html#69d9e40a85b96809abc5189b34e8d9b7" title="Tries to set all attributes in the FileInfo on the target values, not stopping on...">set_attributes_from_info()</a> which is the synchronous version of this call. When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#efd45aed7b975b6e204e67927de2817a">set_attributes_finish()</a> to get the result of the operation.<p>
4232
<dl compact><dt><b>Parameters:</b></dt><dd>
4233
<table border="0" cellspacing="2" cellpadding="0">
4234
<tr><td valign="top"></td><td valign="top"><em>info</em> </td><td>A <a class="el" href="classGio_1_1FileInfo.html" title="FileInfo implements methods for getting information that all files should contain...">FileInfo</a>. </td></tr>
4235
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4236
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileQueryInfoFlags. </td></tr>
4237
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>The I/O priority of the request. </td></tr>
4243
<a class="anchor" name="efd45aed7b975b6e204e67927de2817a"></a><!-- doxytag: member="Gio::File::set_attributes_finish" ref="efd45aed7b975b6e204e67927de2817a" args="(const Glib::RefPtr< AsyncResult > &result, const Glib::RefPtr< FileInfo > &info)" -->
4244
<div class="memitem">
4245
<div class="memproto">
4246
<table class="memname">
4248
<td class="memname">bool Gio::File::set_attributes_finish </td>
4250
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
4251
<td class="paramname"> <em>result</em>, </td>
4254
<td class="paramkey"></td>
4256
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileInfo.html">FileInfo</a>>& </td>
4257
<td class="paramname"> <em>info</em></td><td> </td>
4262
<td></td><td></td><td></td>
4266
<div class="memdoc">
4272
<a class="anchor" name="5ce5f43fd5e2836ac1989a54d3233ff6"></a><!-- doxytag: member="Gio::File::set_attribute_string" ref="5ce5f43fd5e2836ac1989a54d3233ff6" args="(const std::string &attribute, const std::string &value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
4273
<div class="memitem">
4274
<div class="memproto">
4275
<table class="memname">
4277
<td class="memname">bool Gio::File::set_attribute_string </td>
4279
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4280
<td class="paramname"> <em>attribute</em>, </td>
4283
<td class="paramkey"></td>
4285
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4286
<td class="paramname"> <em>value</em>, </td>
4289
<td class="paramkey"></td>
4291
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4292
<td class="paramname"> <em>flags</em>, </td>
4295
<td class="paramkey"></td>
4297
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4298
<td class="paramname"> <em>cancellable</em></td><td> </td>
4303
<td></td><td></td><td></td>
4307
<div class="memdoc">
4310
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_STRING to <em>value</em>.
4312
If <em>attribute</em> is of a different type, this operation will fail.<p>
4313
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4314
<table border="0" cellspacing="2" cellpadding="0">
4315
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4316
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string containing the attribute's value. </td></tr>
4317
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>FileQueryInfoFlags. </td></tr>
4318
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4321
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set, <code>false</code> otherwise. </dd></dl>
4325
<a class="anchor" name="75fa7e1a44e97a910d232f2b4ab4bfdd"></a><!-- doxytag: member="Gio::File::set_attribute_string" ref="75fa7e1a44e97a910d232f2b4ab4bfdd" args="(const std::string &attribute, const std::string &value, FileQueryInfoFlags flags)" -->
4326
<div class="memitem">
4327
<div class="memproto">
4328
<table class="memname">
4330
<td class="memname">bool Gio::File::set_attribute_string </td>
4332
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4333
<td class="paramname"> <em>attribute</em>, </td>
4336
<td class="paramkey"></td>
4338
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4339
<td class="paramname"> <em>value</em>, </td>
4342
<td class="paramkey"></td>
4344
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4345
<td class="paramname"> <em>flags</em></td><td> </td>
4350
<td></td><td></td><td></td>
4354
<div class="memdoc">
4357
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_STRING to <em>value</em>.
4359
If <em>attribute</em> is of a different type, this operation will fail.<p>
4360
<dl compact><dt><b>Parameters:</b></dt><dd>
4361
<table border="0" cellspacing="2" cellpadding="0">
4362
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4363
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string containing the attribute's value. </td></tr>
4364
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>FileQueryInfoFlags. </td></tr>
4367
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set, <code>false</code> otherwise. </dd></dl>
4371
<a class="anchor" name="4f4373b8694c346a6908195f1f2644f3"></a><!-- doxytag: member="Gio::File::set_attribute_byte_string" ref="4f4373b8694c346a6908195f1f2644f3" args="(const std::string &attribute, const std::string &value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
4372
<div class="memitem">
4373
<div class="memproto">
4374
<table class="memname">
4376
<td class="memname">bool Gio::File::set_attribute_byte_string </td>
4378
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4379
<td class="paramname"> <em>attribute</em>, </td>
4382
<td class="paramkey"></td>
4384
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4385
<td class="paramname"> <em>value</em>, </td>
4388
<td class="paramkey"></td>
4390
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4391
<td class="paramname"> <em>flags</em>, </td>
4394
<td class="paramkey"></td>
4396
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4397
<td class="paramname"> <em>cancellable</em></td><td> </td>
4402
<td></td><td></td><td></td>
4406
<div class="memdoc">
4409
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_BYTE_STRING to <em>value</em>.
4411
If <em>attribute</em> is of a different type, this operation will fail, returning <code>false</code>.<p>
4412
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4413
<table border="0" cellspacing="2" cellpadding="0">
4414
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4415
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string containing the attribute's new value. </td></tr>
4416
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4417
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4420
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
4424
<a class="anchor" name="09f574259052186e1b516bdcbe696710"></a><!-- doxytag: member="Gio::File::set_attribute_byte_string" ref="09f574259052186e1b516bdcbe696710" args="(const std::string &attribute, const std::string &value, FileQueryInfoFlags flags)" -->
4425
<div class="memitem">
4426
<div class="memproto">
4427
<table class="memname">
4429
<td class="memname">bool Gio::File::set_attribute_byte_string </td>
4431
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4432
<td class="paramname"> <em>attribute</em>, </td>
4435
<td class="paramkey"></td>
4437
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4438
<td class="paramname"> <em>value</em>, </td>
4441
<td class="paramkey"></td>
4443
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4444
<td class="paramname"> <em>flags</em></td><td> </td>
4449
<td></td><td></td><td></td>
4453
<div class="memdoc">
4456
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_BYTE_STRING to <em>value</em>.
4458
If <em>attribute</em> is of a different type, this operation will fail, returning <code>false</code>.<p>
4459
<dl compact><dt><b>Parameters:</b></dt><dd>
4460
<table border="0" cellspacing="2" cellpadding="0">
4461
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4462
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A string containing the attribute's new value. </td></tr>
4463
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4466
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
4470
<a class="anchor" name="e53b0f4d2214e050a290c8e35cac0f27"></a><!-- doxytag: member="Gio::File::set_attribute_uint32" ref="e53b0f4d2214e050a290c8e35cac0f27" args="(const std::string &attribute, guint32 value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
4471
<div class="memitem">
4472
<div class="memproto">
4473
<table class="memname">
4475
<td class="memname">bool Gio::File::set_attribute_uint32 </td>
4477
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4478
<td class="paramname"> <em>attribute</em>, </td>
4481
<td class="paramkey"></td>
4483
<td class="paramtype">guint32 </td>
4484
<td class="paramname"> <em>value</em>, </td>
4487
<td class="paramkey"></td>
4489
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4490
<td class="paramname"> <em>flags</em>, </td>
4493
<td class="paramkey"></td>
4495
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4496
<td class="paramname"> <em>cancellable</em></td><td> </td>
4501
<td></td><td></td><td></td>
4505
<div class="memdoc">
4508
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_UINT32 to <em>value</em>.
4510
If <em>attribute</em> is of a different type, this operation will fail.<p>
4511
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4512
<table border="0" cellspacing="2" cellpadding="0">
4513
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4514
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint32 containing the attribute's new value. </td></tr>
4515
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4516
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4519
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
4523
<a class="anchor" name="7f769f140143f2e96a7587a10b6792a9"></a><!-- doxytag: member="Gio::File::set_attribute_uint32" ref="7f769f140143f2e96a7587a10b6792a9" args="(const std::string &attribute, guint32 value, FileQueryInfoFlags flags)" -->
4524
<div class="memitem">
4525
<div class="memproto">
4526
<table class="memname">
4528
<td class="memname">bool Gio::File::set_attribute_uint32 </td>
4530
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4531
<td class="paramname"> <em>attribute</em>, </td>
4534
<td class="paramkey"></td>
4536
<td class="paramtype">guint32 </td>
4537
<td class="paramname"> <em>value</em>, </td>
4540
<td class="paramkey"></td>
4542
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4543
<td class="paramname"> <em>flags</em></td><td> </td>
4548
<td></td><td></td><td></td>
4552
<div class="memdoc">
4555
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_UINT32 to <em>value</em>.
4557
If <em>attribute</em> is of a different type, this operation will fail.<p>
4558
<dl compact><dt><b>Parameters:</b></dt><dd>
4559
<table border="0" cellspacing="2" cellpadding="0">
4560
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4561
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint32 containing the attribute's new value. </td></tr>
4562
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4565
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
4569
<a class="anchor" name="b0290ecba7b06ccf7736e2292708667e"></a><!-- doxytag: member="Gio::File::set_attribute_int32" ref="b0290ecba7b06ccf7736e2292708667e" args="(const std::string &attribute, gint32 value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
4570
<div class="memitem">
4571
<div class="memproto">
4572
<table class="memname">
4574
<td class="memname">bool Gio::File::set_attribute_int32 </td>
4576
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4577
<td class="paramname"> <em>attribute</em>, </td>
4580
<td class="paramkey"></td>
4582
<td class="paramtype">gint32 </td>
4583
<td class="paramname"> <em>value</em>, </td>
4586
<td class="paramkey"></td>
4588
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4589
<td class="paramname"> <em>flags</em>, </td>
4592
<td class="paramkey"></td>
4594
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4595
<td class="paramname"> <em>cancellable</em></td><td> </td>
4600
<td></td><td></td><td></td>
4604
<div class="memdoc">
4607
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_INT32 to <em>value</em>.
4609
If <em>attribute</em> is of a different type, this operation will fail.<p>
4610
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4611
<table border="0" cellspacing="2" cellpadding="0">
4612
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4613
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A gint32 containing the attribute's new value. </td></tr>
4614
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4615
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4618
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
4622
<a class="anchor" name="4a707084a3c0a963548a21d17d0ec0b5"></a><!-- doxytag: member="Gio::File::set_attribute_int32" ref="4a707084a3c0a963548a21d17d0ec0b5" args="(const std::string &attribute, gint32 value, FileQueryInfoFlags flags)" -->
4623
<div class="memitem">
4624
<div class="memproto">
4625
<table class="memname">
4627
<td class="memname">bool Gio::File::set_attribute_int32 </td>
4629
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4630
<td class="paramname"> <em>attribute</em>, </td>
4633
<td class="paramkey"></td>
4635
<td class="paramtype">gint32 </td>
4636
<td class="paramname"> <em>value</em>, </td>
4639
<td class="paramkey"></td>
4641
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4642
<td class="paramname"> <em>flags</em></td><td> </td>
4647
<td></td><td></td><td></td>
4651
<div class="memdoc">
4654
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_INT32 to <em>value</em>.
4656
If <em>attribute</em> is of a different type, this operation will fail.<p>
4657
<dl compact><dt><b>Parameters:</b></dt><dd>
4658
<table border="0" cellspacing="2" cellpadding="0">
4659
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4660
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A gint32 containing the attribute's new value. </td></tr>
4661
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4664
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
4668
<a class="anchor" name="48638081fd7af772a39af59a558b17f7"></a><!-- doxytag: member="Gio::File::set_attribute_uint64" ref="48638081fd7af772a39af59a558b17f7" args="(const std::string &attribute, guint64 value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
4669
<div class="memitem">
4670
<div class="memproto">
4671
<table class="memname">
4673
<td class="memname">bool Gio::File::set_attribute_uint64 </td>
4675
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4676
<td class="paramname"> <em>attribute</em>, </td>
4679
<td class="paramkey"></td>
4681
<td class="paramtype">guint64 </td>
4682
<td class="paramname"> <em>value</em>, </td>
4685
<td class="paramkey"></td>
4687
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4688
<td class="paramname"> <em>flags</em>, </td>
4691
<td class="paramkey"></td>
4693
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4694
<td class="paramname"> <em>cancellable</em></td><td> </td>
4699
<td></td><td></td><td></td>
4703
<div class="memdoc">
4706
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_UINT64 to <em>value</em>.
4708
If <em>attribute</em> is of a different type, this operation will fail.<p>
4709
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4710
<table border="0" cellspacing="2" cellpadding="0">
4711
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4712
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint64 containing the attribute's new value. </td></tr>
4713
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4714
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4717
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
4721
<a class="anchor" name="4aa77b3580df88cfd3d7231af78155c7"></a><!-- doxytag: member="Gio::File::set_attribute_uint64" ref="4aa77b3580df88cfd3d7231af78155c7" args="(const std::string &attribute, guint64 value, FileQueryInfoFlags flags)" -->
4722
<div class="memitem">
4723
<div class="memproto">
4724
<table class="memname">
4726
<td class="memname">bool Gio::File::set_attribute_uint64 </td>
4728
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4729
<td class="paramname"> <em>attribute</em>, </td>
4732
<td class="paramkey"></td>
4734
<td class="paramtype">guint64 </td>
4735
<td class="paramname"> <em>value</em>, </td>
4738
<td class="paramkey"></td>
4740
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4741
<td class="paramname"> <em>flags</em></td><td> </td>
4746
<td></td><td></td><td></td>
4750
<div class="memdoc">
4753
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_UINT64 to <em>value</em>.
4755
If <em>attribute</em> is of a different type, this operation will fail.<p>
4756
<dl compact><dt><b>Parameters:</b></dt><dd>
4757
<table border="0" cellspacing="2" cellpadding="0">
4758
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4759
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint64 containing the attribute's new value. </td></tr>
4760
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4763
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set to <em>value</em> in the <em>file</em>, <code>false</code> otherwise. </dd></dl>
4767
<a class="anchor" name="111d73a2d003e5a5a4c5f86c7c3d2fb7"></a><!-- doxytag: member="Gio::File::set_attribute_int64" ref="111d73a2d003e5a5a4c5f86c7c3d2fb7" args="(const std::string &attribute, gint64 value, FileQueryInfoFlags flags, const Glib::RefPtr< Cancellable > &cancellable)" -->
4768
<div class="memitem">
4769
<div class="memproto">
4770
<table class="memname">
4772
<td class="memname">bool Gio::File::set_attribute_int64 </td>
4774
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4775
<td class="paramname"> <em>attribute</em>, </td>
4778
<td class="paramkey"></td>
4780
<td class="paramtype">gint64 </td>
4781
<td class="paramname"> <em>value</em>, </td>
4784
<td class="paramkey"></td>
4786
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4787
<td class="paramname"> <em>flags</em>, </td>
4790
<td class="paramkey"></td>
4792
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4793
<td class="paramname"> <em>cancellable</em></td><td> </td>
4798
<td></td><td></td><td></td>
4802
<div class="memdoc">
4805
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_INT64 to <em>value</em>.
4807
If <em>attribute</em> is of a different type, this operation will fail.<p>
4808
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
4809
<table border="0" cellspacing="2" cellpadding="0">
4810
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4811
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint64 containing the attribute's new value. </td></tr>
4812
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4813
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4816
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set, <code>false</code> otherwise. </dd></dl>
4820
<a class="anchor" name="4477b0063110951b26c855696ec34802"></a><!-- doxytag: member="Gio::File::set_attribute_int64" ref="4477b0063110951b26c855696ec34802" args="(const std::string &attribute, gint64 value, FileQueryInfoFlags flags)" -->
4821
<div class="memitem">
4822
<div class="memproto">
4823
<table class="memname">
4825
<td class="memname">bool Gio::File::set_attribute_int64 </td>
4827
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
4828
<td class="paramname"> <em>attribute</em>, </td>
4831
<td class="paramkey"></td>
4833
<td class="paramtype">gint64 </td>
4834
<td class="paramname"> <em>value</em>, </td>
4837
<td class="paramkey"></td>
4839
<td class="paramtype"><a class="el" href="group__giommEnums.html#g2cb7bdea61353f0999607785abd032c0">FileQueryInfoFlags</a> </td>
4840
<td class="paramname"> <em>flags</em></td><td> </td>
4845
<td></td><td></td><td></td>
4849
<div class="memdoc">
4852
Sets <em>attribute</em> of type FILE_ATTRIBUTE_TYPE_INT64 to <em>value</em>.
4854
If <em>attribute</em> is of a different type, this operation will fail.<p>
4855
<dl compact><dt><b>Parameters:</b></dt><dd>
4856
<table border="0" cellspacing="2" cellpadding="0">
4857
<tr><td valign="top"></td><td valign="top"><em>attribute</em> </td><td>A string containing the attribute's name. </td></tr>
4858
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>A guint64 containing the attribute's new value. </td></tr>
4859
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A FileQueryInfoFlags. </td></tr>
4862
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>attribute</em> was successfully set, <code>false</code> otherwise. </dd></dl>
4866
<a class="anchor" name="144aa2de6b696da90a6baffbe959d732"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume" ref="144aa2de6b696da90a6baffbe959d732" args="(const Glib::RefPtr< MountOperation > &mount_operation, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
4867
<div class="memitem">
4868
<div class="memproto">
4869
<table class="memname">
4871
<td class="memname">void Gio::File::mount_enclosing_volume </td>
4873
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MountOperation.html">MountOperation</a>>& </td>
4874
<td class="paramname"> <em>mount_operation</em>, </td>
4877
<td class="paramkey"></td>
4879
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4880
<td class="paramname"> <em>slot</em>, </td>
4883
<td class="paramkey"></td>
4885
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
4886
<td class="paramname"> <em>cancellable</em>, </td>
4889
<td class="paramkey"></td>
4891
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
4892
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
4897
<td></td><td></td><td></td>
4901
<div class="memdoc">
4904
Starts a <em>mount_operation</em>, mounting the volume that contains the file.
4906
When this operation has completed, <em>slot</em> will be called with, and the operation can be finalized with <a class="el" href="classGio_1_1File.html#efd44b1b3467bcc474b345ff98b4aa6d" title="Finishes a mount operation started by g_file_mount_enclosing_volume().">mount_enclosing_volume_finish()</a>.<p>
4907
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
4908
<dl compact><dt><b>Parameters:</b></dt><dd>
4909
<table border="0" cellspacing="2" cellpadding="0">
4910
<tr><td valign="top"></td><td valign="top"><em>mount_operation</em> </td><td>A <a class="el" href="classGio_1_1MountOperation.html" title="Authentication methods for mountable locations.">MountOperation</a>. </td></tr>
4911
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4912
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
4918
<a class="anchor" name="70fd22116d9c8682433c4bb8cbd764c1"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume" ref="70fd22116d9c8682433c4bb8cbd764c1" args="(const Glib::RefPtr< MountOperation > &mount_operation, const SlotAsyncReady &slot, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
4919
<div class="memitem">
4920
<div class="memproto">
4921
<table class="memname">
4923
<td class="memname">void Gio::File::mount_enclosing_volume </td>
4925
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MountOperation.html">MountOperation</a>>& </td>
4926
<td class="paramname"> <em>mount_operation</em>, </td>
4929
<td class="paramkey"></td>
4931
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4932
<td class="paramname"> <em>slot</em>, </td>
4935
<td class="paramkey"></td>
4937
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
4938
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
4943
<td></td><td></td><td></td>
4947
<div class="memdoc">
4950
Starts a <em>mount_operation</em>, mounting the volume that contains the file.
4952
When this operation has completed, <em>slot</em> will be called with, and the operation can be finalized with <a class="el" href="classGio_1_1File.html#efd44b1b3467bcc474b345ff98b4aa6d" title="Finishes a mount operation started by g_file_mount_enclosing_volume().">mount_enclosing_volume_finish()</a>.<p>
4953
<dl compact><dt><b>Parameters:</b></dt><dd>
4954
<table border="0" cellspacing="2" cellpadding="0">
4955
<tr><td valign="top"></td><td valign="top"><em>mount_operation</em> </td><td>A <a class="el" href="classGio_1_1MountOperation.html" title="Authentication methods for mountable locations.">MountOperation</a>. </td></tr>
4956
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4962
<a class="anchor" name="2172cdcdb683630b719c521bf00b1eb4"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume" ref="2172cdcdb683630b719c521bf00b1eb4" args="(const SlotAsyncReady &slot, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
4963
<div class="memitem">
4964
<div class="memproto">
4965
<table class="memname">
4967
<td class="memname">void Gio::File::mount_enclosing_volume </td>
4969
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
4970
<td class="paramname"> <em>slot</em>, </td>
4973
<td class="paramkey"></td>
4975
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
4976
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
4981
<td></td><td></td><td></td>
4985
<div class="memdoc">
4988
Starts a <em>mount_operation</em>, mounting the volume that contains the file.
4990
When this operation has completed, <em>slot</em> will be called with, and the operation can be finalized with <a class="el" href="classGio_1_1File.html#efd44b1b3467bcc474b345ff98b4aa6d" title="Finishes a mount operation started by g_file_mount_enclosing_volume().">mount_enclosing_volume_finish()</a>.<p>
4991
<dl compact><dt><b>Parameters:</b></dt><dd>
4992
<table border="0" cellspacing="2" cellpadding="0">
4993
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
4999
<a class="anchor" name="20f8f18876102a5efaa0536bfa71d71c"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume" ref="20f8f18876102a5efaa0536bfa71d71c" args="(MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
5000
<div class="memitem">
5001
<div class="memproto">
5002
<table class="memname">
5004
<td class="memname">void Gio::File::mount_enclosing_volume </td>
5006
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
5007
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code> </td>
5008
<td> ) </td>
5013
<div class="memdoc">
5016
Starts a <em>mount_operation</em>, mounting the volume that contains the file.
5021
<a class="anchor" name="efd44b1b3467bcc474b345ff98b4aa6d"></a><!-- doxytag: member="Gio::File::mount_enclosing_volume_finish" ref="efd44b1b3467bcc474b345ff98b4aa6d" args="(const Glib::RefPtr< AsyncResult > &result)" -->
5022
<div class="memitem">
5023
<div class="memproto">
5024
<table class="memname">
5026
<td class="memname">bool Gio::File::mount_enclosing_volume_finish </td>
5028
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
5029
<td class="paramname"> <em>result</em> </td>
5030
<td> ) </td>
5035
<div class="memdoc">
5038
Finishes a mount operation started by g_file_mount_enclosing_volume().
5040
<dl compact><dt><b>Parameters:</b></dt><dd>
5041
<table border="0" cellspacing="2" cellpadding="0">
5042
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
5045
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if successful. If an error has occurred, this function will return <code>false</code> and set <em>error</em> appropriately if present. </dd></dl>
5049
<a class="anchor" name="40c88a403f5d01d722b5900545b6a4fe"></a><!-- doxytag: member="Gio::File::mount_mountable" ref="40c88a403f5d01d722b5900545b6a4fe" args="(const Glib::RefPtr< MountOperation > &mount_operation, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
5050
<div class="memitem">
5051
<div class="memproto">
5052
<table class="memname">
5054
<td class="memname">void Gio::File::mount_mountable </td>
5056
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MountOperation.html">MountOperation</a>>& </td>
5057
<td class="paramname"> <em>mount_operation</em>, </td>
5060
<td class="paramkey"></td>
5062
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5063
<td class="paramname"> <em>slot</em>, </td>
5066
<td class="paramkey"></td>
5068
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5069
<td class="paramname"> <em>cancellable</em>, </td>
5072
<td class="paramkey"></td>
5074
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
5075
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
5080
<td></td><td></td><td></td>
5084
<div class="memdoc">
5087
Mounts a file of type FILE_TYPE_MOUNTABLE.
5089
Using <em>mount_operation</em>, you can request callbacks when, for instance, passwords are needed during authentication.<p>
5090
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5091
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#e15d36a7969c55122b9f85a1690a46e8" title="Finishes a mount operation.">mount_mountable_finish()</a> to get the result of the operation.<p>
5092
<dl compact><dt><b>Parameters:</b></dt><dd>
5093
<table border="0" cellspacing="2" cellpadding="0">
5094
<tr><td valign="top"></td><td valign="top"><em>mount_operation</em> </td><td>A <a class="el" href="classGio_1_1MountOperation.html" title="Authentication methods for mountable locations.">MountOperation</a>. </td></tr>
5095
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
5096
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
5102
<a class="anchor" name="c3c29682ef5a50de73dc2c3c3333301c"></a><!-- doxytag: member="Gio::File::mount_mountable" ref="c3c29682ef5a50de73dc2c3c3333301c" args="(const Glib::RefPtr< MountOperation > &mount_operation, const SlotAsyncReady &slot, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
5103
<div class="memitem">
5104
<div class="memproto">
5105
<table class="memname">
5107
<td class="memname">void Gio::File::mount_mountable </td>
5109
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1MountOperation.html">MountOperation</a>>& </td>
5110
<td class="paramname"> <em>mount_operation</em>, </td>
5113
<td class="paramkey"></td>
5115
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5116
<td class="paramname"> <em>slot</em>, </td>
5119
<td class="paramkey"></td>
5121
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
5122
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
5127
<td></td><td></td><td></td>
5131
<div class="memdoc">
5134
Mounts a file of type FILE_TYPE_MOUNTABLE.
5136
Using <em>mount_operation</em>, you can request callbacks when, for instance, passwords are needed during authentication.<p>
5137
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#e15d36a7969c55122b9f85a1690a46e8" title="Finishes a mount operation.">mount_mountable_finish()</a> to get the result of the operation.<p>
5138
<dl compact><dt><b>Parameters:</b></dt><dd>
5139
<table border="0" cellspacing="2" cellpadding="0">
5140
<tr><td valign="top"></td><td valign="top"><em>mount_operation</em> </td><td>A <a class="el" href="classGio_1_1MountOperation.html" title="Authentication methods for mountable locations.">MountOperation</a>. </td></tr>
5141
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
5147
<a class="anchor" name="049e06c3d95b49ad4bff1837ef6d8677"></a><!-- doxytag: member="Gio::File::mount_mountable" ref="049e06c3d95b49ad4bff1837ef6d8677" args="(const SlotAsyncReady &slot, MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
5148
<div class="memitem">
5149
<div class="memproto">
5150
<table class="memname">
5152
<td class="memname">void Gio::File::mount_mountable </td>
5154
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5155
<td class="paramname"> <em>slot</em>, </td>
5158
<td class="paramkey"></td>
5160
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
5161
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code></td><td> </td>
5166
<td></td><td></td><td></td>
5170
<div class="memdoc">
5173
Mounts a file of type FILE_TYPE_MOUNTABLE without user interaction.
5175
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#e15d36a7969c55122b9f85a1690a46e8" title="Finishes a mount operation.">mount_mountable_finish()</a> to get the result of the operation.<p>
5176
<dl compact><dt><b>Parameters:</b></dt><dd>
5177
<table border="0" cellspacing="2" cellpadding="0">
5178
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
5184
<a class="anchor" name="8501fa88f4aaa8d52c001596960a4572"></a><!-- doxytag: member="Gio::File::mount_mountable" ref="8501fa88f4aaa8d52c001596960a4572" args="(MountMountFlags flags=MOUNT_MOUNT_NONE)" -->
5185
<div class="memitem">
5186
<div class="memproto">
5187
<table class="memname">
5189
<td class="memname">void Gio::File::mount_mountable </td>
5191
<td class="paramtype"><a class="el" href="group__giommEnums.html#g5484bace25c932fd4c7354259e138814">MountMountFlags</a> </td>
5192
<td class="paramname"> <em>flags</em> = <code>MOUNT_MOUNT_NONE</code> </td>
5193
<td> ) </td>
5198
<div class="memdoc">
5201
Mounts a file of type FILE_TYPE_MOUNTABLE without user interaction.
5206
<a class="anchor" name="e15d36a7969c55122b9f85a1690a46e8"></a><!-- doxytag: member="Gio::File::mount_mountable_finish" ref="e15d36a7969c55122b9f85a1690a46e8" args="(const Glib::RefPtr< AsyncResult > &result)" -->
5207
<div class="memitem">
5208
<div class="memproto">
5209
<table class="memname">
5211
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>> Gio::File::mount_mountable_finish </td>
5213
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
5214
<td class="paramname"> <em>result</em> </td>
5215
<td> ) </td>
5220
<div class="memdoc">
5223
Finishes a mount operation.
5225
See g_file_mount_mountable() for details.<p>
5226
Finish an asynchronous mount operation that was started with g_file_mount_mountable(). <dl compact><dt><b>Parameters:</b></dt><dd>
5227
<table border="0" cellspacing="2" cellpadding="0">
5228
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
5231
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> or <code>0</code> on error. Free the returned object with Glib::object_unref(). </dd></dl>
5235
<a class="anchor" name="5b687c8f19411e955bb069c469be92b4"></a><!-- doxytag: member="Gio::File::unmount_mountable" ref="5b687c8f19411e955bb069c469be92b4" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, MountUnmountFlags flags=MOUNT_UNMOUNT_NONE)" -->
5236
<div class="memitem">
5237
<div class="memproto">
5238
<table class="memname">
5240
<td class="memname">void Gio::File::unmount_mountable </td>
5242
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5243
<td class="paramname"> <em>slot</em>, </td>
5246
<td class="paramkey"></td>
5248
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5249
<td class="paramname"> <em>cancellable</em>, </td>
5252
<td class="paramkey"></td>
5254
<td class="paramtype"><a class="el" href="group__giommEnums.html#g9fa1b6a8eabf8f88e4cf6d611a4cff44">MountUnmountFlags</a> </td>
5255
<td class="paramname"> <em>flags</em> = <code>MOUNT_UNMOUNT_NONE</code></td><td> </td>
5260
<td></td><td></td><td></td>
5264
<div class="memdoc">
5267
Unmounts a file of type FILE_TYPE_MOUNTABLE.
5269
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5270
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#51458cf04ad25e4a784a3ebcb906155d" title="Finishes an unmount operation, see g_file_unmount_mountable() for details.">unmount_mountable_finish()</a> to get the result of the operation.<p>
5271
<dl compact><dt><b>Parameters:</b></dt><dd>
5272
<table border="0" cellspacing="2" cellpadding="0">
5273
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
5274
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
5275
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Flags affecting the operation. </td></tr>
5281
<a class="anchor" name="b6c8e9ef0e5d83a271c8307b18e779d8"></a><!-- doxytag: member="Gio::File::unmount_mountable" ref="b6c8e9ef0e5d83a271c8307b18e779d8" args="(const SlotAsyncReady &slot, MountUnmountFlags flags=MOUNT_UNMOUNT_NONE)" -->
5282
<div class="memitem">
5283
<div class="memproto">
5284
<table class="memname">
5286
<td class="memname">void Gio::File::unmount_mountable </td>
5288
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5289
<td class="paramname"> <em>slot</em>, </td>
5292
<td class="paramkey"></td>
5294
<td class="paramtype"><a class="el" href="group__giommEnums.html#g9fa1b6a8eabf8f88e4cf6d611a4cff44">MountUnmountFlags</a> </td>
5295
<td class="paramname"> <em>flags</em> = <code>MOUNT_UNMOUNT_NONE</code></td><td> </td>
5300
<td></td><td></td><td></td>
5304
<div class="memdoc">
5307
Unmounts a file of type FILE_TYPE_MOUNTABLE.
5309
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#51458cf04ad25e4a784a3ebcb906155d" title="Finishes an unmount operation, see g_file_unmount_mountable() for details.">unmount_mountable_finish()</a> to get the result of the operation.<p>
5310
<dl compact><dt><b>Parameters:</b></dt><dd>
5311
<table border="0" cellspacing="2" cellpadding="0">
5312
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
5313
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Flags affecting the operation. </td></tr>
5374
<a class="anchor" name="8a8223e3b661f03c7a60ac0f003b916e"></a><!-- doxytag: member="Gio::File::eject_mountable" ref="8a8223e3b661f03c7a60ac0f003b916e" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, MountUnmountFlags flags=MOUNT_UNMOUNT_NONE)" -->
5375
<div class="memitem">
5376
<div class="memproto">
5377
<table class="memname">
5379
<td class="memname">void Gio::File::eject_mountable </td>
5381
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5382
<td class="paramname"> <em>slot</em>, </td>
5385
<td class="paramkey"></td>
5387
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5388
<td class="paramname"> <em>cancellable</em>, </td>
5391
<td class="paramkey"></td>
5393
<td class="paramtype"><a class="el" href="group__giommEnums.html#g9fa1b6a8eabf8f88e4cf6d611a4cff44">MountUnmountFlags</a> </td>
5394
<td class="paramname"> <em>flags</em> = <code>MOUNT_UNMOUNT_NONE</code></td><td> </td>
5399
<td></td><td></td><td></td>
5403
<div class="memdoc">
5406
Starts an asynchronous eject on a mountable.
5408
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5409
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#6a5124de7c55e9dc5e85ffcb9d3dd14f" title="Finishes an asynchronous eject operation started by g_file_eject_mountable().">eject_mountable_finish()</a> to get the result of the operation.<p>
5410
<dl compact><dt><b>Parameters:</b></dt><dd>
5411
<table border="0" cellspacing="2" cellpadding="0">
5412
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Flags affecting the operation. </td></tr>
5413
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
5414
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
5420
<a class="anchor" name="d8422a939a634d2248ef6d8658f0fdad"></a><!-- doxytag: member="Gio::File::eject_mountable" ref="d8422a939a634d2248ef6d8658f0fdad" args="(const SlotAsyncReady &slot, MountUnmountFlags flags=MOUNT_UNMOUNT_NONE)" -->
5421
<div class="memitem">
5422
<div class="memproto">
5423
<table class="memname">
5425
<td class="memname">void Gio::File::eject_mountable </td>
5427
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5428
<td class="paramname"> <em>slot</em>, </td>
5431
<td class="paramkey"></td>
5433
<td class="paramtype"><a class="el" href="group__giommEnums.html#g9fa1b6a8eabf8f88e4cf6d611a4cff44">MountUnmountFlags</a> </td>
5434
<td class="paramname"> <em>flags</em> = <code>MOUNT_UNMOUNT_NONE</code></td><td> </td>
5439
<td></td><td></td><td></td>
5443
<div class="memdoc">
5446
Starts an asynchronous eject on a mountable.
5448
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#6a5124de7c55e9dc5e85ffcb9d3dd14f" title="Finishes an asynchronous eject operation started by g_file_eject_mountable().">eject_mountable_finish()</a> to get the result of the operation.<p>
5449
<dl compact><dt><b>Parameters:</b></dt><dd>
5450
<table border="0" cellspacing="2" cellpadding="0">
5451
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
5452
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Flags affecting the operation. </td></tr>
5458
<a class="anchor" name="eb28fd505cab23a82c68ff00445b12e7"></a><!-- doxytag: member="Gio::File::eject_mountable" ref="eb28fd505cab23a82c68ff00445b12e7" args="(MountUnmountFlags flags=MOUNT_UNMOUNT_NONE)" -->
5459
<div class="memitem">
5460
<div class="memproto">
5461
<table class="memname">
5463
<td class="memname">void Gio::File::eject_mountable </td>
5465
<td class="paramtype"><a class="el" href="group__giommEnums.html#g9fa1b6a8eabf8f88e4cf6d611a4cff44">MountUnmountFlags</a> </td>
5466
<td class="paramname"> <em>flags</em> = <code>MOUNT_UNMOUNT_NONE</code> </td>
5467
<td> ) </td>
5472
<div class="memdoc">
5475
Starts an asynchronous eject on a mountable.
5477
<dl compact><dt><b>Parameters:</b></dt><dd>
5478
<table border="0" cellspacing="2" cellpadding="0">
5479
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Flags affecting the operation. </td></tr>
5485
<a class="anchor" name="6a5124de7c55e9dc5e85ffcb9d3dd14f"></a><!-- doxytag: member="Gio::File::eject_mountable_finish" ref="6a5124de7c55e9dc5e85ffcb9d3dd14f" args="(const Glib::RefPtr< AsyncResult > &result)" -->
5486
<div class="memitem">
5487
<div class="memproto">
5488
<table class="memname">
5490
<td class="memname">bool Gio::File::eject_mountable_finish </td>
5492
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
5493
<td class="paramname"> <em>result</em> </td>
5494
<td> ) </td>
5499
<div class="memdoc">
5502
Finishes an asynchronous eject operation started by g_file_eject_mountable().
5504
<dl compact><dt><b>Parameters:</b></dt><dd>
5505
<table border="0" cellspacing="2" cellpadding="0">
5506
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
5509
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the <em>file</em> was ejected successfully. <code>false</code> otherwise. </dd></dl>
5513
<a class="anchor" name="90726dcf94248d2fddf2e4c8584b7bf0"></a><!-- doxytag: member="Gio::File::copy_attributes" ref="90726dcf94248d2fddf2e4c8584b7bf0" args="(const Glib::RefPtr< File > &destination, const Glib::RefPtr< Cancellable > &cancellable, FileCopyFlags flags=FILE_COPY_NONE)" -->
5514
<div class="memitem">
5515
<div class="memproto">
5516
<table class="memname">
5518
<td class="memname">bool Gio::File::copy_attributes </td>
5520
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
5521
<td class="paramname"> <em>destination</em>, </td>
5524
<td class="paramkey"></td>
5526
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5527
<td class="paramname"> <em>cancellable</em>, </td>
5530
<td class="paramkey"></td>
5532
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
5533
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
5538
<td></td><td></td><td></td>
5542
<div class="memdoc">
5545
Copies the file attributes from <em>source</em> to <em>destination</em>.
5547
Normally only a subset of the file attributes are copied, those that are copies in a normal file copy operation (which for instance does not include e.g. mtime). However if FILE_COPY_ALL_METADATA is specified in <em>flags</em>, then all the metadata that is possible to copy is copied.<p>
5548
<dl compact><dt><b>Parameters:</b></dt><dd>
5549
<table border="0" cellspacing="2" cellpadding="0">
5550
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>A <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> to copy attributes to. </td></tr>
5551
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5552
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
5555
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the attributes were copied successfully, false otherwise. </dd></dl>
5559
<a class="anchor" name="05c1101ede98028c9234486eb0434250"></a><!-- doxytag: member="Gio::File::copy_attributes" ref="05c1101ede98028c9234486eb0434250" args="(const Glib::RefPtr< File > &destination, FileCopyFlags flags=FILE_COPY_NONE)" -->
5560
<div class="memitem">
5561
<div class="memproto">
5562
<table class="memname">
5564
<td class="memname">bool Gio::File::copy_attributes </td>
5566
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1File.html">File</a>>& </td>
5567
<td class="paramname"> <em>destination</em>, </td>
5570
<td class="paramkey"></td>
5572
<td class="paramtype"><a class="el" href="group__giommEnums.html#g08edc09a45449b136b27493647d4ecbe">FileCopyFlags</a> </td>
5573
<td class="paramname"> <em>flags</em> = <code>FILE_COPY_NONE</code></td><td> </td>
5578
<td></td><td></td><td></td>
5582
<div class="memdoc">
5585
Copies the file attributes from <em>source</em> to <em>destination</em>.
5587
Normally only a subset of the file attributes are copied, those that are copies in a normal file copy operation (which for instance does not include e.g. mtime). However if FILE_COPY_ALL_METADATA is specified in <em>flags</em>, then all the metadata that is possible to copy is copied.<p>
5588
<dl compact><dt><b>Parameters:</b></dt><dd>
5589
<table border="0" cellspacing="2" cellpadding="0">
5590
<tr><td valign="top"></td><td valign="top"><em>destination</em> </td><td>A <a class="el" href="classGio_1_1File.html" title="File and directory handling.">File</a> to copy attributes to. </td></tr>
5591
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
5594
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the attributes were copied successfully, false otherwise. </dd></dl>
5598
<a class="anchor" name="a0fa22ffba0ff50779e49ff9d12344e6"></a><!-- doxytag: member="Gio::File::monitor_directory" ref="a0fa22ffba0ff50779e49ff9d12344e6" args="(const Glib::RefPtr< Cancellable > &cancellable, FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
5599
<div class="memitem">
5600
<div class="memproto">
5601
<table class="memname">
5603
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor_directory </td>
5605
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5606
<td class="paramname"> <em>cancellable</em>, </td>
5609
<td class="paramkey"></td>
5611
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
5612
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code></td><td> </td>
5617
<td></td><td></td><td></td>
5621
<div class="memdoc">
5624
Obtains a directory monitor for the given file.
5626
This may fail if directory monitoring is not supported.<p>
5627
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5628
<dl compact><dt><b>Parameters:</b></dt><dd>
5629
<table border="0" cellspacing="2" cellpadding="0">
5630
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5631
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
5634
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file. </dd></dl>
5638
<a class="anchor" name="12d36689c1024ff9fc8819f619910a92"></a><!-- doxytag: member="Gio::File::monitor_directory" ref="12d36689c1024ff9fc8819f619910a92" args="(FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
5639
<div class="memitem">
5640
<div class="memproto">
5641
<table class="memname">
5643
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor_directory </td>
5645
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
5646
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code> </td>
5647
<td> ) </td>
5652
<div class="memdoc">
5655
Obtains a directory monitor for the given file.
5657
This may fail if directory monitoring is not supported.<p>
5658
<dl compact><dt><b>Parameters:</b></dt><dd>
5659
<table border="0" cellspacing="2" cellpadding="0">
5660
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
5663
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file. </dd></dl>
5667
<a class="anchor" name="b8e14809f330ddd58e628c96921cd987"></a><!-- doxytag: member="Gio::File::monitor_file" ref="b8e14809f330ddd58e628c96921cd987" args="(const Glib::RefPtr< Cancellable > &cancellable, FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
5668
<div class="memitem">
5669
<div class="memproto">
5670
<table class="memname">
5672
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor_file </td>
5674
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5675
<td class="paramname"> <em>cancellable</em>, </td>
5678
<td class="paramkey"></td>
5680
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
5681
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code></td><td> </td>
5686
<td></td><td></td><td></td>
5690
<div class="memdoc">
5693
Obtains a file monitor for the given file.
5695
If no file notification mechanism exists, then regular polling of the file is used.<p>
5696
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5697
<dl compact><dt><b>Parameters:</b></dt><dd>
5698
<table border="0" cellspacing="2" cellpadding="0">
5699
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
5700
<tr><td valign="top"></td><td valign="top"><em>A</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5703
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file. </dd></dl>
5707
<a class="anchor" name="a410183ed3b4a745093383d038d271b9"></a><!-- doxytag: member="Gio::File::monitor_file" ref="a410183ed3b4a745093383d038d271b9" args="(FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
5708
<div class="memitem">
5709
<div class="memproto">
5710
<table class="memname">
5712
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor_file </td>
5714
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
5715
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code> </td>
5716
<td> ) </td>
5721
<div class="memdoc">
5724
Obtains a file monitor for the given file.
5726
If no file notification mechanism exists, then regular polling of the file is used.<p>
5727
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5728
<dl compact><dt><b>Parameters:</b></dt><dd>
5729
<table border="0" cellspacing="2" cellpadding="0">
5730
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
5731
<tr><td valign="top"></td><td valign="top"><em>A</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5734
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file. </dd></dl>
5738
<a class="anchor" name="88aacee7bb6f6d968b4383311a9dd002"></a><!-- doxytag: member="Gio::File::monitor" ref="88aacee7bb6f6d968b4383311a9dd002" args="(const Glib::RefPtr< Cancellable > &cancellable, FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
5739
<div class="memitem">
5740
<div class="memproto">
5741
<table class="memname">
5743
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor </td>
5745
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5746
<td class="paramname"> <em>cancellable</em>, </td>
5749
<td class="paramkey"></td>
5751
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
5752
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code></td><td> </td>
5757
<td></td><td></td><td></td>
5761
<div class="memdoc">
5764
Obtains a file monitor for the given file.
5766
If no file notification mechanism exists, then regular polling of the file is used.<p>
5767
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5768
<dl compact><dt><b>Parameters:</b></dt><dd>
5769
<table border="0" cellspacing="2" cellpadding="0">
5770
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
5771
<tr><td valign="top"></td><td valign="top"><em>A</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5774
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file.</dd></dl>
5775
<dl compact><dt><b><a class="el" href="newin2p18s.html#_newin2p18s000019">Since glibmm 2.18:</a></b></dt><dd></dd></dl>
5779
<a class="anchor" name="50896969a9de87f810f0bf5e2d3335bd"></a><!-- doxytag: member="Gio::File::monitor" ref="50896969a9de87f810f0bf5e2d3335bd" args="(FileMonitorFlags flags=FILE_MONITOR_NONE)" -->
5780
<div class="memitem">
5781
<div class="memproto">
5782
<table class="memname">
5784
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1FileMonitor.html">FileMonitor</a>> Gio::File::monitor </td>
5786
<td class="paramtype"><a class="el" href="group__giommEnums.html#g469f795e9a4dddb2421c0e5568be6649">FileMonitorFlags</a> </td>
5787
<td class="paramname"> <em>flags</em> = <code>FILE_MONITOR_NONE</code> </td>
5788
<td> ) </td>
5793
<div class="memdoc">
5796
Obtains a file monitor for the given file.
5798
If no file notification mechanism exists, then regular polling of the file is used.<p>
5799
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5800
<dl compact><dt><b>Parameters:</b></dt><dd>
5801
<table border="0" cellspacing="2" cellpadding="0">
5802
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileMonitorFlags. </td></tr>
5803
<tr><td valign="top"></td><td valign="top"><em>A</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5806
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1FileMonitor.html" title="Monitors a file or directory for changes.">FileMonitor</a> for the file.</dd></dl>
5807
<dl compact><dt><b><a class="el" href="newin2p18s.html#_newin2p18s000020">Since glibmm 2.18:</a></b></dt><dd></dd></dl>
5811
<a class="anchor" name="753546465735b25633b003333b66d05c"></a><!-- doxytag: member="Gio::File::query_default_handler" ref="753546465735b25633b003333b66d05c" args="(const Glib::RefPtr< Cancellable > &cancellable)" -->
5812
<div class="memitem">
5813
<div class="memproto">
5814
<table class="memname">
5816
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AppInfo.html">AppInfo</a>> Gio::File::query_default_handler </td>
5818
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5819
<td class="paramname"> <em>cancellable</em> </td>
5820
<td> ) </td>
5825
<div class="memdoc">
5828
Returns: a <a class="el" href="classGio_1_1AppInfo.html" title="Application information, to describe applications installed on the system, and launch...">AppInfo</a> if the handle was found, <code>0</code> if there were errors.
5830
<dl compact><dt><b>Parameters:</b></dt><dd>
5831
<table border="0" cellspacing="2" cellpadding="0">
5832
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>Optional <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object, <code>0</code> to ignore. </td></tr>
5835
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1AppInfo.html" title="Application information, to describe applications installed on the system, and launch...">AppInfo</a> if the handle was found, <code>0</code> if there were errors. When you are done with it, release it with Glib::object_unref(). </dd></dl>
5839
<a class="anchor" name="0c0fd0ece2570b6704889df5ee43c283"></a><!-- doxytag: member="Gio::File::query_default_handler" ref="0c0fd0ece2570b6704889df5ee43c283" args="()" -->
5840
<div class="memitem">
5841
<div class="memproto">
5842
<table class="memname">
5844
<td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AppInfo.html">AppInfo</a>> Gio::File::query_default_handler </td>
5846
<td class="paramname"> </td>
5847
<td> ) </td>
5852
<div class="memdoc">
5855
Returns the <a class="el" href="classGio_1_1AppInfo.html" title="Application information, to describe applications installed on the system, and launch...">AppInfo</a> that is registered as the default application to handle the file specified by the file.
5857
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGio_1_1AppInfo.html" title="Application information, to describe applications installed on the system, and launch...">AppInfo</a> if the handle was found, or an empty RefPtr if there were errors. </dd></dl>
5861
<a class="anchor" name="c53be228d732b34e062a2a57814cdf15"></a><!-- doxytag: member="Gio::File::load_contents" ref="c53be228d732b34e062a2a57814cdf15" args="(const Glib::RefPtr< Cancellable > &cancellable, char *&contents, gsize &length, std::string &etag_out)" -->
5862
<div class="memitem">
5863
<div class="memproto">
5864
<table class="memname">
5866
<td class="memname">bool Gio::File::load_contents </td>
5868
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5869
<td class="paramname"> <em>cancellable</em>, </td>
5872
<td class="paramkey"></td>
5874
<td class="paramtype">char *& </td>
5875
<td class="paramname"> <em>contents</em>, </td>
5878
<td class="paramkey"></td>
5880
<td class="paramtype">gsize & </td>
5881
<td class="paramname"> <em>length</em>, </td>
5884
<td class="paramkey"></td>
5886
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5887
<td class="paramname"> <em>etag_out</em></td><td> </td>
5892
<td></td><td></td><td></td>
5896
<div class="memdoc">
5899
Loads the content of the file into memory, returning the size of the data.
5901
The data is always zero terminated, but this is not included in the resultant <em>length</em>.<p>
5902
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> exception with CANCELLED will be returned.<p>
5903
<dl compact><dt><b>Parameters:</b></dt><dd>
5904
<table border="0" cellspacing="2" cellpadding="0">
5905
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A cancellable object. </td></tr>
5906
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A location to place the contents of the file. </td></tr>
5907
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>A location to place the length of the contents of the file. </td></tr>
5908
<tr><td valign="top"></td><td valign="top"><em>etag_out</em> </td><td>A location to place the current entity tag for the file. </td></tr>
5914
<a class="anchor" name="77f7781b0ba65bc4e7e613b80b353fd7"></a><!-- doxytag: member="Gio::File::load_contents" ref="77f7781b0ba65bc4e7e613b80b353fd7" args="(char *&contents, gsize &length, std::string &etag_out)" -->
5915
<div class="memitem">
5916
<div class="memproto">
5917
<table class="memname">
5919
<td class="memname">bool Gio::File::load_contents </td>
5921
<td class="paramtype">char *& </td>
5922
<td class="paramname"> <em>contents</em>, </td>
5925
<td class="paramkey"></td>
5927
<td class="paramtype">gsize & </td>
5928
<td class="paramname"> <em>length</em>, </td>
5931
<td class="paramkey"></td>
5933
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
5934
<td class="paramname"> <em>etag_out</em></td><td> </td>
5939
<td></td><td></td><td></td>
5943
<div class="memdoc">
5946
Loads the content of the file into memory, returning the size of the data.
5948
The data is always zero terminated, but this is not included in the resultant <em>length</em>.<p>
5949
<dl compact><dt><b>Parameters:</b></dt><dd>
5950
<table border="0" cellspacing="2" cellpadding="0">
5951
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A location to place the contents of the file. </td></tr>
5952
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>A location to place the length of the contents of the file. </td></tr>
5953
<tr><td valign="top"></td><td valign="top"><em>etag_out</em> </td><td>A location to place the current entity tag for the file. </td></tr>
5959
<a class="anchor" name="d0e02ebffbaa13036e4636d2118f71a0"></a><!-- doxytag: member="Gio::File::load_contents_async" ref="d0e02ebffbaa13036e4636d2118f71a0" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable)" -->
5960
<div class="memitem">
5961
<div class="memproto">
5962
<table class="memname">
5964
<td class="memname">void Gio::File::load_contents_async </td>
5966
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
5967
<td class="paramname"> <em>slot</em>, </td>
5970
<td class="paramkey"></td>
5972
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
5973
<td class="paramname"> <em>cancellable</em></td><td> </td>
5978
<td></td><td></td><td></td>
5982
<div class="memdoc">
5985
Starts an asynchronous load of the file's contents.
5987
For more details, see <a class="el" href="classGio_1_1File.html#c53be228d732b34e062a2a57814cdf15" title="Loads the content of the file into memory, returning the size of the data.">load_contents()</a> which is the synchronous version of this call.<p>
5988
When the load operation has completed, the <em>slot</em> will be called. To finish the operation, call <a class="el" href="classGio_1_1File.html#5fd15277ab90bcc57db088be04cac457" title="Finishes an asynchronous load of the file's contents.">load_contents_finish()</a> with the <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a> provided to the <em>slot</em>.<p>
5989
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
5990
<dl compact><dt><b>Parameters:</b></dt><dd>
5991
<table border="0" cellspacing="2" cellpadding="0">
5992
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
5993
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
5999
<a class="anchor" name="6af7ec98d5543bce07b917b65d7276ce"></a><!-- doxytag: member="Gio::File::load_contents_async" ref="6af7ec98d5543bce07b917b65d7276ce" args="(const SlotAsyncReady &slot)" -->
6000
<div class="memitem">
6001
<div class="memproto">
6002
<table class="memname">
6004
<td class="memname">void Gio::File::load_contents_async </td>
6006
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6007
<td class="paramname"> <em>slot</em> </td>
6008
<td> ) </td>
6013
<div class="memdoc">
6016
Starts an asynchronous load of the file's contents.
6018
For more details, see <a class="el" href="classGio_1_1File.html#c53be228d732b34e062a2a57814cdf15" title="Loads the content of the file into memory, returning the size of the data.">load_contents()</a> which is the synchronous version of this call.<p>
6019
When the load operation has completed, the <em>slot</em> will be called. To finish the operation, call <a class="el" href="classGio_1_1File.html#5fd15277ab90bcc57db088be04cac457" title="Finishes an asynchronous load of the file's contents.">load_contents_finish()</a> with the <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a> provided to the <em>slot</em>.<p>
6020
<dl compact><dt><b>Parameters:</b></dt><dd>
6021
<table border="0" cellspacing="2" cellpadding="0">
6022
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
6028
<a class="anchor" name="5fd15277ab90bcc57db088be04cac457"></a><!-- doxytag: member="Gio::File::load_contents_finish" ref="5fd15277ab90bcc57db088be04cac457" args="(const Glib::RefPtr< AsyncResult > &result, char *&contents, gsize &length, std::string &etag_out)" -->
6029
<div class="memitem">
6030
<div class="memproto">
6031
<table class="memname">
6033
<td class="memname">bool Gio::File::load_contents_finish </td>
6035
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
6036
<td class="paramname"> <em>result</em>, </td>
6039
<td class="paramkey"></td>
6041
<td class="paramtype">char *& </td>
6042
<td class="paramname"> <em>contents</em>, </td>
6045
<td class="paramkey"></td>
6047
<td class="paramtype">gsize & </td>
6048
<td class="paramname"> <em>length</em>, </td>
6051
<td class="paramkey"></td>
6053
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6054
<td class="paramname"> <em>etag_out</em></td><td> </td>
6059
<td></td><td></td><td></td>
6063
<div class="memdoc">
6066
Finishes an asynchronous load of the <em>file's</em> contents.
6068
The contents are placed in <em>contents</em>, and <em>length</em> is set to the size of the <em>contents</em> string. If <em>etag_out</em> is present, it will be set to the new entity tag for the <em>file</em>. <dl compact><dt><b>Parameters:</b></dt><dd>
6069
<table border="0" cellspacing="2" cellpadding="0">
6070
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
6071
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A location to place the contents of the file. </td></tr>
6072
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>A location to place the length of the contents of the file. </td></tr>
6073
<tr><td valign="top"></td><td valign="top"><em>etag_out</em> </td><td>A location to place the current entity tag for the file. </td></tr>
6076
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the load was successful. If <code>false</code> and <em>error</em> is present, it will be set appropriately. </dd></dl>
6080
<a class="anchor" name="0e8d95fcdf7c2aa38f54e90a22d3ab6f"></a><!-- doxytag: member="Gio::File::load_partial_contents_async" ref="0e8d95fcdf7c2aa38f54e90a22d3ab6f" args="(const SlotReadMore &slot_read_more, const SlotAsyncReady &slot_async_ready, const Glib::RefPtr< Cancellable > &cancellable)" -->
6081
<div class="memitem">
6082
<div class="memproto">
6083
<table class="memname">
6085
<td class="memname">void Gio::File::load_partial_contents_async </td>
6087
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#dd182d22071784fc345adc757b3d687b">SlotReadMore</a>& </td>
6088
<td class="paramname"> <em>slot_read_more</em>, </td>
6091
<td class="paramkey"></td>
6093
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6094
<td class="paramname"> <em>slot_async_ready</em>, </td>
6097
<td class="paramkey"></td>
6099
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6100
<td class="paramname"> <em>cancellable</em></td><td> </td>
6105
<td></td><td></td><td></td>
6109
<div class="memdoc">
6112
Reads the partial contents of a file.
6114
The <em>slot_read_more</em> callback slot should be used to stop reading from the file when appropriate. This operation can be finished by <a class="el" href="classGio_1_1File.html#4b323508401d2e6fd2b3ad659f9bb5eb" title="Finishes an asynchronous partial load operation that was started with load_partial_contents_async()...">load_partial_contents_finish()</a>.<p>
6115
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6116
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#4b323508401d2e6fd2b3ad659f9bb5eb" title="Finishes an asynchronous partial load operation that was started with load_partial_contents_async()...">load_partial_contents_finish()</a> to get the result of the operation.<p>
6117
<dl compact><dt><b>Parameters:</b></dt><dd>
6118
<table border="0" cellspacing="2" cellpadding="0">
6119
<tr><td valign="top"></td><td valign="top"><em>slot_read_more</em> </td><td>A callback to receive partial data and to specify whether further data should be read. </td></tr>
6120
<tr><td valign="top"></td><td valign="top"><em>slot_async_ready</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
6121
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object which can be used to cancel the operation. </td></tr>
6127
<a class="anchor" name="362d71932c0ba8797a8c47b77df1b6d7"></a><!-- doxytag: member="Gio::File::load_partial_contents_async" ref="362d71932c0ba8797a8c47b77df1b6d7" args="(const SlotReadMore &slot_read_more, const SlotAsyncReady &slot_async_ready)" -->
6128
<div class="memitem">
6129
<div class="memproto">
6130
<table class="memname">
6132
<td class="memname">void Gio::File::load_partial_contents_async </td>
6134
<td class="paramtype">const <a class="el" href="classGio_1_1File.html#dd182d22071784fc345adc757b3d687b">SlotReadMore</a>& </td>
6135
<td class="paramname"> <em>slot_read_more</em>, </td>
6138
<td class="paramkey"></td>
6140
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6141
<td class="paramname"> <em>slot_async_ready</em></td><td> </td>
6146
<td></td><td></td><td></td>
6150
<div class="memdoc">
6153
Reads the partial contents of a file.
6155
The <em>slot_read_more</em> callback slot should be used to stop reading from the file when appropriate. This operation can be finished by <a class="el" href="classGio_1_1File.html#4b323508401d2e6fd2b3ad659f9bb5eb" title="Finishes an asynchronous partial load operation that was started with load_partial_contents_async()...">load_partial_contents_finish()</a>.<p>
6156
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6157
When the operation is finished, <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1File.html#4b323508401d2e6fd2b3ad659f9bb5eb" title="Finishes an asynchronous partial load operation that was started with load_partial_contents_async()...">load_partial_contents_finish()</a> to get the result of the operation.<p>
6158
<dl compact><dt><b>Parameters:</b></dt><dd>
6159
<table border="0" cellspacing="2" cellpadding="0">
6160
<tr><td valign="top"></td><td valign="top"><em>slot_read_more</em> </td><td>A callback to receive partial data and to specify whether further data should be read. </td></tr>
6161
<tr><td valign="top"></td><td valign="top"><em>slot_async_ready</em> </td><td>A callback slot which will be called when the request is satisfied. </td></tr>
6167
<a class="anchor" name="4b323508401d2e6fd2b3ad659f9bb5eb"></a><!-- doxytag: member="Gio::File::load_partial_contents_finish" ref="4b323508401d2e6fd2b3ad659f9bb5eb" args="(const Glib::RefPtr< AsyncResult > &result, char *&contents, gsize &length, std::string &etag_out)" -->
6168
<div class="memitem">
6169
<div class="memproto">
6170
<table class="memname">
6172
<td class="memname">bool Gio::File::load_partial_contents_finish </td>
6174
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
6175
<td class="paramname"> <em>result</em>, </td>
6178
<td class="paramkey"></td>
6180
<td class="paramtype">char *& </td>
6181
<td class="paramname"> <em>contents</em>, </td>
6184
<td class="paramkey"></td>
6186
<td class="paramtype">gsize & </td>
6187
<td class="paramname"> <em>length</em>, </td>
6190
<td class="paramkey"></td>
6192
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6193
<td class="paramname"> <em>etag_out</em></td><td> </td>
6198
<td></td><td></td><td></td>
6202
<div class="memdoc">
6205
Finishes an asynchronous partial load operation that was started with <a class="el" href="classGio_1_1File.html#0e8d95fcdf7c2aa38f54e90a22d3ab6f" title="Reads the partial contents of a file.">load_partial_contents_async()</a>.
6207
<dl compact><dt><b>Parameters:</b></dt><dd>
6208
<table border="0" cellspacing="2" cellpadding="0">
6209
<tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
6210
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A location to place the contents of the file. </td></tr>
6211
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>A location to place the length of the contents of the file. </td></tr>
6212
<tr><td valign="top"></td><td valign="top"><em>etag_out</em> </td><td>A location to place the current entity tag for the file. </td></tr>
6215
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the load was successful. If <code>false</code> and <em>error</em> is present, it will be set appropriately. </dd></dl>
6219
<a class="anchor" name="f10deca1d5c5d1f650d3b182624330dc"></a><!-- doxytag: member="Gio::File::replace_contents" ref="f10deca1d5c5d1f650d3b182624330dc" args="(const char *contents, gsize length, const std::string &etag, std::string &new_etag, const Glib::RefPtr< Cancellable > &cancellable, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
6220
<div class="memitem">
6221
<div class="memproto">
6222
<table class="memname">
6224
<td class="memname">void Gio::File::replace_contents </td>
6226
<td class="paramtype">const char * </td>
6227
<td class="paramname"> <em>contents</em>, </td>
6230
<td class="paramkey"></td>
6232
<td class="paramtype">gsize </td>
6233
<td class="paramname"> <em>length</em>, </td>
6236
<td class="paramkey"></td>
6238
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6239
<td class="paramname"> <em>etag</em>, </td>
6242
<td class="paramkey"></td>
6244
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6245
<td class="paramname"> <em>new_etag</em>, </td>
6248
<td class="paramkey"></td>
6250
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6251
<td class="paramname"> <em>cancellable</em>, </td>
6254
<td class="paramkey"></td>
6256
<td class="paramtype">bool </td>
6257
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
6260
<td class="paramkey"></td>
6262
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
6263
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
6268
<td></td><td></td><td></td>
6272
<div class="memdoc">
6275
Replaces the contents of the file with <em>contents</em> of <em>length</em> bytes.
6277
If <em>etag</em> is specified (not an empty string) any existing file must have that etag, or a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown.<p>
6278
If <em>make_backup</em> is <code>true</code>, this function will attempt to make a backup of the file.<p>
6279
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6280
The returned <em>new_etag</em> can be used to verify that the file hasn't changed the next time it is saved over. <dl compact><dt><b>Parameters:</b></dt><dd>
6281
<table border="0" cellspacing="2" cellpadding="0">
6282
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A string containing the new contents for the file. </td></tr>
6283
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of <em>contents</em> in bytes. </td></tr>
6284
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>The old entity tag for the document. </td></tr>
6285
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
6286
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
6287
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location to a new entity tag for the document. </td></tr>
6288
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
6294
<a class="anchor" name="e7febf1f0f3b4b9efca9fae469082846"></a><!-- doxytag: member="Gio::File::replace_contents" ref="e7febf1f0f3b4b9efca9fae469082846" args="(const char *contents, gsize length, const std::string &etag, std::string &new_etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
6295
<div class="memitem">
6296
<div class="memproto">
6297
<table class="memname">
6299
<td class="memname">void Gio::File::replace_contents </td>
6301
<td class="paramtype">const char * </td>
6302
<td class="paramname"> <em>contents</em>, </td>
6305
<td class="paramkey"></td>
6307
<td class="paramtype">gsize </td>
6308
<td class="paramname"> <em>length</em>, </td>
6311
<td class="paramkey"></td>
6313
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6314
<td class="paramname"> <em>etag</em>, </td>
6317
<td class="paramkey"></td>
6319
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6320
<td class="paramname"> <em>new_etag</em>, </td>
6323
<td class="paramkey"></td>
6325
<td class="paramtype">bool </td>
6326
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
6329
<td class="paramkey"></td>
6331
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
6332
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
6337
<td></td><td></td><td></td>
6341
<div class="memdoc">
6344
Replaces the contents of the file with <em>contents</em> of <em>length</em> bytes.
6346
If <em>etag</em> is specified (not an empty string) any existing file must have that etag, or a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown.<p>
6347
If <em>make_backup</em> is <code>true</code>, this function will attempt to make a backup of the file.<p>
6348
The returned <em>new_etag</em> can be used to verify that the file hasn't changed the next time it is saved over. <dl compact><dt><b>Parameters:</b></dt><dd>
6349
<table border="0" cellspacing="2" cellpadding="0">
6350
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A string containing the new contents for the file. </td></tr>
6351
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of <em>contents</em> in bytes. </td></tr>
6352
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>The old entity tag for the document. </td></tr>
6353
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
6354
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
6355
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location to a new entity tag for the document. </td></tr>
6361
<a class="anchor" name="23126b43cd262b63c0e458c3a4d0b65c"></a><!-- doxytag: member="Gio::File::replace_contents" ref="23126b43cd262b63c0e458c3a4d0b65c" args="(const std::string &contents, const std::string &etag, std::string &new_etag, const Glib::RefPtr< Cancellable > &cancellable, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
6362
<div class="memitem">
6363
<div class="memproto">
6364
<table class="memname">
6366
<td class="memname">void Gio::File::replace_contents </td>
6368
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6369
<td class="paramname"> <em>contents</em>, </td>
6372
<td class="paramkey"></td>
6374
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6375
<td class="paramname"> <em>etag</em>, </td>
6378
<td class="paramkey"></td>
6380
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6381
<td class="paramname"> <em>new_etag</em>, </td>
6384
<td class="paramkey"></td>
6386
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6387
<td class="paramname"> <em>cancellable</em>, </td>
6390
<td class="paramkey"></td>
6392
<td class="paramtype">bool </td>
6393
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
6396
<td class="paramkey"></td>
6398
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
6399
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
6404
<td></td><td></td><td></td>
6408
<div class="memdoc">
6411
Replaces the contents of the file with <em>contents</em>.
6413
If <em>etag</em> is specified (not an empty string) any existing file must have that etag, or a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown.<p>
6414
If <em>make_backup</em> is <code>true</code>, this function will attempt to make a backup of the file.<p>
6415
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6416
The returned <em>new_etag</em> can be used to verify that the file hasn't changed the next time it is saved over. <dl compact><dt><b>Parameters:</b></dt><dd>
6417
<table border="0" cellspacing="2" cellpadding="0">
6418
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A string containing the new contents for the file. </td></tr>
6419
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>The old entity tag for the document. </td></tr>
6420
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
6421
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
6422
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location to a new entity tag for the document. </td></tr>
6423
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
6429
<a class="anchor" name="af33a17461ff4f70fed06818e364f617"></a><!-- doxytag: member="Gio::File::replace_contents" ref="af33a17461ff4f70fed06818e364f617" args="(const std::string &contents, const std::string &etag, std::string &new_etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
6430
<div class="memitem">
6431
<div class="memproto">
6432
<table class="memname">
6434
<td class="memname">void Gio::File::replace_contents </td>
6436
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6437
<td class="paramname"> <em>contents</em>, </td>
6440
<td class="paramkey"></td>
6442
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6443
<td class="paramname"> <em>etag</em>, </td>
6446
<td class="paramkey"></td>
6448
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6449
<td class="paramname"> <em>new_etag</em>, </td>
6452
<td class="paramkey"></td>
6454
<td class="paramtype">bool </td>
6455
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
6458
<td class="paramkey"></td>
6460
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
6461
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
6466
<td></td><td></td><td></td>
6470
<div class="memdoc">
6473
Replaces the contents of the file with <em>contents</em>.
6475
If <em>etag</em> is specified (not an empty string) any existing file must have that etag, or a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with WRONG_ETAG will be thrown.<p>
6476
If <em>make_backup</em> is <code>true</code>, this function will attempt to make a backup of the file.<p>
6477
The returned <em>new_etag</em> can be used to verify that the file hasn't changed the next time it is saved over. <dl compact><dt><b>Parameters:</b></dt><dd>
6478
<table border="0" cellspacing="2" cellpadding="0">
6479
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>A string containing the new contents for the file. </td></tr>
6480
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>The old entity tag for the document. </td></tr>
6481
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td><code>true</code> if a backup should be created. </td></tr>
6482
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
6483
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location to a new entity tag for the document. </td></tr>
6489
<a class="anchor" name="d33b24a7942429157f47379f4353378c"></a><!-- doxytag: member="Gio::File::replace_contents_async" ref="d33b24a7942429157f47379f4353378c" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, const char *contents, gsize length, const std::string &etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
6490
<div class="memitem">
6491
<div class="memproto">
6492
<table class="memname">
6494
<td class="memname">void Gio::File::replace_contents_async </td>
6496
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6497
<td class="paramname"> <em>slot</em>, </td>
6500
<td class="paramkey"></td>
6502
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6503
<td class="paramname"> <em>cancellable</em>, </td>
6506
<td class="paramkey"></td>
6508
<td class="paramtype">const char * </td>
6509
<td class="paramname"> <em>contents</em>, </td>
6512
<td class="paramkey"></td>
6514
<td class="paramtype">gsize </td>
6515
<td class="paramname"> <em>length</em>, </td>
6518
<td class="paramkey"></td>
6520
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6521
<td class="paramname"> <em>etag</em>, </td>
6524
<td class="paramkey"></td>
6526
<td class="paramtype">bool </td>
6527
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
6530
<td class="paramkey"></td>
6532
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
6533
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
6538
<td></td><td></td><td></td>
6542
<div class="memdoc">
6545
Starts an asynchronous replacement of the file with the given <em>contents</em> of <em>length</em> bytes.
6547
<em>etag</em> will replace the document's current entity tag.<p>
6548
When this operation has completed, <em>slot</em> will be called and the operation can be finalized with <a class="el" href="classGio_1_1File.html#f019065c5503c7f47d778c20f8e5de32" title="Finishes an asynchronous replace of the given file .">replace_contents_finish()</a>.<p>
6549
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6550
If <em>make_backup</em> is true, this function will attempt to make a backup of the file.<p>
6551
<dl compact><dt><b>Parameters:</b></dt><dd>
6552
<table border="0" cellspacing="2" cellpadding="0">
6553
<tr><td valign="top"></td><td valign="top"><em>slot,:</em> </td><td>A callback to call when the request is satisfied. </td></tr>
6554
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
6555
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>String of contents to replace the file with. </td></tr>
6556
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of <em>contents</em> in bytes. </td></tr>
6557
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>a new entity tag for the file. </td></tr>
6558
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup should be created. </td></tr>
6559
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
6565
<a class="anchor" name="9a1c445e84124e16294974a73f2f1bbb"></a><!-- doxytag: member="Gio::File::replace_contents_async" ref="9a1c445e84124e16294974a73f2f1bbb" args="(const SlotAsyncReady &slot, const char *contents, gsize length, const std::string &etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
6566
<div class="memitem">
6567
<div class="memproto">
6568
<table class="memname">
6570
<td class="memname">void Gio::File::replace_contents_async </td>
6572
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6573
<td class="paramname"> <em>slot</em>, </td>
6576
<td class="paramkey"></td>
6578
<td class="paramtype">const char * </td>
6579
<td class="paramname"> <em>contents</em>, </td>
6582
<td class="paramkey"></td>
6584
<td class="paramtype">gsize </td>
6585
<td class="paramname"> <em>length</em>, </td>
6588
<td class="paramkey"></td>
6590
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6591
<td class="paramname"> <em>etag</em>, </td>
6594
<td class="paramkey"></td>
6596
<td class="paramtype">bool </td>
6597
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
6600
<td class="paramkey"></td>
6602
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
6603
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
6608
<td></td><td></td><td></td>
6612
<div class="memdoc">
6615
Starts an asynchronous replacement of the file with the given <em>contents</em> of <em>length</em> bytes.
6617
<em>etag</em> will replace the document's current entity tag.<p>
6618
When this operation has completed, <em>slot</em> will be called and the operation can be finalized with <a class="el" href="classGio_1_1File.html#f019065c5503c7f47d778c20f8e5de32" title="Finishes an asynchronous replace of the given file .">replace_contents_finish()</a>.<p>
6619
If <em>make_backup</em> is true, this function will attempt to make a backup of the file.<p>
6620
<dl compact><dt><b>Parameters:</b></dt><dd>
6621
<table border="0" cellspacing="2" cellpadding="0">
6622
<tr><td valign="top"></td><td valign="top"><em>slot,:</em> </td><td>A callback to call when the request is satisfied. </td></tr>
6623
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>String of contents to replace the file with. </td></tr>
6624
<tr><td valign="top"></td><td valign="top"><em>length</em> </td><td>The length of <em>contents</em> in bytes. </td></tr>
6625
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>a new entity tag for the file. </td></tr>
6626
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup should be created. </td></tr>
6627
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
6633
<a class="anchor" name="380d6ce6362fc05e0e18ff1b881ceac7"></a><!-- doxytag: member="Gio::File::replace_contents_async" ref="380d6ce6362fc05e0e18ff1b881ceac7" args="(const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable, const std::string &contents, const std::string &etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
6634
<div class="memitem">
6635
<div class="memproto">
6636
<table class="memname">
6638
<td class="memname">void Gio::File::replace_contents_async </td>
6640
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6641
<td class="paramname"> <em>slot</em>, </td>
6644
<td class="paramkey"></td>
6646
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
6647
<td class="paramname"> <em>cancellable</em>, </td>
6650
<td class="paramkey"></td>
6652
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6653
<td class="paramname"> <em>contents</em>, </td>
6656
<td class="paramkey"></td>
6658
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6659
<td class="paramname"> <em>etag</em>, </td>
6662
<td class="paramkey"></td>
6664
<td class="paramtype">bool </td>
6665
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
6668
<td class="paramkey"></td>
6670
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
6671
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
6676
<td></td><td></td><td></td>
6680
<div class="memdoc">
6683
Starts an asynchronous replacement of the file with the given <em>contents</em> of <em>length</em> bytes.
6685
<em>etag</em> will replace the document's current entity tag.<p>
6686
When this operation has completed, <em>slot</em> will be called and the operation can be finalized with <a class="el" href="classGio_1_1File.html#f019065c5503c7f47d778c20f8e5de32" title="Finishes an asynchronous replace of the given file .">replace_contents_finish()</a>.<p>
6687
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6688
If <em>make_backup</em> is true, this function will attempt to make a backup of the file.<p>
6689
<dl compact><dt><b>Parameters:</b></dt><dd>
6690
<table border="0" cellspacing="2" cellpadding="0">
6691
<tr><td valign="top"></td><td valign="top"><em>slot,:</em> </td><td>A callback to call when the request is satisfied. </td></tr>
6692
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
6693
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>String of contents to replace the file with. </td></tr>
6694
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>a new entity tag for the file. </td></tr>
6695
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup should be created. </td></tr>
6696
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
6702
<a class="anchor" name="6fc86aab90620881899a701c2b2775cb"></a><!-- doxytag: member="Gio::File::replace_contents_async" ref="6fc86aab90620881899a701c2b2775cb" args="(const SlotAsyncReady &slot, const std::string &contents, const std::string &etag, bool make_backup=false, FileCreateFlags flags=FILE_CREATE_NONE)" -->
6703
<div class="memitem">
6704
<div class="memproto">
6705
<table class="memname">
6707
<td class="memname">void Gio::File::replace_contents_async </td>
6709
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
6710
<td class="paramname"> <em>slot</em>, </td>
6713
<td class="paramkey"></td>
6715
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6716
<td class="paramname"> <em>contents</em>, </td>
6719
<td class="paramkey"></td>
6721
<td class="paramtype">const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6722
<td class="paramname"> <em>etag</em>, </td>
6725
<td class="paramkey"></td>
6727
<td class="paramtype">bool </td>
6728
<td class="paramname"> <em>make_backup</em> = <code>false</code>, </td>
6731
<td class="paramkey"></td>
6733
<td class="paramtype"><a class="el" href="group__giommEnums.html#g500a44e123fd4c578f8af9ddef2f7601">FileCreateFlags</a> </td>
6734
<td class="paramname"> <em>flags</em> = <code>FILE_CREATE_NONE</code></td><td> </td>
6739
<td></td><td></td><td></td>
6743
<div class="memdoc">
6746
Starts an asynchronous replacement of the file with the given <em>contents</em>.
6748
<em>etag</em> will replace the document's current entity tag.<p>
6749
When this operation has completed, <em>slot</em> will be called and the operation can be finalized with <a class="el" href="classGio_1_1File.html#f019065c5503c7f47d778c20f8e5de32" title="Finishes an asynchronous replace of the given file .">replace_contents_finish()</a>.<p>
6750
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CANCELLED will be thrown.<p>
6751
If <em>make_backup</em> is true, this function will attempt to make a backup of the file.<p>
6752
<dl compact><dt><b>Parameters:</b></dt><dd>
6753
<table border="0" cellspacing="2" cellpadding="0">
6754
<tr><td valign="top"></td><td valign="top"><em>slot,:</em> </td><td>A callback to call when the request is satisfied. </td></tr>
6755
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>String of contents to replace the file with. </td></tr>
6756
<tr><td valign="top"></td><td valign="top"><em>etag</em> </td><td>a new entity tag for the file. </td></tr>
6757
<tr><td valign="top"></td><td valign="top"><em>make_backup</em> </td><td>true if a backup should be created. </td></tr>
6758
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>A set of FileCreateFlags. </td></tr>
6764
<a class="anchor" name="f019065c5503c7f47d778c20f8e5de32"></a><!-- doxytag: member="Gio::File::replace_contents_finish" ref="f019065c5503c7f47d778c20f8e5de32" args="(const Glib::RefPtr< AsyncResult > &result, std::string &etag)" -->
6765
<div class="memitem">
6766
<div class="memproto">
6767
<table class="memname">
6769
<td class="memname">void Gio::File::replace_contents_finish </td>
6771
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
6772
<td class="paramname"> <em>result</em>, </td>
6775
<td class="paramkey"></td>
6777
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> & </td>
6778
<td class="paramname"> <em>etag</em></td><td> </td>
6783
<td></td><td></td><td></td>
6787
<div class="memdoc">
6790
Finishes an asynchronous replace of the given file .
6792
See <a class="el" href="classGio_1_1File.html#d33b24a7942429157f47379f4353378c" title="Starts an asynchronous replacement of the file with the given contents of length...">replace_contents_async()</a>. Sets <em>new_etag</em> to the new entity tag for the document. <dl compact><dt><b>Parameters:</b></dt><dd>
6793
<table border="0" cellspacing="2" cellpadding="0">
6794
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
6795
<tr><td valign="top"></td><td valign="top"><em>new_etag</em> </td><td>A location of a new entity tag for the document. </td></tr>
6801
<a class="anchor" name="f0372ffd3f535f39b7e48c0483e4c1f4"></a><!-- doxytag: member="Gio::File::replace_contents_finish" ref="f0372ffd3f535f39b7e48c0483e4c1f4" args="(const Glib::RefPtr< AsyncResult > &result)" -->
6802
<div class="memitem">
6803
<div class="memproto">
6804
<table class="memname">
6806
<td class="memname">void Gio::File::replace_contents_finish </td>
6808
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
6809
<td class="paramname"> <em>result</em> </td>
6810
<td> ) </td>
6815
<div class="memdoc">
6818
Finishes an asynchronous replace of the given file .
6820
See <a class="el" href="classGio_1_1File.html#d33b24a7942429157f47379f4353378c" title="Starts an asynchronous replacement of the file with the given contents of length...">replace_contents_async()</a>. Sets <em>new_etag</em> to the new entity tag for the document. <dl compact><dt><b>Parameters:</b></dt><dd>
6821
<table border="0" cellspacing="2" cellpadding="0">
6822
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. for the document. </td></tr>
6826
6828
<hr><h2>Friends And Related Function Documentation</h2>
6827
6829
<a class="anchor" name="69670cdc7cf63783d6f9370dcbd7cc3d"></a><!-- doxytag: member="Gio::File::wrap" ref="69670cdc7cf63783d6f9370dcbd7cc3d" args="(GFile *object, bool take_copy=false)" -->
6828
6830
<div class="memitem">