• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. Okular
  • KDE Home
  • Contact Us

Quick Links

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

Class Picker

About

Okular, the unified document viewer

Maintainer
Albert Astals Cid
Supported platforms
Linux, MacOSX, Windows
Community
IRC: #okular on Freenode
Mailing list: okular-devel
Clone
git clone git://anongit.kde.org/okular.git
Browse source
Okular on cgit.kde.org

Okular

  • View on LXR
  • Okular
  • EmbeddedFile
Public Member Functions | List of all members
Okular::EmbeddedFile Class Referenceabstract

#include <document.h>

Public Member Functions

 EmbeddedFile ()
 
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
 
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 1401 of file document.h.

Constructor & Destructor Documentation

EmbeddedFile::EmbeddedFile ( )

Creates a new embedded file.

EmbeddedFile.

Definition at line 5888 of file document.cpp.

EmbeddedFile::~EmbeddedFile ( )
virtual

Destroys the embedded file.

Definition at line 5892 of file document.cpp.

Member Function Documentation

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

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

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

Returns the real data representing the file contents.

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

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

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

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

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

Returns the name of the file.

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

The documentation for this class was generated from the following files:
  • document.h
  • document.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 9 2019 01:55:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal