Home · API Reference · Modules |
Public Types | |
typedef QMap< QString, QVariant > | ExtendedAttributeMap |
Public Slots | |
void | setAttribute (const QString &key, const QVariant &value) |
Signals | |
void | extendedAttributeChanged (const QString &key, const QVariant &value) |
Public Member Functions | |
AttributeExtension (const QString &fileName=QString()) | |
virtual | ~AttributeExtension () |
ExtendedAttributeMap | attributes () const |
QString | fileName () const |
int | id () const |
void | updateAttribute (const QString &key, const QVariant &value) |
Static Public Member Functions | |
static QString | key (const QString &target, const QString &targetItem, const QString &attribute) |
typedef QMap<QString, QVariant> Maliit::AttributeExtension::ExtendedAttributeMap |
Maliit::AttributeExtension::AttributeExtension | ( | const QString & | fileName = QString() |
) | [explicit] |
Registers an attribute extension (toolbar contents, keyboard overrides) which is defined in fileName, and will be assigned to a text input widget (software input panel).
\a | fileName is the file name of the attribute extension. The filename should be absolute. If the filename is relative, it will be looked up in the default directory provided by the framework. |
Maliit::AttributeExtension::~AttributeExtension | ( | ) | [virtual] |
AttributeExtension::ExtendedAttributeMap Maliit::AttributeExtension::attributes | ( | ) | const |
QString Maliit::AttributeExtension::fileName | ( | ) | const |
Returns the attribute extension definition file name.
int Maliit::AttributeExtension::id | ( | ) | const |
Returns an unique identifier id for the attribute extension.
QString Maliit::AttributeExtension::key | ( | const QString & | target, | |
const QString & | targetItem, | |||
const QString & | attribute | |||
) | [static] |
Return key corresponding to given parameters.
target | Attribute extension. | |
targetItem | Item name. | |
attribute | Attribute name. |
void Maliit::AttributeExtension::updateAttribute | ( | const QString & | key, | |
const QVariant & | value | |||
) |
Update cached value of extended attribute corresponding to given key.
void Maliit::AttributeExtension::setAttribute | ( | const QString & | key, | |
const QVariant & | value | |||
) | [slot] |
Set the attribute of the targetItem in the input method registered attribute extension target to value.
key | a string specifying the target for the attribute. | |
value | new value. |
void Maliit::AttributeExtension::extendedAttributeChanged | ( | const QString & | key, | |
const QVariant & | value | |||
) | [signal] |
Informs application that input method server has changed the extended attribute.
key | a string specifying the target for the attribute. | |
value | new value. |
Copyright © 2011 Nokia Corporation | Maliit |