FileSystemInfo Class Reference

#include <filesysteminfo.h>

List of all members.

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)
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
< 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

Detailed Description

Definition at line 17 of file filesysteminfo.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
int64_t FileSystemInfo::getFreeSpace ( void   )  const [inline]
void FileSystemInfo::setHostname ( QString  hostname  )  [inline]
void FileSystemInfo::setPath ( QString  path  )  [inline]
void FileSystemInfo::setLocal ( bool  local = true  )  [inline]
void FileSystemInfo::setFSysID ( int  id  )  [inline]
void FileSystemInfo::setGroupID ( int  id  )  [inline]
void FileSystemInfo::setBlockSize ( int  size  )  [inline]
void FileSystemInfo::setTotalSpace ( int64_t  size  )  [inline]
void FileSystemInfo::setUsedSpace ( int64_t  size  )  [inline]
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]
void FileSystemInfo::Consolidate ( QList< FileSystemInfo > &  disks,
bool  merge = true,
int64_t  fuzz = 14000 
) [static]
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.


Member Data Documentation

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().

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().

Definition at line 78 of file filesysteminfo.h.

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

Definition at line 79 of file filesysteminfo.h.

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

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:03 2012 for MythTV by  doxygen 1.6.3