libgnomevfsmm 2.26.0
Gnome::Vfs::Handle Class Reference

#include <handle.h>

Public Member Functions

 Handle ()
 
virtual ~Handle ()
 
void open (const Glib::ustring &text_uri, OpenMode open_mode) throw (exception)
 
void open (const Glib::RefPtr< const Uri > &uri, OpenMode open_mode) throw (exception)
 
void create (const Glib::ustring &text_uri, OpenMode open_mode, bool exclusive, guint permissions) throw (exception)
 
void create (const Glib::RefPtr< const Uri > &uri, OpenMode open_mode, bool exclusive, guint permissions) throw (exception)
 
void close () throw (exception)
 
FileSize read (gpointer buffer, FileSize bytes) throw (exception)
 
FileSize write (gconstpointer buffer, FileSize bytes) throw (exception)
 
void seek (SeekPosition whence, FileOffset offset) throw (exception)
 
FileSize tell () throw (exception)
 
Glib::RefPtr< FileInfoget_file_info (FileInfoOptions options=FILE_INFO_DEFAULT) const throw (exception)
 
void truncate (FileSize length) throw (exception)
 
bool uri_exists (const Glib::RefPtr< const Uri > &uri) throw (exception)
 
void file_control (const Glib::ustring &operation, gpointer operation_data) throw (exception)
 
GnomeVFSHandle * gobj ()
 
const GnomeVFSHandle * gobj () const
 

Static Public Member Functions

static Glib::RefPtr< FileInfoget_file_info (const Glib::ustring &text_uri, FileInfoOptions options=FILE_INFO_DEFAULT) throw (exception)
 
static void truncate (const Glib::ustring &text_uri, FileSize length) throw (exception)
 
static void truncate (const Glib::RefPtr< const Uri > &uri, FileSize length) throw (exception)
 
static void make_directory (const Glib::ustring &text_uri, guint permissions) throw (exception)
 
static void make_directory (const Glib::RefPtr< const Uri > &uri, guint permissions) throw (exception)
 
static void remove_directory (const Glib::ustring &text_uri) throw (exception)
 
static void remove_directory (const Glib::RefPtr< const Uri > &uri) throw (exception)
 
static void unlink (const Glib::ustring &text_uri) throw (exception)
 
static void unlink (const Glib::RefPtr< const Uri > &uri) throw (exception)
 
static void move (const Glib::ustring &old_text_uri, const Glib::ustring &new_text_uri, bool force_replace) throw (exception)
 
static void move (const Glib::RefPtr< const Uri > &old_uri, const Glib::RefPtr< const Uri > &new_uri, bool force_replace) throw (exception)
 
static bool check_same_fs (const Glib::ustring &source, const Glib::ustring &target) throw (exception)
 
static bool check_same_fs (const Glib::RefPtr< const Uri > &source, const Glib::RefPtr< const Uri > &target) throw (exception)
 
static void set_file_info (const Glib::ustring &text_uri, const Glib::RefPtr< const FileInfo > &info, SetFileInfoMask mask) throw (exception)
 
static void set_file_info (const Glib::RefPtr< const Uri > &uri, const Glib::RefPtr< const FileInfo > &info, SetFileInfoMask mask) throw (exception)
 

Protected Attributes

GnomeVFSHandle * gobj_
 

Constructor & Destructor Documentation

◆ Handle()

Gnome::Vfs::Handle::Handle ( )

◆ ~Handle()

virtual Gnome::Vfs::Handle::~Handle ( )
virtual

Member Function Documentation

◆ check_same_fs() [1/2]

static bool Gnome::Vfs::Handle::check_same_fs ( const Glib::RefPtr< const Uri > & source,
const Glib::RefPtr< const Uri > & target )
throw (exception )
static

References check_same_fs().

◆ check_same_fs() [2/2]

static bool Gnome::Vfs::Handle::check_same_fs ( const Glib::ustring & source,
const Glib::ustring & target )
throw (exception )
static

References check_same_fs().

Referenced by check_same_fs(), and check_same_fs().

◆ close()

void Gnome::Vfs::Handle::close ( )
throw (exception )

◆ create() [1/2]

void Gnome::Vfs::Handle::create ( const Glib::RefPtr< const Uri > & uri,
OpenMode open_mode,
bool exclusive,
guint permissions )
throw (exception )

◆ create() [2/2]

void Gnome::Vfs::Handle::create ( const Glib::ustring & text_uri,
OpenMode open_mode,
bool exclusive,
guint permissions )
throw (exception )

◆ file_control()

void Gnome::Vfs::Handle::file_control ( const Glib::ustring & operation,
gpointer operation_data )
throw (exception )

References file_control().

Referenced by file_control().

◆ get_file_info() [1/2]

static Glib::RefPtr< FileInfo > Gnome::Vfs::Handle::get_file_info ( const Glib::ustring & text_uri,
FileInfoOptions options = FILE_INFO_DEFAULT )
throw (exception )
static

◆ get_file_info() [2/2]

Glib::RefPtr< FileInfo > Gnome::Vfs::Handle::get_file_info ( FileInfoOptions options = FILE_INFO_DEFAULT) const
throw (exception )

◆ gobj() [1/2]

GnomeVFSHandle * Gnome::Vfs::Handle::gobj ( )

◆ gobj() [2/2]

const GnomeVFSHandle * Gnome::Vfs::Handle::gobj ( ) const

◆ make_directory() [1/2]

static void Gnome::Vfs::Handle::make_directory ( const Glib::RefPtr< const Uri > & uri,
guint permissions )
throw (exception )
static

References make_directory().

◆ make_directory() [2/2]

static void Gnome::Vfs::Handle::make_directory ( const Glib::ustring & text_uri,
guint permissions )
throw (exception )
static

References make_directory().

Referenced by make_directory(), and make_directory().

◆ move() [1/2]

static void Gnome::Vfs::Handle::move ( const Glib::RefPtr< const Uri > & old_uri,
const Glib::RefPtr< const Uri > & new_uri,
bool force_replace )
throw (exception )
static

References move().

◆ move() [2/2]

static void Gnome::Vfs::Handle::move ( const Glib::ustring & old_text_uri,
const Glib::ustring & new_text_uri,
bool force_replace )
throw (exception )
static

References move().

Referenced by move(), and move().

◆ open() [1/2]

void Gnome::Vfs::Handle::open ( const Glib::RefPtr< const Uri > & uri,
OpenMode open_mode )
throw (exception )

◆ open() [2/2]

void Gnome::Vfs::Handle::open ( const Glib::ustring & text_uri,
OpenMode open_mode )
throw (exception )

◆ read()

FileSize Gnome::Vfs::Handle::read ( gpointer buffer,
FileSize bytes )
throw (exception )

References read().

Referenced by read().

◆ remove_directory() [1/2]

static void Gnome::Vfs::Handle::remove_directory ( const Glib::RefPtr< const Uri > & uri)
throw (exception )
static

References remove_directory().

◆ remove_directory() [2/2]

static void Gnome::Vfs::Handle::remove_directory ( const Glib::ustring & text_uri)
throw (exception )
static

References remove_directory().

Referenced by remove_directory(), and remove_directory().

◆ seek()

void Gnome::Vfs::Handle::seek ( SeekPosition whence,
FileOffset offset )
throw (exception )

References seek().

Referenced by seek().

◆ set_file_info() [1/2]

static void Gnome::Vfs::Handle::set_file_info ( const Glib::RefPtr< const Uri > & uri,
const Glib::RefPtr< const FileInfo > & info,
SetFileInfoMask mask )
throw (exception )
static

References set_file_info().

◆ set_file_info() [2/2]

static void Gnome::Vfs::Handle::set_file_info ( const Glib::ustring & text_uri,
const Glib::RefPtr< const FileInfo > & info,
SetFileInfoMask mask )
throw (exception )
static

References set_file_info().

Referenced by set_file_info(), and set_file_info().

◆ tell()

FileSize Gnome::Vfs::Handle::tell ( )
throw (exception )

References tell().

Referenced by tell().

◆ truncate() [1/3]

static void Gnome::Vfs::Handle::truncate ( const Glib::RefPtr< const Uri > & uri,
FileSize length )
throw (exception )
static

References truncate().

◆ truncate() [2/3]

static void Gnome::Vfs::Handle::truncate ( const Glib::ustring & text_uri,
FileSize length )
throw (exception )
static

References truncate().

Referenced by truncate(), truncate(), and truncate().

◆ truncate() [3/3]

void Gnome::Vfs::Handle::truncate ( FileSize length)
throw (exception )

References truncate().

◆ unlink() [1/2]

static void Gnome::Vfs::Handle::unlink ( const Glib::RefPtr< const Uri > & uri)
throw (exception )
static

References unlink().

◆ unlink() [2/2]

static void Gnome::Vfs::Handle::unlink ( const Glib::ustring & text_uri)
throw (exception )
static

References unlink().

Referenced by unlink(), and unlink().

◆ uri_exists()

bool Gnome::Vfs::Handle::uri_exists ( const Glib::RefPtr< const Uri > & uri)
throw (exception )

References uri_exists().

Referenced by uri_exists().

◆ write()

FileSize Gnome::Vfs::Handle::write ( gconstpointer buffer,
FileSize bytes )
throw (exception )

References write().

Referenced by write().

Member Data Documentation

◆ gobj_

GnomeVFSHandle* Gnome::Vfs::Handle::gobj_
protected

The documentation for this class was generated from the following file: