MythTV  master
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
FileSystemInfo Class Reference

#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)
 
virtual ~FileSystemInfo (void)=default
 
FileSystemInfooperator= (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< FileSystemInfoRemoteGetInfo (MythSocket *sock=nullptr)
 
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
 

Detailed Description

Definition at line 15 of file filesysteminfo.h.

Constructor & Destructor Documentation

◆ FileSystemInfo() [1/5]

FileSystemInfo::FileSystemInfo ( void  )

Definition at line 46 of file filesysteminfo.cpp.

◆ FileSystemInfo() [2/5]

FileSystemInfo::FileSystemInfo ( const FileSystemInfo other)

Definition at line 52 of file filesysteminfo.cpp.

◆ FileSystemInfo() [3/5]

FileSystemInfo::FileSystemInfo ( QString  hostname,
QString  path,
bool  local,
int  fsid,
int  groupid,
int  blksize,
int64_t  total,
int64_t  used 
)

Definition at line 57 of file filesysteminfo.cpp.

◆ FileSystemInfo() [4/5]

FileSystemInfo::FileSystemInfo ( QStringList::const_iterator &  it,
QStringList::const_iterator  end 
)

Definition at line 65 of file filesysteminfo.cpp.

◆ FileSystemInfo() [5/5]

FileSystemInfo::FileSystemInfo ( const QStringList &  slist)
explicit

Definition at line 71 of file filesysteminfo.cpp.

◆ ~FileSystemInfo()

virtual FileSystemInfo::~FileSystemInfo ( void  )
virtualdefault

Member Function Documentation

◆ operator=()

FileSystemInfo & FileSystemInfo::operator= ( const FileSystemInfo other)

Definition at line 89 of file filesysteminfo.cpp.

◆ clone()

void FileSystemInfo::clone ( const FileSystemInfo other)
virtual

Definition at line 76 of file filesysteminfo.cpp.

Referenced by FileSystemInfo(), and operator=().

◆ clear()

void FileSystemInfo::clear ( void  )

◆ getHostname()

QString FileSystemInfo::getHostname ( void  ) const
inline

Definition at line 33 of file filesysteminfo.h.

Referenced by Scheduler::FillRecordingDir().

◆ getPath()

QString FileSystemInfo::getPath ( void  ) const
inline

Definition at line 34 of file filesysteminfo.h.

Referenced by Scheduler::FillRecordingDir(), PopulateDiskSpace(), and PopulateFSProp().

◆ isLocal()

bool FileSystemInfo::isLocal ( void  ) const
inline

Definition at line 35 of file filesysteminfo.h.

Referenced by comp_storage_combination(), and Scheduler::FillRecordingDir().

◆ getFSysID()

int FileSystemInfo::getFSysID ( void  ) const
inline

Definition at line 36 of file filesysteminfo.h.

Referenced by Scheduler::FillRecordingDir().

◆ getGroupID()

int FileSystemInfo::getGroupID ( void  ) const
inline

Definition at line 37 of file filesysteminfo.h.

◆ getBlockSize()

int FileSystemInfo::getBlockSize ( void  ) const
inline

Definition at line 38 of file filesysteminfo.h.

◆ getTotalSpace()

int64_t FileSystemInfo::getTotalSpace ( void  ) const
inline

Definition at line 39 of file filesysteminfo.h.

Referenced by comp_storage_perc_free_space().

◆ getUsedSpace()

int64_t FileSystemInfo::getUsedSpace ( void  ) const
inline

Definition at line 40 of file filesysteminfo.h.

◆ getWeight()

int FileSystemInfo::getWeight ( void  ) const
inline

◆ getFreeSpace()

int64_t FileSystemInfo::getFreeSpace ( void  ) const
inline

◆ setHostname()

void FileSystemInfo::setHostname ( QString  hostname)
inline

◆ setPath()

void FileSystemInfo::setPath ( QString  path)
inline

◆ setLocal()

void FileSystemInfo::setLocal ( bool  local = true)
inline

◆ setFSysID()

void FileSystemInfo::setFSysID ( int  id)
inline

◆ setGroupID()

void FileSystemInfo::setGroupID ( int  id)
inline

◆ setBlockSize()

void FileSystemInfo::setBlockSize ( int  size)
inline

◆ setTotalSpace()

void FileSystemInfo::setTotalSpace ( int64_t  size)
inline

◆ setUsedSpace()

void FileSystemInfo::setUsedSpace ( int64_t  size)
inline

◆ setWeight()

void FileSystemInfo::setWeight ( int  weight)
inline

Definition at line 55 of file filesysteminfo.h.

Referenced by Scheduler::FillRecordingDir(), and MainServer::GetFilesystemInfos().

◆ ToStringList()

bool FileSystemInfo::ToStringList ( QStringList &  slist) const

Definition at line 108 of file filesysteminfo.cpp.

◆ RemoteGetInfo()

const QList< FileSystemInfo > FileSystemInfo::RemoteGetInfo ( MythSocket sock = nullptr)
static

◆ Consolidate()

void FileSystemInfo::Consolidate ( QList< FileSystemInfo > &  disks,
bool  merge = true,
int64_t  fuzz = 14000 
)
static

◆ PopulateDiskSpace()

void FileSystemInfo::PopulateDiskSpace ( void  )

Definition at line 227 of file filesysteminfo.cpp.

Referenced by FileServerHandler::QueryFileSystems().

◆ PopulateFSProp()

void FileSystemInfo::PopulateFSProp ( void  )

Definition at line 235 of file filesysteminfo.cpp.

Referenced by FileServerHandler::QueryFileSystems().

◆ FromStringList() [1/2]

bool FileSystemInfo::FromStringList ( const QStringList &  slist)
private

Definition at line 122 of file filesysteminfo.cpp.

Referenced by FileSystemInfo(), and RemoteGetInfo().

◆ FromStringList() [2/2]

bool FileSystemInfo::FromStringList ( QStringList::const_iterator &  it,
QStringList::const_iterator  listend 
)
private

Definition at line 128 of file filesysteminfo.cpp.

Member Data Documentation

◆ m_hostname

QString FileSystemInfo::m_hostname
private

Definition at line 70 of file filesysteminfo.h.

Referenced by clear(), clone(), FromStringList(), and ToStringList().

◆ m_path

QString FileSystemInfo::m_path
private

Definition at line 71 of file filesysteminfo.h.

Referenced by clear(), clone(), FromStringList(), and ToStringList().

◆ m_local

bool FileSystemInfo::m_local
private

Definition at line 72 of file filesysteminfo.h.

Referenced by clear(), clone(), FromStringList(), and ToStringList().

◆ m_fsid

int FileSystemInfo::m_fsid
private

Definition at line 73 of file filesysteminfo.h.

Referenced by clear(), clone(), FromStringList(), and ToStringList().

◆ m_grpid

int FileSystemInfo::m_grpid
private

Definition at line 74 of file filesysteminfo.h.

Referenced by clear(), clone(), FromStringList(), and ToStringList().

◆ m_blksize

int FileSystemInfo::m_blksize
private

Definition at line 75 of file filesysteminfo.h.

Referenced by clear(), clone(), FromStringList(), and ToStringList().

◆ m_total

int64_t FileSystemInfo::m_total
private

Definition at line 76 of file filesysteminfo.h.

Referenced by clear(), clone(), FromStringList(), and ToStringList().

◆ m_used

int64_t FileSystemInfo::m_used
private

Definition at line 77 of file filesysteminfo.h.

Referenced by clear(), clone(), FromStringList(), and ToStringList().

◆ m_weight

int FileSystemInfo::m_weight
private

Definition at line 78 of file filesysteminfo.h.

Referenced by clear(), clone(), and FromStringList().


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