3 #ifndef _LIBGNOMEVFSMM_FILE_INFO_H 4 #define _LIBGNOMEVFSMM_FILE_INFO_H 45 #ifndef DOXYGEN_SHOULD_SKIP_THIS 47 typedef GnomeVFSFileInfo BaseObjectType;
50 static Glib::RefPtr<FileInfo>
create();
57 GnomeVFSFileInfo*
gobj();
60 const GnomeVFSFileInfo*
gobj()
const;
68 void operator delete(
void*, size_t);
187 #ifndef DOXYGEN_SHOULD_SKIP_THIS 190 RefPtr<Gnome::Vfs::FileInfo>
wrap(GnomeVFSFileInfo*
object,
bool take_copy);
192 namespace Container_Helpers
199 struct TypeTraits< Glib::RefPtr<Gnome::Vfs::FileInfo> >
201 typedef Glib::RefPtr<Gnome::Vfs::FileInfo> CppType;
202 typedef Gnome::Vfs::FileInfo::BaseObjectType * CType;
203 typedef Gnome::Vfs::FileInfo::BaseObjectType * CTypeNonConst;
205 static CType to_c_type (
const CppType& ptr) {
return Glib::unwrap(ptr); }
206 static CType to_c_type (CType ptr) {
return ptr; }
207 static CppType to_cpp_type (CType ptr)
209 return Glib::wrap(ptr,
true);
212 static void release_c_type (CType ptr)
214 gnome_vfs_file_info_unref(const_cast<CTypeNonConst>(ptr));
220 #endif // DOXYGEN_SHOULD_SKIP_THIS 260 Glib::RefPtr<Gnome::Vfs::FileInfo>
wrap(GnomeVFSFileInfo*
object,
bool take_copy =
false);
std::string get_symlink_name() const
Get the symlink name of this FileInfo.
FileSize get_size() const
Get the size of this FileInfo.
guint get_io_block_size() const
Get the I/O block size of this FileInfo.
Definition: address.h:119
time_t get_access_time() const
Get the access time of this FileInfo.
FilePermissions get_permissions() const
Get the permissions of this FileInfo.
bool is_symlink() const
Find out if this FileInfo is a symbolic link.
guint get_uid() const
Get the user id of this FileInfo.
std::string get_name() const
Get the name property of this FileInfo.
FileType get_type() const
Get the file type of this FileInfo.
static Glib::RefPtr< FileInfo > create()
Glib::RefPtr< FileInfo > duplicate()
Duplicates orig and returns it.
guint get_gid() const
Get the group id of this FileInfo.
time_t get_modification_time() const
Get the modification time of this FileInfo.
guint get_link_count() const
Get the link count of this FileInfo.
Glib::ustring get_mime_type() const
Retrieve MIME type from this object.
Glib::RefPtr< Gnome::Vfs::FileInfo > wrap(GnomeVFSFileInfo *object, bool take_copy=false)
A Glib::wrap() method for this object.
FileSize get_block_count() const
Get the size of this FileInfo.
GnomeVFSFileSize FileSize
Definition: types.h:29
GnomeVFSFileInfo * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for unrefing it...
FileFlags get_flags() const
Get the special flags of this FileInfo.
Definition: file-info.h:42
bool operator==(const FileInfo &lhs, const FileInfo &rhs)
void clear()
Clears the attributes so they are ready to accept new data.
GnomeVFSFileInfo * gobj()
Provides access to the underlying C instance.
bool operator!=(const FileInfo &lhs, const FileInfo &rhs)
time_t get_creation_time() const
Get the creation time of this FileInfo.