#include <file-info.h>
◆ FileInfo()
Gnome::Vfs::FileInfo::FileInfo |
( |
| ) |
|
|
protected |
◆ clear()
void Gnome::Vfs::FileInfo::clear |
( |
| ) |
|
Clears the attributes so they are ready to accept new data.
◆ create()
static Glib::RefPtr<FileInfo> Gnome::Vfs::FileInfo::create |
( |
| ) |
|
|
static |
◆ duplicate()
Glib::RefPtr<FileInfo> Gnome::Vfs::FileInfo::duplicate |
( |
| ) |
|
Duplicates orig and returns it.
- Returns
- A new file information struct that duplicates the information in orig.
◆ get_access_time()
time_t Gnome::Vfs::FileInfo::get_access_time |
( |
| ) |
const |
Get the access time of this FileInfo.
- Returns
- The time.
◆ get_block_count()
FileSize Gnome::Vfs::FileInfo::get_block_count |
( |
| ) |
const |
Get the size of this FileInfo.
This is the size of the file measured in units of 512-byte blocks.
- Returns
- The size.
◆ get_creation_time()
time_t Gnome::Vfs::FileInfo::get_creation_time |
( |
| ) |
const |
Get the creation time of this FileInfo.
- Returns
- The time.
◆ get_flags()
FileFlags Gnome::Vfs::FileInfo::get_flags |
( |
| ) |
const |
Get the special flags of this FileInfo.
- Returns
- A FileFlags representing the special flags.
◆ get_gid()
guint Gnome::Vfs::FileInfo::get_gid |
( |
| ) |
const |
Get the group id of this FileInfo.
- Returns
- The gid.
◆ get_io_block_size()
guint Gnome::Vfs::FileInfo::get_io_block_size |
( |
| ) |
const |
Get the I/O block size of this FileInfo.
This is used to determine the optimal block size for reading/writing the file.
- Returns
- The block size.
◆ get_link_count()
guint Gnome::Vfs::FileInfo::get_link_count |
( |
| ) |
const |
Get the link count of this FileInfo.
- Returns
- The number of links.
◆ get_mime_type()
Glib::ustring Gnome::Vfs::FileInfo::get_mime_type |
( |
| ) |
const |
Retrieve MIME type from this object.
- Returns
- A pointer to a string representing the MIME type.
◆ get_modification_time()
time_t Gnome::Vfs::FileInfo::get_modification_time |
( |
| ) |
const |
Get the modification time of this FileInfo.
- Returns
- The time.
◆ get_name()
std::string Gnome::Vfs::FileInfo::get_name |
( |
| ) |
const |
Get the name property of this FileInfo.
- Returns
- A string containing the name.
◆ get_permissions()
Get the permissions of this FileInfo.
- Returns
- A FilePermissions representing the permissions.
◆ get_size()
FileSize Gnome::Vfs::FileInfo::get_size |
( |
| ) |
const |
Get the size of this FileInfo.
This is the size of the file in bytes.
- Returns
- The size.
◆ get_symlink_name()
std::string Gnome::Vfs::FileInfo::get_symlink_name |
( |
| ) |
const |
◆ get_type()
FileType Gnome::Vfs::FileInfo::get_type |
( |
| ) |
const |
Get the file type of this FileInfo.
- Returns
- A FileType representing the file type.
◆ get_uid()
guint Gnome::Vfs::FileInfo::get_uid |
( |
| ) |
const |
Get the user id of this FileInfo.
- Returns
- The uid.
◆ gobj() [1/2]
GnomeVFSFileInfo* Gnome::Vfs::FileInfo::gobj |
( |
| ) |
|
Provides access to the underlying C instance.
◆ gobj() [2/2]
const GnomeVFSFileInfo* Gnome::Vfs::FileInfo::gobj |
( |
| ) |
const |
Provides access to the underlying C instance.
◆ gobj_copy()
GnomeVFSFileInfo* Gnome::Vfs::FileInfo::gobj_copy |
( |
| ) |
const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
◆ is_symlink()
bool Gnome::Vfs::FileInfo::is_symlink |
( |
| ) |
const |
Find out if this FileInfo is a symbolic link.
In order for this to work, this FileInfo must be created using FILE_INFO_FOLLOW_LINKS.
- Returns
true
if it is a sym link, otherwise false
.
◆ operator delete()
void Gnome::Vfs::FileInfo::operator delete |
( |
void * |
, |
|
|
size_t |
|
|
) |
| |
|
protected |
◆ reference()
void Gnome::Vfs::FileInfo::reference |
( |
| ) |
const |
◆ unreference()
void Gnome::Vfs::FileInfo::unreference |
( |
| ) |
const |
◆ operator!=()
- Parameters
-
lhs | The left-hand side |
rhs | The right-hand side |
- Returns
- The result
◆ operator==()
- Parameters
-
lhs | The left-hand side |
rhs | The right-hand side |
- Returns
- The result
◆ wrap()
A Glib::wrap() method for this object.
- Parameters
-
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file: