Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

transfer.h File Reference

#include <glibmm.h>
#include <libgnomevfsmm/enums.h>
#include <libgnomevfsmm/exception.h>
#include <libgnomevfsmm/uri.h>
#include <libgnomevfsmm/transfer-progress.h>
#include <libgnomevfs/gnome-vfs-xfer.h>

Go to the source code of this file.

Namespaces

namespace  Gnome
namespace  Gnome::Vfs
namespace  Gnome::Vfs::Transfer

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)
void transfer_list_uris (const ListHandleUris &source_uri_list, const ListHandleUris &target_uri_list, TransferOptions options=XFER_DEFAULT, ErrorMode error_mode=XFER_ERROR_MODE_ABORT, OverwriteMode overwrite_mode=XFER_OVERWRITE_MODE_ABORT, const SlotProgress &progress_callback=SlotProgress())
 : 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=XFER_DEFAULT, ErrorMode error_mode=XFER_ERROR_MODE_ABORT, OverwriteMode overwrite_mode=XFER_OVERWRITE_MODE_ABORT, const SlotProgress &progress_callback=SlotProgress())
void transfer (const Glib::RefPtr< const Uri > &source_uri, const Glib::RefPtr< const Uri > &target_uri, TransferOptions options=XFER_DEFAULT, ErrorMode error_mode=XFER_ERROR_MODE_ABORT, OverwriteMode overwrite_mode=XFER_OVERWRITE_MODE_ABORT, const SlotProgress &progress_callback=SlotProgress())
void remove (const Glib::ustring &source_uri, TransferOptions options=XFER_DEFAULT, ErrorMode error_mode=XFER_ERROR_MODE_ABORT, const SlotProgress &progress_callback=SlotProgress())
void remove (const Glib::RefPtr< const Uri > &source_uri, TransferOptions options=XFER_DEFAULT, ErrorMode error_mode=XFER_ERROR_MODE_ABORT, const SlotProgress &progress_callback=SlotProgress())
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=XFER_DEFAULT, ErrorMode error_mode=XFER_ERROR_MODE_ABORT, const SlotProgress &progress_callback=SlotProgress())


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 remove const Glib::RefPtr< const Uri > &  source_uri,
TransferOptions  options = XFER_DEFAULT,
ErrorMode  error_mode = XFER_ERROR_MODE_ABORT,
const SlotProgress progress_callback = SlotProgress()
 

void remove const Glib::ustring &  source_uri,
TransferOptions  options = XFER_DEFAULT,
ErrorMode  error_mode = XFER_ERROR_MODE_ABORT,
const SlotProgress progress_callback = SlotProgress()
 

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 = XFER_DEFAULT,
ErrorMode  error_mode = XFER_ERROR_MODE_ABORT,
const SlotProgress progress_callback = SlotProgress()
 

void transfer const Glib::RefPtr< const Uri > &  source_uri,
const Glib::RefPtr< const Uri > &  target_uri,
TransferOptions  options = XFER_DEFAULT,
ErrorMode  error_mode = XFER_ERROR_MODE_ABORT,
OverwriteMode  overwrite_mode = XFER_OVERWRITE_MODE_ABORT,
const SlotProgress progress_callback = SlotProgress()
 

void transfer const Glib::ustring &  source_uri,
const Glib::ustring &  target_uri,
TransferOptions  options = XFER_DEFAULT,
ErrorMode  error_mode = XFER_ERROR_MODE_ABORT,
OverwriteMode  overwrite_mode = XFER_OVERWRITE_MODE_ABORT,
const SlotProgress progress_callback = SlotProgress()
 

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
 

void transfer_list_uris const ListHandleUris source_uri_list,
const ListHandleUris target_uri_list,
TransferOptions  options = XFER_DEFAULT,
ErrorMode  error_mode = XFER_ERROR_MODE_ABORT,
OverwriteMode  overwrite_mode = XFER_OVERWRITE_MODE_ABORT,
const SlotProgress progress_callback = SlotProgress()
 

: 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 Wed Aug 17 17:31:33 2005 for libgnomevfsmm by  doxygen 1.3.9.1