A class which describes a directory on DVD. More...
Public Member Functions | |
| QtsDvdDirectory (const QString &path=QString(), int startSector=-1, int sizeInBytes=0) | |
| Constructor. More... | |
| virtual | ~QtsDvdDirectory () |
| Virtual destructor. More... | |
| virtual void | clear () Q_DECL_OVERRIDE |
| Clear the content of this object. More... | |
| QList< QtsDvdFilePtr > | files () const |
| Get the list of all files in this directory. More... | |
| QtsDvdFile | searchFile (const QString &fileName, Qt::CaseSensitivity cs=Qt::CaseInsensitive) const |
| Search a file in the directory. More... | |
| QtsDvdFile | searchPath (const QString &path, Qt::CaseSensitivity cs=Qt::CaseInsensitive) const |
| Search a file in the directory tree. More... | |
| QtsDvdFile | searchPath (const QStringList &path, Qt::CaseSensitivity cs=Qt::CaseInsensitive) const |
| Search a file in the directory tree. More... | |
| QtsDvdFile | searchPath (QStringList::ConstIterator begin, QStringList::ConstIterator end, Qt::CaseSensitivity cs=Qt::CaseInsensitive) const |
| Search a file in the directory tree. More... | |
| QList< QtsDvdDirectoryPtr > | subDirectories () const |
| Get the list of all subdirectories in this directory. More... | |
Public Member Functions inherited from QtsDvdFile | |
| QtsDvdFile (const QString &path=QString(), int startSector=-1, int sizeInBytes=0) | |
| Constructor. More... | |
| virtual | ~QtsDvdFile () |
| Virtual destructor. More... | |
| QString | description () const |
| Get the file description. More... | |
| int | endSector () const |
| Get the end sector (the one after the last sector) on DVD media. More... | |
| bool | isValid () const |
| Check if this object contains a valid file description. More... | |
| bool | isVob () const |
| Check if the file is a VOB one, possibly encrypted. More... | |
| QString | name () const |
| Get the file name, without directory. More... | |
| bool | operator< (const QtsDvdFile &other) |
| Operator "less than" to sort files. More... | |
| QString | path () const |
| Get the file path with directory from DVD root. More... | |
| int | sectorCount () const |
| Get the file size in sectors. More... | |
| int | sizeInBytes () const |
| Get the file size in bytes. More... | |
| int | startSector () const |
| Get the first sector on DVD media. More... | |
Private Attributes | |
| QList< QtsDvdFilePtr > | _files |
| All files in this directory. More... | |
| QList< QtsDvdDirectoryPtr > | _subDirectories |
| All subdirectories in this directory. More... | |
Friends | |
| class | QtsDvdMedia |
Additional Inherited Members | |
Protected Attributes inherited from QtsDvdFile | |
| QString | _path |
| File name with directory from DVD root. More... | |
| int | _sector |
| First sector on DVD media. More... | |
| int | _size |
| Size in bytes. More... | |
A class which describes a directory on DVD.
| QtsDvdDirectory::QtsDvdDirectory | ( | const QString & | path = QString(), |
| int | startSector = -1, |
||
| int | sizeInBytes = 0 |
||
| ) |
Constructor.
| [in] | path | File name with directory from DVD root. |
| [in] | startSector | First sector on DVD media. |
| [in] | sizeInBytes | Size in bytes. |
|
virtual |
Virtual destructor.
|
inline |
Get the list of all subdirectories in this directory.
|
inline |
Get the list of all files in this directory.
| QtsDvdFile QtsDvdDirectory::searchFile | ( | const QString & | fileName, |
| Qt::CaseSensitivity | cs = Qt::CaseInsensitive |
||
| ) | const |
Search a file in the directory.
| [in] | fileName | Name of the file to search. Must be a simple name (no directory). |
| [in] | cs | Case sensitivity when looking for file names. |
| QtsDvdFile QtsDvdDirectory::searchPath | ( | const QString & | path, |
| Qt::CaseSensitivity | cs = Qt::CaseInsensitive |
||
| ) | const |
Search a file in the directory tree.
| [in] | path | Either a simple file or a path with directory components. |
| [in] | cs | Case sensitivity when looking for file names. |
| QtsDvdFile QtsDvdDirectory::searchPath | ( | const QStringList & | path, |
| Qt::CaseSensitivity | cs = Qt::CaseInsensitive |
||
| ) | const |
Search a file in the directory tree.
| [in] | path | A list of directory components, ending with the file name. |
| [in] | cs | Case sensitivity when looking for file names. |
| QtsDvdFile QtsDvdDirectory::searchPath | ( | QStringList::ConstIterator | begin, |
| QStringList::ConstIterator | end, | ||
| Qt::CaseSensitivity | cs = Qt::CaseInsensitive |
||
| ) | const |
Search a file in the directory tree.
| [in] | begin | Iterator to a list of directory components, ending with the file name. |
| [in] | end | Iterator past the end of the list. |
| [in] | cs | Case sensitivity when looking for file names. |
|
virtual |
Clear the content of this object.
Reimplemented from QtsDvdFile.
|
friend |
|
private |
All subdirectories in this directory.
|
private |
All files in this directory.