Okular::EmbeddedFile
#include <document.h>
Public Member Functions | |
EmbeddedFile () | |
EmbeddedFile (const EmbeddedFile &)=delete | |
virtual | ~EmbeddedFile () |
virtual QDateTime | creationDate () const =0 |
virtual QByteArray | data () const =0 |
virtual QString | description () const =0 |
virtual QDateTime | modificationDate () const =0 |
virtual QString | name () const =0 |
EmbeddedFile & | operator= (const EmbeddedFile &)=delete |
virtual int | size () const =0 |
Detailed Description
An embedded file into the document.
This class represents a sort of interface of an embedded file in a document.
Generators must re-implement its members to give the all the information about an embedded file, like its name, its description, the date of creation and modification, and the real data of the file.
Definition at line 1554 of file document.h.
Constructor & Destructor Documentation
◆ EmbeddedFile()
EmbeddedFile::EmbeddedFile | ( | ) |
◆ ~EmbeddedFile()
|
virtual |
Destroys the embedded file.
Definition at line 6159 of file document.cpp.
Member Function Documentation
◆ creationDate()
|
pure virtual |
Returns the creation date of the file, or an invalid date if not available.
◆ data()
|
pure virtual |
Returns the real data representing the file contents.
◆ description()
|
pure virtual |
Returns the description of the file, or an empty string if not available.
◆ modificationDate()
|
pure virtual |
Returns the modification date of the file, or an invalid date if not available.
◆ name()
|
pure virtual |
Returns the name of the file.
◆ size()
|
pure virtual |
Returns the size (in bytes) of the file, if available, or -1 otherwise.
- Note
- this method should be a fast way to know the size of the file with no need to extract all the data from it
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:47:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.