• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdegraphics
  • Sitemap
  • Contact Us
 

okular

Okular::EmbeddedFile

Okular::EmbeddedFile Class Reference

#include <document.h>

List of all members.


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 785 of file document.h.


Public Member Functions

 EmbeddedFile ()
virtual ~EmbeddedFile ()
virtual QString name () const =0
virtual QString description () const =0
virtual QByteArray data () const =0
virtual int size () const =0
virtual QDateTime modificationDate () const =0
virtual QDateTime creationDate () const =0

Constructor & Destructor Documentation

EmbeddedFile::EmbeddedFile (  ) 

Creates a new embedded file.

EmbeddedFile.

Definition at line 2944 of file document.cpp.

EmbeddedFile::~EmbeddedFile (  )  [virtual]

Destroys the embedded file.

Definition at line 2948 of file document.cpp.


Member Function Documentation

virtual QString Okular::EmbeddedFile::name (  )  const [pure virtual]

Returns the name of the file.

virtual QString Okular::EmbeddedFile::description (  )  const [pure virtual]

Returns the description of the file, or an empty string if not available.

virtual QByteArray Okular::EmbeddedFile::data (  )  const [pure virtual]

Returns the real data representing the file contents.

virtual int Okular::EmbeddedFile::size (  )  const [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

virtual QDateTime Okular::EmbeddedFile::modificationDate (  )  const [pure virtual]

Returns the modification date of the file, or an invalid date if not available.

virtual QDateTime Okular::EmbeddedFile::creationDate (  )  const [pure virtual]

Returns the creation date of the file, or an invalid date if not available.


The documentation for this class was generated from the following files:
  • document.h
  • document.cpp

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdegraphics

Skip menu "kdegraphics"
  • okular
Generated for kdegraphics by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal