libgnomevfsmm 2.26.0
|
00001 /* Copyright 2003, 2006 gnome-vfsmm Development Team 00002 * 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free 00015 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00016 */ 00017 00018 00019 #ifndef _LIBGNOMEVFSMM_TRANSFER_H 00020 #define _LIBGNOMEVFSMM_TRANSFER_H 00021 00022 #include <glibmm.h> 00023 00024 #include <libgnomevfsmm/enums.h> 00025 #include <libgnomevfsmm/exception.h> 00026 #include <libgnomevfsmm/uri.h> 00027 #include <libgnomevfsmm/transfer-progress.h> 00028 00029 #include <libgnomevfs/gnome-vfs-xfer.h> //For GnomeVFSXferProgressInfo 00030 00031 namespace Gnome 00032 { 00033 00034 namespace Vfs 00035 { 00036 00039 namespace Transfer 00040 { 00041 00042 typedef Glib::ListHandle<Glib::ustring> ListHandleStrings; 00043 typedef Glib::ListHandle< Glib::RefPtr<const Uri> > ListHandleUris; 00044 00046 typedef sigc::slot<bool, const ProgressInfo&> SlotProgress; 00047 00048 00049 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00050 void transfer_list(const Glib::StringArrayHandle& source_uri_list, const Glib::StringArrayHandle& target_uri_list, 00051 TransferOptions options, 00052 ErrorMode error_mode, 00053 OverwriteMode overwrite_mode, 00054 const SlotProgress& slot); 00055 #else 00056 void transfer_list(const Glib::StringArrayHandle& source_uri_list, const Glib::StringArrayHandle& target_uri_list, 00057 TransferOptions options, 00058 ErrorMode error_mode, 00059 OverwriteMode overwrite_mode, 00060 const SlotProgress& slot, 00061 std::auto_ptr<Gnome::Vfs::exception> error); 00062 #endif //GLIBMM_EXCEPTIONS_ENABLED 00063 00082 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00083 void transfer_list_uris(const ListHandleUris& source_uri_list, const ListHandleUris& target_uri_list, 00084 TransferOptions options = XFER_DEFAULT, 00085 ErrorMode error_mode = XFER_ERROR_MODE_ABORT, 00086 OverwriteMode overwrite_mode = XFER_OVERWRITE_MODE_ABORT, 00087 const SlotProgress& progress_callback = SlotProgress()); 00088 #else 00089 void transfer_list_uris(const ListHandleUris& source_uri_list, const ListHandleUris& target_uri_list, 00090 TransferOptions options, 00091 ErrorMode error_mode, 00092 OverwriteMode overwrite_mode, 00093 const SlotProgress& progress_callback, 00094 std::auto_ptr<Gnome::Vfs::exception>& error); 00095 #endif //GLIBMM_EXCEPTIONS_ENABLED 00096 00097 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00098 void transfer(const Glib::ustring& source_uri, const Glib::ustring& target_uri, 00099 TransferOptions options = XFER_DEFAULT, 00100 ErrorMode error_mode = XFER_ERROR_MODE_ABORT, 00101 OverwriteMode overwrite_mode = XFER_OVERWRITE_MODE_ABORT, 00102 const SlotProgress& progress_callback = SlotProgress()); 00103 #else 00104 void transfer(const Glib::ustring& source_uri, const Glib::ustring& target_uri, 00105 TransferOptions options, 00106 ErrorMode error_mode, 00107 OverwriteMode overwrite_mode, 00108 const SlotProgress& progress_callback, 00109 std::auto_ptr<Gnome::Vfs::exception>& error); 00110 #endif //GLIBMM_EXCEPTIONS_ENABLED 00111 00112 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00113 void transfer(const Glib::RefPtr<const Uri>& source_uri, const Glib::RefPtr<const Uri>& target_uri, 00114 TransferOptions options = XFER_DEFAULT, 00115 ErrorMode error_mode = XFER_ERROR_MODE_ABORT, 00116 OverwriteMode overwrite_mode = XFER_OVERWRITE_MODE_ABORT, 00117 const SlotProgress& progress_callback = SlotProgress()); 00118 #else 00119 void transfer(const Glib::RefPtr<const Uri>& source_uri, const Glib::RefPtr<const Uri>& target_uri, 00120 TransferOptions options, 00121 ErrorMode error_mode, 00122 OverwriteMode overwrite_mode, 00123 const SlotProgress& progress_callback, 00124 std::auto_ptr<Gnome::Vfs::exception>& error); 00125 #endif //GLIBMM_EXCEPTIONS_ENABLED 00126 00127 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00128 void remove(const Glib::ustring& source_uri, 00129 TransferOptions options = XFER_DEFAULT, 00130 ErrorMode error_mode = XFER_ERROR_MODE_ABORT, 00131 const SlotProgress& progress_callback = SlotProgress()); 00132 #else 00133 void remove(const Glib::ustring& source_uri, 00134 TransferOptions options, 00135 ErrorMode error_mode, 00136 const SlotProgress& progress_callback, 00137 std::auto_ptr<Gnome::Vfs::exception>& error); 00138 #endif //GLIBMM_EXCEPTIONS_ENABLED 00139 00140 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00141 void remove(const Glib::RefPtr<const Uri>& source_uri, 00142 TransferOptions options = XFER_DEFAULT, 00143 ErrorMode error_mode = XFER_ERROR_MODE_ABORT, 00144 const SlotProgress& progress_callback = SlotProgress()); 00145 #else 00146 void remove(const Glib::RefPtr<const Uri>& source_uri, 00147 TransferOptions options, 00148 ErrorMode error_mode, 00149 const SlotProgress& progress_callback, 00150 std::auto_ptr<Gnome::Vfs::exception>& error); 00151 #endif //GLIBMM_EXCEPTIONS_ENABLED 00152 00153 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00154 void remove_list(const Glib::StringArrayHandle& source_uri_list, 00155 TransferOptions options, 00156 ErrorMode error_mode, 00157 const SlotProgress& slot); 00158 #else 00159 void remove_list(const Glib::StringArrayHandle& source_uri_list, 00160 TransferOptions options, 00161 ErrorMode error_mode, 00162 const SlotProgress& slot, 00163 std::auto_ptr<Gnome::Vfs::exception>& error); 00164 #endif //GLIBMM_EXCEPTIONS_ENABLED 00165 00166 #ifdef GLIBMM_EXCEPTIONS_ENABLED 00167 void remove_list_uris(const ListHandleUris& source_uri_list, 00168 TransferOptions options = XFER_DEFAULT, 00169 ErrorMode error_mode = XFER_ERROR_MODE_ABORT, 00170 const SlotProgress& progress_callback = SlotProgress()); 00171 #else 00172 void remove_list_uris(const ListHandleUris& source_uri_list, 00173 TransferOptions options, 00174 ErrorMode error_mode, 00175 const SlotProgress& progress_callbacki, 00176 std::auto_ptr<Gnome::Vfs::exception>& error); 00177 #endif //GLIBMM_EXCEPTIONS_ENABLED 00178 00179 } // namespace Transfer 00180 } // namespace Vfs 00181 } // namespace Gnome 00182 00183 #endif /* _LIBGNOMEVFSMM_TRANSFER_H */