• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.4 API Reference
  • KDE Home
  • Contact Us
 

KTNEF Library

  • KTnef
  • KTNEFParser
Public Member Functions
KTnef::KTNEFParser Class Reference

#include <ktnefparser.h>

List of all members.

Public Member Functions

 KTNEFParser ()
 ~KTNEFParser ()
bool extractAll ()
bool extractFile (const QString &filename) const
bool extractFileTo (const QString &filename, const QString &dirname) const
KTNEFMessage * message () const
bool openDevice (QIODevice *device)
bool openFile (const QString &filename) const
void setDefaultExtractDir (const QString &dirname)

Detailed Description

Provides an TNEF parser.

Definition at line 51 of file ktnefparser.h.


Constructor & Destructor Documentation

KTNEFParser::KTNEFParser ( )

Constructs a TNEF parser object.

Private class that helps to provide binary compatibility between releases.

Definition at line 116 of file ktnefparser.cpp.

KTNEFParser::~KTNEFParser ( )

Destroys the TNEF parser object.

Definition at line 121 of file ktnefparser.cpp.


Member Function Documentation

bool KTNEFParser::extractAll ( )

Extracts all TNEF attachments into the default directory.

Returns:
true if the extraction succeeds; otherwise false.

Definition at line 481 of file ktnefparser.cpp.

bool KTNEFParser::extractFile ( const QString &  filename) const

Extracts a TNEF attachment having filename filename into the default directory.

Parameters:
filenameis the name of the file to extract the attachment into.
Returns:
true if the extraction succeeds; otherwise false.

Definition at line 437 of file ktnefparser.cpp.

bool KTNEFParser::extractFileTo ( const QString &  filename,
const QString &  dirname 
) const

Extracts a TNEF attachment having filename filename into the directory dirname.

Parameters:
filenameis the name of the file to extract the attachment into.
dirnameis the name of the directory where the filename should be written.
Returns:
true if the extraction succeeds; otherwise false.

Definition at line 493 of file ktnefparser.cpp.

KTNEFMessage * KTNEFParser::message ( ) const

Returns the KTNEFMessage used in the parsing process.

Returns:
a pointer to a KTNEFMessage object.

Definition at line 127 of file ktnefparser.cpp.

bool KTNEFParser::openDevice ( QIODevice *  device)

Opens the #QIODevice device for parsing.

Parameters:
deviceis the #QIODevice to open.
Returns:
true if the open succeeded; otherwise false.

Definition at line 515 of file ktnefparser.cpp.

bool KTNEFParser::openFile ( const QString &  filename) const

Opens the filename for parsing.

Parameters:
filenameis the name of the file to open.
Returns:
true if the open succeeded; otherwise false.

Definition at line 505 of file ktnefparser.cpp.

void KTNEFParser::setDefaultExtractDir ( const QString &  dirname)

Sets the default extraction directory to dirname.

Parameters:
dirnameis the name of the default extraction directory.

Definition at line 375 of file ktnefparser.cpp.


The documentation for this class was generated from the following files:
  • ktnefparser.h
  • ktnefparser.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jun 24 2013 13:01:38 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTNEF Library

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

kdepimlibs-4.10.4 API Reference

Skip menu "kdepimlibs-4.10.4 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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