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

#include <mythuifilebrowser.h>

Inheritance diagram for MFileInfo:
Inheritance graph
[legend]
Collaboration diagram for MFileInfo:
Collaboration graph
[legend]

Public Member Functions

 MFileInfo (const QString &fileName="", QString sgDir="", bool isDir=false, qint64 size=0)
 
 ~MFileInfo ()=default
 
 MFileInfo (const MFileInfo &other)
 
MFileInfooperator= (const MFileInfo &other)
 
void init (const QString &fileName="", QString sgDir="", bool isDir=false, qint64 size=0)
 
QString fileName (void) const
 
QString filePath (void) const
 
bool isRemote (void) const
 
bool isDir (void) const
 
bool isFile (void) const
 
bool isParentDir (void) const
 
bool isExecutable (void) const
 
QString absoluteFilePath (void) const
 
qint64 size (void) const
 
void setFile (const QString &file)
 
void setSize (qint64 size)
 
void setIsDir (bool isDir)
 
void setIsFile (bool isFile)
 
void setIsParentDir (bool isParentDir)
 
void setSGDir (QString sgDir)
 
QString hostName (void) const
 
QString storageGroup (void) const
 
QString storageGroupDir (void) const
 
QString subDir (void) const
 

Private Attributes

bool m_isRemote {false}
 
bool m_isDir {false}
 
bool m_isFile {true}
 
bool m_isParentDir {false}
 
QString m_hostName
 
QString m_storageGroup
 
QString m_storageGroupDir
 
QString m_fileName
 
QString m_subDir
 
qint64 m_size {0}
 

Detailed Description

Definition at line 23 of file mythuifilebrowser.h.

Constructor & Destructor Documentation

◆ MFileInfo() [1/2]

MFileInfo::MFileInfo ( const QString &  fileName = "",
QString  sgDir = "",
bool  isDir = false,
qint64  size = 0 
)
explicit

Definition at line 27 of file mythuifilebrowser.cpp.

◆ ~MFileInfo()

MFileInfo::~MFileInfo ( )
default

◆ MFileInfo() [2/2]

MFileInfo::MFileInfo ( const MFileInfo other)

Definition at line 64 of file mythuifilebrowser.cpp.

Member Function Documentation

◆ operator=()

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

Definition at line 73 of file mythuifilebrowser.cpp.

◆ init()

void MFileInfo::init ( const QString &  fileName = "",
QString  sgDir = "",
bool  isDir = false,
qint64  size = 0 
)

Definition at line 32 of file mythuifilebrowser.cpp.

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

◆ fileName()

QString MFileInfo::fileName ( void  ) const

◆ filePath()

QString MFileInfo::filePath ( void  ) const

Definition at line 93 of file mythuifilebrowser.cpp.

Referenced by MFileInfo().

◆ isRemote()

bool MFileInfo::isRemote ( void  ) const
inline

Definition at line 38 of file mythuifilebrowser.h.

◆ isDir()

bool MFileInfo::isDir ( void  ) const

◆ isFile()

bool MFileInfo::isFile ( void  ) const

Definition at line 107 of file mythuifilebrowser.cpp.

Referenced by MythUIFileBrowser::updateLocalFileList().

◆ isParentDir()

bool MFileInfo::isParentDir ( void  ) const

Definition at line 114 of file mythuifilebrowser.cpp.

◆ isExecutable()

bool MFileInfo::isExecutable ( void  ) const

Definition at line 121 of file mythuifilebrowser.cpp.

Referenced by MythUIFileBrowser::updateLocalFileList().

◆ absoluteFilePath()

QString MFileInfo::absoluteFilePath ( void  ) const

Definition at line 128 of file mythuifilebrowser.cpp.

Referenced by MythUIFileBrowser::updateLocalFileList().

◆ size()

qint64 MFileInfo::size ( void  ) const

◆ setFile()

void MFileInfo::setFile ( const QString &  file)
inline

Definition at line 46 of file mythuifilebrowser.h.

◆ setSize()

void MFileInfo::setSize ( qint64  size)
inline

Definition at line 47 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser::updateRemoteFileList().

◆ setIsDir()

void MFileInfo::setIsDir ( bool  isDir)
inline

Definition at line 48 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser::updateRemoteFileList().

◆ setIsFile()

void MFileInfo::setIsFile ( bool  isFile)
inline

Definition at line 49 of file mythuifilebrowser.h.

◆ setIsParentDir()

void MFileInfo::setIsParentDir ( bool  isParentDir)
inline

Definition at line 50 of file mythuifilebrowser.h.

◆ setSGDir()

void MFileInfo::setSGDir ( QString  sgDir)
inline

Definition at line 51 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser::updateRemoteFileList().

◆ hostName()

QString MFileInfo::hostName ( void  ) const
inline

Definition at line 53 of file mythuifilebrowser.h.

◆ storageGroup()

QString MFileInfo::storageGroup ( void  ) const
inline

Definition at line 54 of file mythuifilebrowser.h.

◆ storageGroupDir()

QString MFileInfo::storageGroupDir ( void  ) const
inline

Definition at line 55 of file mythuifilebrowser.h.

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

◆ subDir()

QString MFileInfo::subDir ( void  ) const
inline

Definition at line 56 of file mythuifilebrowser.h.

Member Data Documentation

◆ m_isRemote

bool MFileInfo::m_isRemote {false}
private

◆ m_isDir

bool MFileInfo::m_isDir {false}
private

Definition at line 61 of file mythuifilebrowser.h.

Referenced by init(), and isDir().

◆ m_isFile

bool MFileInfo::m_isFile {true}
private

Definition at line 62 of file mythuifilebrowser.h.

Referenced by init(), and isFile().

◆ m_isParentDir

bool MFileInfo::m_isParentDir {false}
private

Definition at line 63 of file mythuifilebrowser.h.

Referenced by init(), and isParentDir().

◆ m_hostName

QString MFileInfo::m_hostName
private

Definition at line 65 of file mythuifilebrowser.h.

Referenced by init().

◆ m_storageGroup

QString MFileInfo::m_storageGroup
private

Definition at line 66 of file mythuifilebrowser.h.

Referenced by init().

◆ m_storageGroupDir

QString MFileInfo::m_storageGroupDir
private

Definition at line 67 of file mythuifilebrowser.h.

Referenced by init().

◆ m_fileName

QString MFileInfo::m_fileName
private

Definition at line 68 of file mythuifilebrowser.h.

Referenced by absoluteFilePath(), fileName(), filePath(), and init().

◆ m_subDir

QString MFileInfo::m_subDir
private

Definition at line 69 of file mythuifilebrowser.h.

Referenced by init().

◆ m_size

qint64 MFileInfo::m_size {0}
private

Definition at line 71 of file mythuifilebrowser.h.

Referenced by init(), and size().


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