#include <libmythbase/filesysteminfo.h>
|
| | FileSystemInfo ()=default |
| |
| | FileSystemInfo (QString hostname, QString path, int groupid=-1) |
| |
| | FileSystemInfo (QString hostname, QString path, bool local, int fsid, int groupid, int blksize, int64_t total, int64_t used) |
| |
| | FileSystemInfo (QStringList::const_iterator &it, const QStringList::const_iterator &end) |
| |
| | FileSystemInfo (const QStringList &slist) |
| |
| void | clear () |
| |
| QString | getHostname () const |
| |
| QString | getPath () const |
| |
| bool | isLocal () const |
| |
| int | getFSysID () const |
| |
| int | getGroupID () const |
| |
| int | getBlockSize () const |
| |
| int64_t | getTotalSpace () const |
| |
| int64_t | getUsedSpace () const |
| |
| int | getWeight () const |
| |
| int64_t | getFreeSpace () const |
| |
| void | setHostname (QString hostname) |
| |
| void | setPath (QString path) |
| |
| void | setFSysID (int id) |
| |
| void | setUsedSpace (int64_t size) |
| |
| void | setWeight (int weight) |
| |
| bool | ToStringList (QStringList &slist) const |
| |
| QStringList | ToStringList () const |
| |
| bool | refresh () |
| | update filesystem statistics by reading from the storage device More...
|
| |
|
| static constexpr int | kLines = 8 |
| | number of strings in the serialized stringlist More...
|
| |
Definition at line 14 of file filesysteminfo.h.
◆ FileSystemInfo() [1/5]
| FileSystemInfo::FileSystemInfo |
( |
| ) |
|
|
default |
◆ FileSystemInfo() [2/5]
| FileSystemInfo::FileSystemInfo |
( |
QString |
hostname, |
|
|
QString |
path, |
|
|
int |
groupid = -1 |
|
) |
| |
|
inline |
◆ FileSystemInfo() [3/5]
| FileSystemInfo::FileSystemInfo |
( |
QString |
hostname, |
|
|
QString |
path, |
|
|
bool |
local, |
|
|
int |
fsid, |
|
|
int |
groupid, |
|
|
int |
blksize, |
|
|
int64_t |
total, |
|
|
int64_t |
used |
|
) |
| |
|
inline |
◆ FileSystemInfo() [4/5]
| FileSystemInfo::FileSystemInfo |
( |
QStringList::const_iterator & |
it, |
|
|
const QStringList::const_iterator & |
end |
|
) |
| |
|
inline |
◆ FileSystemInfo() [5/5]
| FileSystemInfo::FileSystemInfo |
( |
const QStringList & |
slist | ) |
|
|
inlineexplicit |
◆ clear()
| void FileSystemInfo::clear |
( |
void |
| ) |
|
|
inline |
◆ FromStringList() [1/2]
| bool FileSystemInfo::FromStringList |
( |
const QStringList & |
slist | ) |
|
|
private |
◆ FromStringList() [2/2]
| bool FileSystemInfo::FromStringList |
( |
QStringList::const_iterator & |
it, |
|
|
const QStringList::const_iterator & |
listend |
|
) |
| |
|
private |
Deserialize a FileSystemInfo.
The FileSystemInfo will be in a default state if deserialization fails.
- Parameters
-
| [in,out] | it | iterator to the beginning of the FileSystemInfo to deserialize. It is incremented so this function can be called repeatedly in a while loop. it will be set to listend when there aren't enough strings to deserialize a FileSystemInfo. |
| [in] | listend | end of the string list referenced by both iterators |
- Returns
- Boolean, true if deserialized
Definition at line 54 of file filesysteminfo.cpp.
◆ getBlockSize()
| int FileSystemInfo::getBlockSize |
( |
| ) |
const |
|
inline |
◆ getFreeSpace()
| int64_t FileSystemInfo::getFreeSpace |
( |
| ) |
const |
|
inline |
◆ getFSysID()
| int FileSystemInfo::getFSysID |
( |
| ) |
const |
|
inline |
◆ getGroupID()
| int FileSystemInfo::getGroupID |
( |
| ) |
const |
|
inline |
◆ getHostname()
| QString FileSystemInfo::getHostname |
( |
| ) |
const |
|
inline |
◆ getPath()
| QString FileSystemInfo::getPath |
( |
| ) |
const |
|
inline |
◆ getTotalSpace()
| int64_t FileSystemInfo::getTotalSpace |
( |
| ) |
const |
|
inline |
◆ getUsedSpace()
| int64_t FileSystemInfo::getUsedSpace |
( |
| ) |
const |
|
inline |
◆ getWeight()
| int FileSystemInfo::getWeight |
( |
| ) |
const |
|
inline |
◆ isLocal()
| bool FileSystemInfo::isLocal |
( |
| ) |
const |
|
inline |
◆ refresh()
| bool FileSystemInfo::refresh |
( |
| ) |
|
update filesystem statistics by reading from the storage device
- Returns
- Boolean, true if successful
Definition at line 79 of file filesysteminfo.cpp.
◆ setFSysID()
| void FileSystemInfo::setFSysID |
( |
int |
id | ) |
|
|
inline |
◆ setHostname()
| void FileSystemInfo::setHostname |
( |
QString |
hostname | ) |
|
|
inline |
◆ setPath()
| void FileSystemInfo::setPath |
( |
QString |
path | ) |
|
|
inline |
◆ setUsedSpace()
| void FileSystemInfo::setUsedSpace |
( |
int64_t |
size | ) |
|
|
inline |
◆ setWeight()
| void FileSystemInfo::setWeight |
( |
int |
weight | ) |
|
|
inline |
◆ ToStringList() [1/2]
| QStringList FileSystemInfo::ToStringList |
( |
| ) |
const |
◆ ToStringList() [2/2]
| bool FileSystemInfo::ToStringList |
( |
QStringList & |
slist | ) |
const |
◆ kLines
| constexpr int FileSystemInfo::kLines = 8 |
|
staticconstexpr |
◆ m_blksize
| int FileSystemInfo::m_blksize {4096} |
|
private |
◆ m_fsid
| int FileSystemInfo::m_fsid {-1} |
|
private |
◆ m_grpid
| int FileSystemInfo::m_grpid {-1} |
|
private |
◆ m_hostname
| QString FileSystemInfo::m_hostname |
|
private |
◆ m_local
◆ m_path
| QString FileSystemInfo::m_path |
|
private |
◆ m_total
| int64_t FileSystemInfo::m_total {0} |
|
private |
◆ m_used
| int64_t FileSystemInfo::m_used {0} |
|
private |
◆ m_weight
| int FileSystemInfo::m_weight {0} |
|
private |
The documentation for this class was generated from the following files: