#include <async-handle.h>
Public Types | |
typedef sigc::slot< void, const Async::Handle &, Result > | SlotOpen |
typedef SlotOpen | SlotClose |
typedef sigc::slot< void, const Async::Handle &, const Glib::RefPtr< Glib::IOChannel > &, Result > | SlotOpenAsChannel |
typedef SlotOpenAsChannel | SlotCreateAsChannel |
typedef sigc::slot< void, const Async::Handle &, Result, gpointer, FileSize, FileSize > | SlotRead |
typedef sigc::slot< void, const Async::Handle &, Result, gconstpointer, FileSize, FileSize > | SlotWrite |
typedef sigc::slot< void, const Async::Handle &, ListHandleFileInfoResults > | SlotGetFileInfo |
typedef sigc::slot< void, const Async::Handle &, Result, const Glib::RefPtr< FileInfo > & > | SlotSetFileInfo |
typedef sigc::slot< void, const Async::Handle &, Result, Glib::ListHandle< Glib::RefPtr< FileInfo > >, int > | SlotLoadDirectory |
typedef sigc::slot< int, const Async::Handle &, Transfer::ProgressInfo & > | SlotTransferProgress |
typedef sigc::slot< void, const Async::Handle &, ListHandleFindDirectoryResult > | SlotFindDirectory |
typedef sigc::slot< void, const Async::Handle &, Result, gpointer > | SlotFileControl |
Public Member Functions | |
Handle () | |
~Handle () | |
void | open (const Glib::ustring &text_uri, OpenMode open_mode, int priority, const SlotOpen &slot) |
void | open (const Glib::RefPtr< Uri > &uri, OpenMode open_mode, int priority, const SlotOpen &slot) |
void | open_as_channel (const Glib::ustring &text_uri, OpenMode open_mode, guint advised_block_size, int priority, const SlotOpenAsChannel &slot) |
void | open_as_channel (const Glib::RefPtr< Uri > &uri, OpenMode open_mode, guint advised_block_size, int priority, const SlotOpenAsChannel &slot) |
void | create (const Glib::ustring &text_uri, OpenMode open_mode, bool exclusive, guint perm, int priority, const SlotOpen &slot) |
void | create (const Glib::RefPtr< Uri > &uri, OpenMode open_mode, bool exclusive, guint perm, int priority, const SlotOpen &slot) |
void | create_symbolic_link (const Glib::RefPtr< Uri > &uri, const Glib::ustring &uri_reference, int priority, const SlotOpen &slot) |
void | create_as_channel (const Glib::ustring &text_uri, OpenMode open_mode, bool exclusive, guint perm, int priority, const SlotCreateAsChannel &slot) |
void | close (const SlotClose &slot) |
void | read (gpointer buffer, guint bytes, const SlotRead &slot) |
void | write (gconstpointer buffer, guint bytes, const SlotWrite &slot) |
void | get_file_info (const ListHandleUris &uri_list, FileInfoOptions options, int priority, const SlotGetFileInfo &slot) const |
void | set_file_info (const Glib::RefPtr< Uri > &uri, const Glib::RefPtr< FileInfo > &info, SetFileInfoMask mask, FileInfoOptions options, int priority, const SlotSetFileInfo &slot) |
void | load_directory (const Glib::ustring &text_uri, FileInfoOptions options, guint items_per_notification, int priority, const SlotLoadDirectory &slot) |
void | load_directory (const Glib::RefPtr< Uri > &uri, FileInfoOptions options, guint items_per_notification, int priority, const SlotLoadDirectory &slot) |
void | transfer (const ListHandleUris &source_uri_list, const ListHandleUris &target_uri_list, TransferOptions xfer_options, ErrorMode error_mode, OverwriteMode overwrite_mode, int priority, const SlotTransferProgress &progress_update_callback, const Transfer::SlotProgress &progress_sync_callback) |
void | find_directory (const ListHandleUris &near_uri_list, FindDirectoryKind kind, bool create_if_needed, bool find_if_needed, guint permissions, int priority, const SlotFindDirectory &slot) |
void | file_control (const Glib::ustring &operation, gpointer operation_data, const SlotFileControl &slot) |
void | cancel () |
Cancel an asynchronous operation and close all its callbacks. | |
GnomeVFSAsyncHandle * | gobj () |
const GnomeVFSAsyncHandle * | gobj () const |
GnomeVFSAsyncHandle ** | gobj_addr () |
Protected Attributes | |
GnomeVFSAsyncHandle * | gobject_ |
typedef sigc::slot<void, const Async::Handle&, Result, gpointer> Gnome::Vfs::Async::Handle::SlotFileControl |
typedef sigc::slot<void, const Async::Handle&, ListHandleFindDirectoryResult > Gnome::Vfs::Async::Handle::SlotFindDirectory |
typedef sigc::slot<void, const Async::Handle&, ListHandleFileInfoResults > Gnome::Vfs::Async::Handle::SlotGetFileInfo |
typedef sigc::slot<void, const Async::Handle&, Result, Glib::ListHandle<Glib::RefPtr<FileInfo> >, int> Gnome::Vfs::Async::Handle::SlotLoadDirectory |
typedef sigc::slot<void, const Async::Handle&, Result> Gnome::Vfs::Async::Handle::SlotOpen |
typedef sigc::slot<void, const Async::Handle&, const Glib::RefPtr<Glib::IOChannel>&, Result> Gnome::Vfs::Async::Handle::SlotOpenAsChannel |
typedef sigc::slot<void, const Async::Handle&, Result, gpointer, FileSize, FileSize> Gnome::Vfs::Async::Handle::SlotRead |
typedef sigc::slot<void, const Async::Handle&, Result, const Glib::RefPtr<FileInfo>& > Gnome::Vfs::Async::Handle::SlotSetFileInfo |
typedef sigc::slot<int, const Async::Handle&, Transfer::ProgressInfo&> Gnome::Vfs::Async::Handle::SlotTransferProgress |
typedef sigc::slot<void, const Async::Handle&, Result, gconstpointer, FileSize, FileSize> Gnome::Vfs::Async::Handle::SlotWrite |
Gnome::Vfs::Async::Handle::Handle | ( | ) |
Gnome::Vfs::Async::Handle::~Handle | ( | ) |
void Gnome::Vfs::Async::Handle::cancel | ( | ) |
Cancel an asynchronous operation and close all its callbacks.
Its possible to still receive another call or two on the callback.
handle | Handle of the async operation to be cancelled. |
void Gnome::Vfs::Async::Handle::close | ( | const SlotClose & | slot | ) |
void Gnome::Vfs::Async::Handle::create | ( | const Glib::RefPtr< Uri > & | uri, | |
OpenMode | open_mode, | |||
bool | exclusive, | |||
guint | perm, | |||
int | priority, | |||
const SlotOpen & | slot | |||
) |
void Gnome::Vfs::Async::Handle::create | ( | const Glib::ustring & | text_uri, | |
OpenMode | open_mode, | |||
bool | exclusive, | |||
guint | perm, | |||
int | priority, | |||
const SlotOpen & | slot | |||
) |
void Gnome::Vfs::Async::Handle::create_as_channel | ( | const Glib::ustring & | text_uri, | |
OpenMode | open_mode, | |||
bool | exclusive, | |||
guint | perm, | |||
int | priority, | |||
const SlotCreateAsChannel & | slot | |||
) |
void Gnome::Vfs::Async::Handle::create_symbolic_link | ( | const Glib::RefPtr< Uri > & | uri, | |
const Glib::ustring & | uri_reference, | |||
int | priority, | |||
const SlotOpen & | slot | |||
) |
void Gnome::Vfs::Async::Handle::file_control | ( | const Glib::ustring & | operation, | |
gpointer | operation_data, | |||
const SlotFileControl & | slot | |||
) |
void Gnome::Vfs::Async::Handle::find_directory | ( | const ListHandleUris & | near_uri_list, | |
FindDirectoryKind | kind, | |||
bool | create_if_needed, | |||
bool | find_if_needed, | |||
guint | permissions, | |||
int | priority, | |||
const SlotFindDirectory & | slot | |||
) |
void Gnome::Vfs::Async::Handle::get_file_info | ( | const ListHandleUris & | uri_list, | |
FileInfoOptions | options, | |||
int | priority, | |||
const SlotGetFileInfo & | slot | |||
) | const |
const GnomeVFSAsyncHandle* Gnome::Vfs::Async::Handle::gobj | ( | ) | const [inline] |
GnomeVFSAsyncHandle* Gnome::Vfs::Async::Handle::gobj | ( | ) | [inline] |
GnomeVFSAsyncHandle** Gnome::Vfs::Async::Handle::gobj_addr | ( | ) | [inline] |
void Gnome::Vfs::Async::Handle::load_directory | ( | const Glib::RefPtr< Uri > & | uri, | |
FileInfoOptions | options, | |||
guint | items_per_notification, | |||
int | priority, | |||
const SlotLoadDirectory & | slot | |||
) |
void Gnome::Vfs::Async::Handle::load_directory | ( | const Glib::ustring & | text_uri, | |
FileInfoOptions | options, | |||
guint | items_per_notification, | |||
int | priority, | |||
const SlotLoadDirectory & | slot | |||
) |
void Gnome::Vfs::Async::Handle::open | ( | const Glib::RefPtr< Uri > & | uri, | |
OpenMode | open_mode, | |||
int | priority, | |||
const SlotOpen & | slot | |||
) |
void Gnome::Vfs::Async::Handle::open | ( | const Glib::ustring & | text_uri, | |
OpenMode | open_mode, | |||
int | priority, | |||
const SlotOpen & | slot | |||
) |
void Gnome::Vfs::Async::Handle::open_as_channel | ( | const Glib::RefPtr< Uri > & | uri, | |
OpenMode | open_mode, | |||
guint | advised_block_size, | |||
int | priority, | |||
const SlotOpenAsChannel & | slot | |||
) |
void Gnome::Vfs::Async::Handle::open_as_channel | ( | const Glib::ustring & | text_uri, | |
OpenMode | open_mode, | |||
guint | advised_block_size, | |||
int | priority, | |||
const SlotOpenAsChannel & | slot | |||
) |
void Gnome::Vfs::Async::Handle::read | ( | gpointer | buffer, | |
guint | bytes, | |||
const SlotRead & | slot | |||
) |
void Gnome::Vfs::Async::Handle::set_file_info | ( | const Glib::RefPtr< Uri > & | uri, | |
const Glib::RefPtr< FileInfo > & | info, | |||
SetFileInfoMask | mask, | |||
FileInfoOptions | options, | |||
int | priority, | |||
const SlotSetFileInfo & | slot | |||
) |
void Gnome::Vfs::Async::Handle::transfer | ( | const ListHandleUris & | source_uri_list, | |
const ListHandleUris & | target_uri_list, | |||
TransferOptions | xfer_options, | |||
ErrorMode | error_mode, | |||
OverwriteMode | overwrite_mode, | |||
int | priority, | |||
const SlotTransferProgress & | progress_update_callback, | |||
const Transfer::SlotProgress & | progress_sync_callback | |||
) |
void Gnome::Vfs::Async::Handle::write | ( | gconstpointer | buffer, | |
guint | bytes, | |||
const SlotWrite & | slot | |||
) |
GnomeVFSAsyncHandle* Gnome::Vfs::Async::Handle::gobject_ [protected] |