• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KTNEF Library

KTnef::KTNEFAttach

KTnef::KTNEFAttach Class Reference

Represents a TNEF attachment. More...

#include <ktnefattach.h>

Inheritance diagram for KTnef::KTNEFAttach:

Inheritance graph
[legend]

List of all members.


Public Types


Public Member Functions

bool checkState (int state) const
bool dataParsed () const
QString displayName () const
int displaySize () const
QString extension () const
QString fileName () const
int index () const
bool infoParsed () const
 KTNEFAttach ()
QString mimeTag () const
QString name () const
int offset () const
void setDataParsed ()
void setDisplayName (const QString &str)
void setDisplaySize (int size)
void setExtension (const QString &str)
void setFileName (const QString &str)
void setIndex (int indx)
void setInfoParsed ()
void setMimeTag (const QString &str)
void setName (const QString &str)
void setOffset (int offset)
void setSize (int size)
void setTitleParsed ()
int size () const
bool titleParsed () const
void unsetDataParser ()
 ~KTNEFAttach ()

Detailed Description

Represents a TNEF attachment.

Definition at line 49 of file ktnefattach.h.


Member Enumeration Documentation

enum KTnef::KTNEFAttach::ParseState

The different attachment parsed states.

Enumerator:
Unparsed  Unparsed.
TitleParsed  The title is parsed.
DataParsed  The data is parsed.
InfoParsed  The info is parsed.

Definition at line 55 of file ktnefattach.h.


Constructor & Destructor Documentation

KTNEFAttach::KTNEFAttach (  ) 

Constructs a TNEF attachment.

Private class that helps to provide binary compatibility between releases.

For internal use only.

Definition at line 57 of file ktnefattach.cpp.

KTNEFAttach::~KTNEFAttach (  ) 

Destroys the TNEF attachment.

Definition at line 66 of file ktnefattach.cpp.


Member Function Documentation

bool KTNEFAttach::checkState ( int  state  )  const

Sets/Unsets the attachment state according to the state flag must be a ParseState type.

Parameters:
state a ParseState type.
Returns:
true if the state is turned-on; else returns false.

Definition at line 106 of file ktnefattach.cpp.

bool KTNEFAttach::dataParsed (  )  const

Returns true if the ParseState::DataParsed flag is set; else returns false.

Definition at line 96 of file ktnefattach.cpp.

QString KTNEFAttach::displayName (  )  const

Returns the display name of the attachment.

Definition at line 174 of file ktnefattach.cpp.

int KTNEFAttach::displaySize (  )  const

Returns the display size of the attachment.

Definition at line 132 of file ktnefattach.cpp.

QString KTNEFAttach::extension (  )  const

Returns the filename extension of the attachment.

Definition at line 194 of file ktnefattach.cpp.

QString KTNEFAttach::fileName (  )  const

Returns the filename of the attachment.

Definition at line 164 of file ktnefattach.cpp.

int KTNEFAttach::index (  )  const

Returns the index of the attachment.

Definition at line 153 of file ktnefattach.cpp.

bool KTNEFAttach::infoParsed (  )  const

Returns true if the InfoParsed flag is set; else returns false.

Definition at line 101 of file ktnefattach.cpp.

QString KTNEFAttach::mimeTag (  )  const

Returns the MIME tag of the attachment.

Definition at line 184 of file ktnefattach.cpp.

QString KTNEFAttach::name (  )  const

Returns the name of the attachment.

Definition at line 142 of file ktnefattach.cpp.

int KTNEFAttach::offset (  )  const

Returns the offset value of the attachment.

Definition at line 111 of file ktnefattach.cpp.

void KTNEFAttach::setDataParsed (  ) 

Sets the DataParsed flag for this attachment.

Definition at line 76 of file ktnefattach.cpp.

void KTNEFAttach::setDisplayName ( const QString &  str  ) 

Sets the display name of this attachment to str.

Parameters:
str is the attachment display name to set.

Definition at line 179 of file ktnefattach.cpp.

void KTNEFAttach::setDisplaySize ( int  size  ) 

Sets the display size of the attachment to size.

Parameters:
size is the attachment display size to set.

Definition at line 137 of file ktnefattach.cpp.

void KTNEFAttach::setExtension ( const QString &  str  ) 

Sets the filename extension of this attachment to str.

Parameters:
str is the attachment filename extension to set.

Definition at line 199 of file ktnefattach.cpp.

void KTNEFAttach::setFileName ( const QString &  str  ) 

Sets the filename of this attachment to str.

Parameters:
str is the attachment filename to set.

Definition at line 169 of file ktnefattach.cpp.

void KTNEFAttach::setIndex ( int  indx  ) 

Sets the index of this attachment to indx.

Parameters:
indx is the attachment index to set.

Definition at line 158 of file ktnefattach.cpp.

void KTNEFAttach::setInfoParsed (  ) 

Sets the InfoParsed flag for this attachment.

Definition at line 86 of file ktnefattach.cpp.

void KTNEFAttach::setMimeTag ( const QString &  str  ) 

Sets the MIME tag of this attachment to str.

Parameters:
str is the attachment MIME tag to set.

Definition at line 189 of file ktnefattach.cpp.

void KTNEFAttach::setName ( const QString &  str  ) 

Sets the name of this attachment to str.

Parameters:
str is attachment name to set.

Definition at line 147 of file ktnefattach.cpp.

void KTNEFAttach::setOffset ( int  offset  ) 

Sets the offset value of this attachment to offset.

Parameters:
offset is the attachment offset to set.

Definition at line 116 of file ktnefattach.cpp.

void KTNEFAttach::setSize ( int  size  ) 

Sets the size of the attachment to size.

Parameters:
size is the attachment size to set.

Definition at line 127 of file ktnefattach.cpp.

void KTNEFAttach::setTitleParsed (  ) 

Sets the TitleParsed flag for this attachment.

Definition at line 71 of file ktnefattach.cpp.

int KTNEFAttach::size (  )  const

Returns the size of the attachment.

Definition at line 122 of file ktnefattach.cpp.

bool KTNEFAttach::titleParsed (  )  const

Returns true if the TitleParsed flag is set; else returns false.

Definition at line 91 of file ktnefattach.cpp.

void KTNEFAttach::unsetDataParser (  ) 

Unsets the DataParsed flag for this attachment.

Definition at line 81 of file ktnefattach.cpp.


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

KTNEF Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
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