A class which describes a file on DVD.
More...
A class which describes a file on DVD.
◆ QtsDvdFile()
QtsDvdFile::QtsDvdFile |
( |
const QString & |
path = QString() , |
|
|
int |
startSector = -1 , |
|
|
int |
sizeInBytes = 0 |
|
) |
| |
Constructor.
- Parameters
-
[in] | path | File name with directory from DVD root. |
[in] | startSector | First sector on DVD media. |
[in] | sizeInBytes | Size in bytes. |
◆ ~QtsDvdFile()
QtsDvdFile::~QtsDvdFile |
( |
| ) |
|
|
virtual |
◆ isValid()
bool QtsDvdFile::isValid |
( |
| ) |
const |
|
inline |
Check if this object contains a valid file description.
- Returns
- True if this object contains a valid file description.
◆ description()
QString QtsDvdFile::description |
( |
| ) |
const |
Get the file description.
If the file name is empty, this is the description of a metadata area on DVD.
- Returns
- The file description.
◆ name()
QString QtsDvdFile::name |
( |
| ) |
const |
Get the file name, without directory.
- Returns
- The file name, without directory.
◆ path()
QString QtsDvdFile::path |
( |
| ) |
const |
|
inline |
Get the file path with directory from DVD root.
- Returns
- The file path, with directory.
◆ startSector()
int QtsDvdFile::startSector |
( |
| ) |
const |
|
inline |
Get the first sector on DVD media.
- Returns
- The first sector on DVD media.
◆ endSector()
int QtsDvdFile::endSector |
( |
| ) |
const |
|
inline |
Get the end sector (the one after the last sector) on DVD media.
- Returns
- The end sector on DVD media.
◆ sizeInBytes()
int QtsDvdFile::sizeInBytes |
( |
| ) |
const |
|
inline |
Get the file size in bytes.
- Returns
- The file size in bytes.
◆ sectorCount()
int QtsDvdFile::sectorCount |
( |
| ) |
const |
Get the file size in sectors.
- Returns
- The file size in sectors.
◆ isVob()
bool QtsDvdFile::isVob |
( |
| ) |
const |
Check if the file is a VOB one, possibly encrypted.
- Returns
- True if the file is a VOB.
◆ clear()
void QtsDvdFile::clear |
( |
| ) |
|
|
virtual |
◆ operator<()
bool QtsDvdFile::operator< |
( |
const QtsDvdFile & |
other | ) |
|
|
inline |
Operator "less than" to sort files.
The sort criteria is the placement on the DVD media.
- Parameters
-
[in] | other | Another instance to compare. |
- Returns
- True if this is logically less than other, meaning that this physically preceeds other on the DVD media.
◆ _path
QString QtsDvdFile::_path |
|
protected |
File name with directory from DVD root.
◆ _sector
First sector on DVD media.
◆ _size
The documentation for this class was generated from the following files: