QtlMovie 1.12 (A specialized FFmpeg front-end)
QtsDvdFile Class Reference

A class which describes a file on DVD. More...

Inheritance diagram for QtsDvdFile:
QtsDvdDirectory

Public Member Functions

 QtsDvdFile (const QString &path=QString(), int startSector=-1, int sizeInBytes=0)
 Constructor. More...
 
virtual ~QtsDvdFile ()
 Virtual destructor. More...
 
virtual void clear ()
 Clear the content of this object. 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...
 

Protected Attributes

QString _path
 File name with directory from DVD root. More...
 
int _sector
 First sector on DVD media. More...
 
int _size
 Size in bytes. More...
 

Detailed Description

A class which describes a file on DVD.

Constructor & Destructor Documentation

◆ QtsDvdFile()

QtsDvdFile::QtsDvdFile ( const QString &  path = QString(),
int  startSector = -1,
int  sizeInBytes = 0 
)

Constructor.

Parameters
[in]pathFile name with directory from DVD root.
[in]startSectorFirst sector on DVD media.
[in]sizeInBytesSize in bytes.

◆ ~QtsDvdFile()

QtsDvdFile::~QtsDvdFile ( )
virtual

Virtual destructor.

Member Function Documentation

◆ 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

Clear the content of this object.

Reimplemented in QtsDvdDirectory.

◆ 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]otherAnother instance to compare.
Returns
True if this is logically less than other, meaning that this physically preceeds other on the DVD media.

Member Data Documentation

◆ _path

QString QtsDvdFile::_path
protected

File name with directory from DVD root.

◆ _sector

int QtsDvdFile::_sector
protected

First sector on DVD media.

◆ _size

int QtsDvdFile::_size
protected

Size in bytes.


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