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

KTNEF Library

KTnef::KTNEFProperty

KTnef::KTNEFProperty Class Reference

#include <ktnefproperty.h>

List of all members.


Detailed Description

Interface for setting MAPI properties.

Definition at line 44 of file ktnefproperty.h.


Public Types

enum  MAPIType {
  UInt16 = 0x0002, ULong = 0x0003, Float = 0x0004, Double = 0x0005,
  Boolean = 0x000B, Object = 0x000D, Time = 0x0040, String8 = 0x001E,
  UString = 0x001F, Binary = 0x0102
}

Public Member Functions

 KTNEFProperty ()
 KTNEFProperty (int key_, int type_, const QVariant &value_, const QVariant &name_=QVariant())
 KTNEFProperty (const KTNEFProperty &p)
 ~KTNEFProperty ()
KTNEFProperty & operator= (const KTNEFProperty &other)
QString keyString () const
QString valueString () const
int key () const
int type () const
QVariant value () const
QVariant name () const
bool isVector () const

Static Public Member Functions

static QString formatValue (const QVariant &v, bool beautify=true)

Member Enumeration Documentation

enum KTnef::KTNEFProperty::MAPIType

The different MAPI types.

Enumerator:
UInt16  16-bit unsigned integer
ULong  unsigned long integer
Float  single precision floating point
Double  double precision floating point
Boolean  a boolean value
Object  an object
Time  a time value
String8  a string of 8 characters
UString  a string of characters
Binary  a binary value

Definition at line 50 of file ktnefproperty.h.


Constructor & Destructor Documentation

KTNEFProperty::KTNEFProperty (  ) 

Constructs a TNEF property.

Definition at line 49 of file ktnefproperty.cpp.

KTNEFProperty::KTNEFProperty ( int  key_,
int  type_,
const QVariant &  value_,
const QVariant &  name_ = QVariant() 
)

Constructs a TNEF property initialized with specified settings.

Parameters:
key_ is the property key.
type_ is the property type.
value_ is the property value.
name_ is the property name.

Definition at line 54 of file ktnefproperty.cpp.

KTNEFProperty::KTNEFProperty ( const KTNEFProperty &  p  ) 

Constructs a TNEF property with settings from another property.

Parameters:
p is a KTNEFProperty.

Definition at line 64 of file ktnefproperty.cpp.

KTNEFProperty::~KTNEFProperty (  ) 

Destroys the property.

Definition at line 70 of file ktnefproperty.cpp.


Member Function Documentation

QString KTNEFProperty::keyString (  )  const

Returns the key string of the property.

Returns:
the key string.

Definition at line 83 of file ktnefproperty.cpp.

QString KTNEFProperty::valueString (  )  const

Returns the value string of the property.

Returns:
the value string.

Definition at line 127 of file ktnefproperty.cpp.

QString KTNEFProperty::formatValue ( const QVariant &  v,
bool  beautify = true 
) [static]

Creates a formatted string from the value of the property.

Parameters:
v is the property value.
beautify if true uses a prettier format
Returns:
the formatted value string.

Definition at line 96 of file ktnefproperty.cpp.

int KTNEFProperty::key (  )  const

Returns the integer key of the property.

Returns:
the property key.

Definition at line 132 of file ktnefproperty.cpp.

int KTNEFProperty::type (  )  const

Returns the integer type of the property.

Returns:
the property type.

Definition at line 137 of file ktnefproperty.cpp.

QVariant KTNEFProperty::value (  )  const

Returns the value of the property.

Returns:
the property value.

Definition at line 142 of file ktnefproperty.cpp.

QVariant KTNEFProperty::name (  )  const

Returns the name of the property.

Returns:
the property name.

Definition at line 147 of file ktnefproperty.cpp.

bool KTNEFProperty::isVector (  )  const

Determines if the property is a vector type.

Returns:
true if the property is a vector type; otherwise false.

Definition at line 152 of file ktnefproperty.cpp.


The documentation for this class was generated from the following files:
  • ktnefproperty.h
  • ktnefproperty.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"
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.5
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