#include <filesysteminfo.h>
Public Member Functions | |
| FileSystemInfo () | |
| FileSystemInfo (const FileSystemInfo &other) | |
| FileSystemInfo (QString hostname, QString path, bool local, int fsid, int groupid, int blksize, int64_t total, int64_t used) | |
| FileSystemInfo (QStringList::const_iterator &it, QStringList::const_iterator end) | |
| FileSystemInfo (const QStringList &slist) | |
| ~FileSystemInfo (void) | |
| FileSystemInfo & | operator= (const FileSystemInfo &other) |
| virtual void | clone (const FileSystemInfo &other) |
| void | clear (void) |
| QString | getHostname (void) const |
| QString | getPath (void) const |
| bool | isLocal (void) const |
| int | getFSysID (void) const |
| int | getGroupID (void) const |
| int | getBlockSize (void) const |
| int64_t | getTotalSpace (void) const |
| int64_t | getUsedSpace (void) const |
| int | getWeight (void) const |
| int64_t | getFreeSpace (void) const |
| void | setHostname (QString hostname) |
| void | setPath (QString path) |
| void | setLocal (bool local=true) |
| void | setFSysID (int id) |
| void | setGroupID (int id) |
| void | setBlockSize (int size) |
| void | setTotalSpace (int64_t size) |
| void | setUsedSpace (int64_t size) |
| void | setWeight (int weight) |
| bool | ToStringList (QStringList &slist) const |
| void | PopulateDiskSpace (void) |
| void | PopulateFSProp (void) |
Static Public Member Functions | |
| static const QList < FileSystemInfo > | RemoteGetInfo (MythSocket *sock=NULL) |
| static void | Consolidate (QList< FileSystemInfo > &disks, bool merge=true, int64_t fuzz=14000) |
Private Member Functions | |
| bool | FromStringList (const QStringList &slist) |
| bool | FromStringList (QStringList::const_iterator &it, QStringList::const_iterator listend) |
Private Attributes | |
| QString | m_hostname |
| QString | m_path |
| bool | m_local |
| int | m_fsid |
| int | m_grpid |
| int | m_blksize |
| int64_t | m_total |
| int64_t | m_used |
| int | m_weight |
Definition at line 17 of file filesysteminfo.h.
| FileSystemInfo::FileSystemInfo | ( | void | ) |
Definition at line 49 of file filesysteminfo.cpp.
| FileSystemInfo::FileSystemInfo | ( | const FileSystemInfo & | other | ) |
Definition at line 55 of file filesysteminfo.cpp.
| FileSystemInfo::FileSystemInfo | ( | QString | hostname, | |
| QString | path, | |||
| bool | local, | |||
| int | fsid, | |||
| int | groupid, | |||
| int | blksize, | |||
| int64_t | total, | |||
| int64_t | used | |||
| ) |
Definition at line 60 of file filesysteminfo.cpp.
| FileSystemInfo::FileSystemInfo | ( | QStringList::const_iterator & | it, | |
| QStringList::const_iterator | end | |||
| ) |
Definition at line 68 of file filesysteminfo.cpp.
| FileSystemInfo::FileSystemInfo | ( | const QStringList & | slist | ) |
Definition at line 74 of file filesysteminfo.cpp.
| FileSystemInfo::~FileSystemInfo | ( | void | ) | [inline] |
Definition at line 29 of file filesysteminfo.h.
| FileSystemInfo & FileSystemInfo::operator= | ( | const FileSystemInfo & | other | ) |
Definition at line 92 of file filesysteminfo.cpp.
| void FileSystemInfo::clone | ( | const FileSystemInfo & | other | ) | [virtual] |
Definition at line 79 of file filesysteminfo.cpp.
Referenced by FileSystemInfo(), and operator=().
| void FileSystemInfo::clear | ( | void | ) |
Definition at line 98 of file filesysteminfo.cpp.
Referenced by FileServerHandler::QueryFileSystems().
| QString FileSystemInfo::getHostname | ( | void | ) | const [inline] |
Definition at line 36 of file filesysteminfo.h.
Referenced by Scheduler::FillRecordingDir().
| QString FileSystemInfo::getPath | ( | void | ) | const [inline] |
Definition at line 37 of file filesysteminfo.h.
Referenced by Scheduler::FillRecordingDir(), PopulateDiskSpace(), and PopulateFSProp().
| bool FileSystemInfo::isLocal | ( | void | ) | const [inline] |
Definition at line 38 of file filesysteminfo.h.
Referenced by comp_storage_combination(), and Scheduler::FillRecordingDir().
| int FileSystemInfo::getFSysID | ( | void | ) | const [inline] |
Definition at line 39 of file filesysteminfo.h.
Referenced by Scheduler::FillRecordingDir().
| int FileSystemInfo::getGroupID | ( | void | ) | const [inline] |
Definition at line 40 of file filesysteminfo.h.
| int FileSystemInfo::getBlockSize | ( | void | ) | const [inline] |
Definition at line 41 of file filesysteminfo.h.
| int64_t FileSystemInfo::getTotalSpace | ( | void | ) | const [inline] |
Definition at line 42 of file filesysteminfo.h.
Referenced by comp_storage_perc_free_space().
| int64_t FileSystemInfo::getUsedSpace | ( | void | ) | const [inline] |
Definition at line 43 of file filesysteminfo.h.
| int FileSystemInfo::getWeight | ( | void | ) | const [inline] |
Definition at line 44 of file filesysteminfo.h.
Referenced by comp_storage_combination(), comp_storage_disk_io(), and Scheduler::FillRecordingDir().
| int64_t FileSystemInfo::getFreeSpace | ( | void | ) | const [inline] |
Definition at line 47 of file filesysteminfo.h.
Referenced by comp_storage_combination(), comp_storage_free_space(), comp_storage_perc_free_space(), and Scheduler::FillRecordingDir().
| void FileSystemInfo::setHostname | ( | QString | hostname | ) | [inline] |
Definition at line 50 of file filesysteminfo.h.
Referenced by MainServer::BackendQueryDiskSpace(), MainServer::GetFilesystemInfos(), and FileServerHandler::QueryFileSystems().
| void FileSystemInfo::setPath | ( | QString | path | ) | [inline] |
Definition at line 51 of file filesysteminfo.h.
Referenced by MainServer::BackendQueryDiskSpace(), MainServer::GetFilesystemInfos(), and FileServerHandler::QueryFileSystems().
| void FileSystemInfo::setLocal | ( | bool | local = true |
) | [inline] |
Definition at line 52 of file filesysteminfo.h.
Referenced by MainServer::BackendQueryDiskSpace(), MainServer::GetFilesystemInfos(), PopulateFSProp(), and FileServerHandler::QueryFileSystems().
| void FileSystemInfo::setFSysID | ( | int | id | ) | [inline] |
Definition at line 53 of file filesysteminfo.h.
Referenced by MainServer::BackendQueryDiskSpace(), and MainServer::GetFilesystemInfos().
| void FileSystemInfo::setGroupID | ( | int | id | ) | [inline] |
Definition at line 54 of file filesysteminfo.h.
Referenced by MainServer::BackendQueryDiskSpace(), MainServer::GetFilesystemInfos(), and FileServerHandler::QueryFileSystems().
| void FileSystemInfo::setBlockSize | ( | int | size | ) | [inline] |
Definition at line 55 of file filesysteminfo.h.
Referenced by MainServer::BackendQueryDiskSpace(), MainServer::GetFilesystemInfos(), PopulateFSProp(), and FileServerHandler::QueryFileSystems().
| void FileSystemInfo::setTotalSpace | ( | int64_t | size | ) | [inline] |
Definition at line 56 of file filesysteminfo.h.
Referenced by MainServer::BackendQueryDiskSpace(), MainServer::GetFilesystemInfos(), and PopulateDiskSpace().
| void FileSystemInfo::setUsedSpace | ( | int64_t | size | ) | [inline] |
Definition at line 57 of file filesysteminfo.h.
Referenced by MainServer::BackendQueryDiskSpace(), MainServer::GetFilesystemInfos(), and PopulateDiskSpace().
| void FileSystemInfo::setWeight | ( | int | weight | ) | [inline] |
Definition at line 58 of file filesysteminfo.h.
Referenced by Scheduler::FillRecordingDir(), and MainServer::GetFilesystemInfos().
| bool FileSystemInfo::ToStringList | ( | QStringList & | slist | ) | const |
Definition at line 111 of file filesysteminfo.cpp.
| const QList< FileSystemInfo > FileSystemInfo::RemoteGetInfo | ( | MythSocket * | sock = NULL |
) | [static] |
Definition at line 151 of file filesysteminfo.cpp.
Referenced by StatusBox::doMachineStatus(), FileServerHandler::QueryAllFileSystems(), and PlaybackBoxHelper::UpdateFreeSpace().
| void FileSystemInfo::Consolidate | ( | QList< FileSystemInfo > & | disks, | |
| bool | merge = true, |
|||
| int64_t | fuzz = 14000 | |||
| ) | [static] |
Definition at line 179 of file filesysteminfo.cpp.
Referenced by MainServer::GetFilesystemInfos(), FileServerHandler::HandleQueryFreeSpaceList(), and FileServerHandler::HandleQueryFreeSpaceSummary().
| void FileSystemInfo::PopulateDiskSpace | ( | void | ) |
Definition at line 230 of file filesysteminfo.cpp.
Referenced by FileServerHandler::QueryFileSystems().
| void FileSystemInfo::PopulateFSProp | ( | void | ) |
Definition at line 238 of file filesysteminfo.cpp.
Referenced by FileServerHandler::QueryFileSystems().
| bool FileSystemInfo::FromStringList | ( | const QStringList & | slist | ) | [private] |
Definition at line 125 of file filesysteminfo.cpp.
Referenced by FileSystemInfo(), and RemoteGetInfo().
| bool FileSystemInfo::FromStringList | ( | QStringList::const_iterator & | it, | |
| QStringList::const_iterator | listend | |||
| ) | [private] |
Definition at line 131 of file filesysteminfo.cpp.
QString FileSystemInfo::m_hostname [private] |
Definition at line 73 of file filesysteminfo.h.
Referenced by clear(), clone(), FromStringList(), and ToStringList().
QString FileSystemInfo::m_path [private] |
Definition at line 74 of file filesysteminfo.h.
Referenced by clear(), clone(), FromStringList(), and ToStringList().
bool FileSystemInfo::m_local [private] |
Definition at line 75 of file filesysteminfo.h.
Referenced by clear(), clone(), FromStringList(), and ToStringList().
int FileSystemInfo::m_fsid [private] |
Definition at line 76 of file filesysteminfo.h.
Referenced by clear(), clone(), FromStringList(), and ToStringList().
int FileSystemInfo::m_grpid [private] |
Definition at line 77 of file filesysteminfo.h.
Referenced by clear(), clone(), FromStringList(), and ToStringList().
int FileSystemInfo::m_blksize [private] |
Definition at line 78 of file filesysteminfo.h.
Referenced by clear(), clone(), FromStringList(), and ToStringList().
int64_t FileSystemInfo::m_total [private] |
Definition at line 79 of file filesysteminfo.h.
Referenced by clear(), clone(), FromStringList(), and ToStringList().
int64_t FileSystemInfo::m_used [private] |
Definition at line 80 of file filesysteminfo.h.
Referenced by clear(), clone(), FromStringList(), and ToStringList().
int FileSystemInfo::m_weight [private] |
Definition at line 81 of file filesysteminfo.h.
Referenced by clear(), clone(), and FromStringList().
1.6.3