KTnef::KTNEFProperty Class

class KTnef::KTNEFProperty

Interface for setting @acronym MAPI properties. More...

Header: #include <ktnefproperty.h>
CMake: find_package(KPim6Tnef REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::Tnef)

Public Types

enum MAPIType { UInt16, ULong, Float, Double, Boolean, …, Binary }

Public Functions

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

Static Public Members

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

Detailed Description

Member Type Documentation

enum KTNEFProperty::MAPIType

The different @acronym MAPI types.

Member Function Documentation

KTNEFProperty::KTNEFProperty()

Constructs a @acronym TNEF property.

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

Constructs a @acronym TNEF property initialized with specified settings.

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

KTNEFProperty::KTNEFProperty(const KTnef::KTNEFProperty &p)

Constructs a @acronym TNEF property with settings from another property.

p is a #KTNEFProperty.

[noexcept] KTNEFProperty::~KTNEFProperty()

Destroys the property.

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

Creates a formatted string from the value of the property.

v is the property value. beautify if true uses a prettier format

Returns the formatted value string.

bool KTNEFProperty::isVector() const

Determines if the property is a vector type.

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

int KTNEFProperty::key() const

Returns the integer key of the property.

Returns the property key.

QString KTNEFProperty::keyString() const

Returns the key string of the property.

Returns the key string.

QVariant KTNEFProperty::name() const

Returns the name of the property.

Returns the property name.

int KTNEFProperty::type() const

Returns the integer type of the property.

Returns the property type.

QVariant KTNEFProperty::value() const

Returns the value of the property.

Returns the property value.

QString KTNEFProperty::valueString() const

Returns the value string of the property.

Returns the value string.