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

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

Definition at line 25 of file mythuifilebrowser.cpp.

◆ ~MFileInfo()

MFileInfo::~MFileInfo ( )
default

Member Function Documentation

◆ operator=()

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

Definition at line 62 of file mythuifilebrowser.cpp.

◆ init()

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

Definition at line 30 of file mythuifilebrowser.cpp.

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

◆ fileName()

QString MFileInfo::fileName ( void  ) const

◆ filePath()

QString MFileInfo::filePath ( void  ) const

Definition at line 79 of file mythuifilebrowser.cpp.

Referenced by MythUIFileBrowser::PathClicked().

◆ isRemote()

bool MFileInfo::isRemote ( void  )
inline

Definition at line 37 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser::PathClicked().

◆ isDir()

bool MFileInfo::isDir ( void  ) const

Definition at line 86 of file mythuifilebrowser.cpp.

Referenced by init(), MFileInfo(), operator=(), and MythUIFileBrowser::PathClicked().

◆ isFile()

bool MFileInfo::isFile ( void  ) const

Definition at line 93 of file mythuifilebrowser.cpp.

Referenced by MythUIFileBrowser::PathClicked().

◆ isParentDir()

bool MFileInfo::isParentDir ( void  ) const

◆ isExecutable()

bool MFileInfo::isExecutable ( void  ) const

Definition at line 107 of file mythuifilebrowser.cpp.

◆ absoluteFilePath()

QString MFileInfo::absoluteFilePath ( void  ) const

Definition at line 114 of file mythuifilebrowser.cpp.

Referenced by MythUIFileBrowser::PathSelected().

◆ size()

qint64 MFileInfo::size ( void  ) const

◆ setFile()

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

Definition at line 45 of file mythuifilebrowser.h.

◆ setSize()

void MFileInfo::setSize ( qint64  size)
inline

Definition at line 46 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser::updateRemoteFileList().

◆ setIsDir()

void MFileInfo::setIsDir ( bool  isDir)
inline

Definition at line 47 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser::updateRemoteFileList().

◆ setIsFile()

void MFileInfo::setIsFile ( bool  isFile)
inline

Definition at line 48 of file mythuifilebrowser.h.

◆ setIsParentDir()

void MFileInfo::setIsParentDir ( bool  isParentDir)
inline

Definition at line 49 of file mythuifilebrowser.h.

◆ setSGDir()

void MFileInfo::setSGDir ( QString  sgDir)
inline

Definition at line 50 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser::updateRemoteFileList().

◆ hostName()

QString MFileInfo::hostName ( void  ) const
inline

Definition at line 52 of file mythuifilebrowser.h.

◆ storageGroup()

QString MFileInfo::storageGroup ( void  ) const
inline

Definition at line 53 of file mythuifilebrowser.h.

◆ storageGroupDir()

QString MFileInfo::storageGroupDir ( void  ) const
inline

Definition at line 54 of file mythuifilebrowser.h.

Referenced by operator=(), and MythUIFileBrowser::PathClicked().

◆ subDir()

QString MFileInfo::subDir ( void  ) const
inline

Definition at line 55 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser::PathClicked().

Member Data Documentation

◆ m_isRemote

bool MFileInfo::m_isRemote {false}
private

◆ m_isDir

bool MFileInfo::m_isDir {false}
private

Definition at line 60 of file mythuifilebrowser.h.

Referenced by init(), and isDir().

◆ m_isFile

bool MFileInfo::m_isFile {true}
private

Definition at line 61 of file mythuifilebrowser.h.

Referenced by init(), and isFile().

◆ m_isParentDir

bool MFileInfo::m_isParentDir {false}
private

Definition at line 62 of file mythuifilebrowser.h.

Referenced by init(), and isParentDir().

◆ m_hostName

QString MFileInfo::m_hostName
private

Definition at line 64 of file mythuifilebrowser.h.

Referenced by init().

◆ m_storageGroup

QString MFileInfo::m_storageGroup
private

Definition at line 65 of file mythuifilebrowser.h.

Referenced by init().

◆ m_storageGroupDir

QString MFileInfo::m_storageGroupDir
private

Definition at line 66 of file mythuifilebrowser.h.

Referenced by init().

◆ m_fileName

QString MFileInfo::m_fileName
private

Definition at line 67 of file mythuifilebrowser.h.

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

◆ m_subDir

QString MFileInfo::m_subDir
private

Definition at line 68 of file mythuifilebrowser.h.

Referenced by init().

◆ m_size

qint64 MFileInfo::m_size {0}
private

Definition at line 70 of file mythuifilebrowser.h.

Referenced by init(), and size().


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