Gnome::Vfs::Transfer Namespace Reference

These functions can be used to transfer files from one URI to another. More...


Classes

class  ProgressInfo

Typedefs

typedef Glib::ListHandle<
Glib::ustring > 
ListHandleStrings
typedef Glib::ListHandle<
Glib::RefPtr< const Uri > > 
ListHandleUris
typedef sigc::slot< bool,
const ProgressInfo & > 
SlotProgress
 For instance, int on_transfer_progress(GnomeVFSXferProgressInfo* info);.

Functions

void transfer_list (const Glib::StringArrayHandle &source_uri_list, const Glib::StringArrayHandle &target_uri_list, TransferOptions options, ErrorMode error_mode, OverwriteMode overwrite_mode, const SlotProgress &slot, std::auto_ptr< Gnome::Vfs::exception > error)
void transfer_list_uris (const ListHandleUris &source_uri_list, const ListHandleUris &target_uri_list, TransferOptions options, ErrorMode error_mode, OverwriteMode overwrite_mode, const SlotProgress &progress_callback, std::auto_ptr< Gnome::Vfs::exception > &error)
 : A list of uris (ie file;//) : A List of uris : These are options you wish to set for the transfer.
void transfer (const Glib::ustring &source_uri, const Glib::ustring &target_uri, TransferOptions options, ErrorMode error_mode, OverwriteMode overwrite_mode, const SlotProgress &progress_callback, std::auto_ptr< Gnome::Vfs::exception > &error)
void transfer (const Glib::RefPtr< const Uri > &source_uri, const Glib::RefPtr< const Uri > &target_uri, TransferOptions options, ErrorMode error_mode, OverwriteMode overwrite_mode, const SlotProgress &progress_callback, std::auto_ptr< Gnome::Vfs::exception > &error)
void remove (const Glib::ustring &source_uri, TransferOptions options, ErrorMode error_mode, const SlotProgress &progress_callback, std::auto_ptr< Gnome::Vfs::exception > &error)
void remove (const Glib::RefPtr< const Uri > &source_uri, TransferOptions options, ErrorMode error_mode, const SlotProgress &progress_callback, std::auto_ptr< Gnome::Vfs::exception > &error)
void remove_list (const Glib::StringArrayHandle &source_uri_list, TransferOptions options=XFER_DEFAULT, ErrorMode error_mode=XFER_ERROR_MODE_ABORT, const SlotProgress &progress_callback=SlotProgress())
void remove_list_uris (const ListHandleUris &source_uri_list, TransferOptions options, ErrorMode error_mode, const SlotProgress &progress_callbacki, std::auto_ptr< Gnome::Vfs::exception > &error)


Detailed Description

These functions can be used to transfer files from one URI to another.

Typedef Documentation

typedef Glib::ListHandle<Glib::ustring> Gnome::Vfs::Transfer::ListHandleStrings

typedef Glib::ListHandle< Glib::RefPtr<const Uri> > Gnome::Vfs::Transfer::ListHandleUris

typedef sigc::slot<bool, const ProgressInfo&> Gnome::Vfs::Transfer::SlotProgress

For instance, int on_transfer_progress(GnomeVFSXferProgressInfo* info);.


Function Documentation

void Gnome::Vfs::Transfer::remove ( const Glib::RefPtr< const Uri > &  source_uri,
TransferOptions  options,
ErrorMode  error_mode,
const SlotProgress &  progress_callback,
std::auto_ptr< Gnome::Vfs::exception > &  error 
)

void Gnome::Vfs::Transfer::remove ( const Glib::ustring &  source_uri,
TransferOptions  options,
ErrorMode  error_mode,
const SlotProgress &  progress_callback,
std::auto_ptr< Gnome::Vfs::exception > &  error 
)

void Gnome::Vfs::Transfer::remove_list ( const Glib::StringArrayHandle &  source_uri_list,
TransferOptions  options = XFER_DEFAULT,
ErrorMode  error_mode = XFER_ERROR_MODE_ABORT,
const SlotProgress &  progress_callback = SlotProgress() 
)

void Gnome::Vfs::Transfer::remove_list_uris ( const ListHandleUris &  source_uri_list,
TransferOptions  options,
ErrorMode  error_mode,
const SlotProgress &  progress_callbacki,
std::auto_ptr< Gnome::Vfs::exception > &  error 
)

void Gnome::Vfs::Transfer::transfer ( const Glib::RefPtr< const Uri > &  source_uri,
const Glib::RefPtr< const Uri > &  target_uri,
TransferOptions  options,
ErrorMode  error_mode,
OverwriteMode  overwrite_mode,
const SlotProgress &  progress_callback,
std::auto_ptr< Gnome::Vfs::exception > &  error 
)

void Gnome::Vfs::Transfer::transfer ( const Glib::ustring &  source_uri,
const Glib::ustring &  target_uri,
TransferOptions  options,
ErrorMode  error_mode,
OverwriteMode  overwrite_mode,
const SlotProgress &  progress_callback,
std::auto_ptr< Gnome::Vfs::exception > &  error 
)

void Gnome::Vfs::Transfer::transfer_list ( const Glib::StringArrayHandle &  source_uri_list,
const Glib::StringArrayHandle &  target_uri_list,
TransferOptions  options,
ErrorMode  error_mode,
OverwriteMode  overwrite_mode,
const SlotProgress &  slot,
std::auto_ptr< Gnome::Vfs::exception error 
)

void Gnome::Vfs::Transfer::transfer_list_uris ( const ListHandleUris &  source_uri_list,
const ListHandleUris &  target_uri_list,
TransferOptions  options,
ErrorMode  error_mode,
OverwriteMode  overwrite_mode,
const SlotProgress &  progress_callback,
std::auto_ptr< Gnome::Vfs::exception > &  error 
)

: A list of uris (ie file;//) : A List of uris : These are options you wish to set for the transfer.

For instance by setting the xfer behavior you can either make a copy or a move. : Decide how to behave if the xfer is interrupted. For instance you could set your application to return an error code in case of an interuption. : How to react if a file your copying is being overwritten. : This is used to monitor the progress of a transfer. Common use would be to check to see if the transfer is asking for permission to overwrite a file.

This function will transfer multiple files to multiple targets. Given a a source uri(s) and a destination uri(s). There are a list of options that your application can use to control how the transfer is done.


Generated on Sat Mar 10 05:20:43 2007 for libgnomevfsmm by  doxygen 1.5.1