• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KTNEF Library

  • KTnef
  • KTNEFPropertySet
Public Member Functions

KTnef::KTNEFPropertySet Class Reference

Interface for setting MAPI properties and TNEF attributes. More...

#include <ktnefpropertyset.h>

Inheritance diagram for KTnef::KTNEFPropertySet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KTNEFPropertySet ()
 ~KTNEFPropertySet ()
void addAttribute (int key, int type, const QVariant &value, bool overwrite=false)
void addProperty (int key, int type, const QVariant &value, const QVariant &name=QVariant(), bool overwrite=false)
QVariant attribute (int key) const
QMap< int, KTNEFProperty * > & attributes ()
const QMap< int, KTNEFProperty * > & attributes () const
void clear (bool deleteAll=false)
QString findNamedProp (const QString &name, const QString &fallback=QString(), bool convertToUpper=false) const
QString findProp (int key, const QString &fallback=QString(), bool convertToUpper=false) const
const QMap< int, KTNEFProperty * > & properties () const
QMap< int, KTNEFProperty * > & properties ()
QVariant property (int key) const

Detailed Description

Interface for setting MAPI properties and TNEF attributes.

Definition at line 46 of file ktnefpropertyset.h.


Constructor & Destructor Documentation

KTNEFPropertySet::KTNEFPropertySet ( )

Constructor.

Definition at line 47 of file ktnefpropertyset.cpp.

KTNEFPropertySet::~KTNEFPropertySet ( )

Destructor.

Definition at line 52 of file ktnefpropertyset.cpp.


Member Function Documentation

void KTNEFPropertySet::addAttribute ( int  key,
int  type,
const QVariant &  value,
bool  overwrite = false 
)

Adds a TNEF attribute.

Parameters:
keyis the attribute key.
typeis the attribute type.
valueis the attribute value.
overwriteif true, then remove the attribute if it already exists.

Definition at line 161 of file ktnefpropertyset.cpp.

void KTNEFPropertySet::addProperty ( int  key,
int  type,
const QVariant &  value,
const QVariant &  name = QVariant(),
bool  overwrite = false 
)

Adds a MAPI property.

Parameters:
keyis the property key.
typeis the property type.
valueis the property value.
nameis the property name.
overwriteif true, then remove the property if it already exists.

Definition at line 59 of file ktnefpropertyset.cpp.

QVariant KTNEFPropertySet::attribute ( int  key) const

Returns the attribute associcated with the specified key.

Parameters:
keyis the TNEF key.
Returns:
the attribute associated with the key.

Definition at line 186 of file ktnefpropertyset.cpp.

const QMap< int, KTNEFProperty * > & KTNEFPropertySet::attributes ( ) const

Returns a #QMap of all (key,TNEF) attributes.

Definition at line 181 of file ktnefpropertyset.cpp.

QMap< int, KTNEFProperty * > & KTNEFPropertySet::attributes ( )

Returns a #QMap of all (key,TNEF) attributes.

Definition at line 176 of file ktnefpropertyset.cpp.

void KTNEFPropertySet::clear ( bool  deleteAll = false)

Clears the MAPI and TNEF maps.

Parameters:
deleteAllif true, delete the map memory as well.

Definition at line 145 of file ktnefpropertyset.cpp.

QString KTNEFPropertySet::findNamedProp ( const QString &  name,
const QString &  fallback = QString(),
bool  convertToUpper = false 
) const

Finds a property by name, returning a formatted value.

Parameters:
nameis the property name.
fallbackis the fallback formatted value to use if the name is not found.
convertToUpperif true, then return the formatted value in all upper case characters.
Returns:
a formatted value string.

Definition at line 87 of file ktnefpropertyset.cpp.

QString KTNEFPropertySet::findProp ( int  key,
const QString &  fallback = QString(),
bool  convertToUpper = false 
) const

Finds a property by key, returning a formatted value.

Parameters:
keyis the property key.
fallbackis the fallback formatted value to use if the key is not found.
convertToUpperif true, then return the formatted value in all upper case characters.
Returns:
a formatted value string.

Definition at line 74 of file ktnefpropertyset.cpp.

QMap< int, KTNEFProperty * > & KTNEFPropertySet::properties ( )

Returns a #QMap of all (key,MAPI) properties.

Definition at line 125 of file ktnefpropertyset.cpp.

const QMap< int, KTNEFProperty * > & KTNEFPropertySet::properties ( ) const

Returns a #QMap of all (key,MAPI) properties.

Definition at line 130 of file ktnefpropertyset.cpp.

QVariant KTNEFPropertySet::property ( int  key) const

Returns the property associcated with the specified key.

Parameters:
keyis the property key.
Returns:
the property.q

Definition at line 135 of file ktnefpropertyset.cpp.


The documentation for this class was generated from the following files:
  • ktnefpropertyset.h
  • ktnefpropertyset.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
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.3
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