MSenContext Class Reference
This is the abstract super class for all WSF context classes, providing convenience methods for basic, excessively used data types, and some foundation methods for general context properties, like context type and direction.
Member Functions Documentation
Add(const TDesC8 &, const TDesC8 &)
Adds new const TDesC8& type value into context, identified by given key.
Parameters
const TDesC8 & aKey | identifies new value |
const TDesC8 & aValue | is the value being added. |
Add(const TDesC8 &, TInt)
Adds new TInt type value into context, identified by given key.
Parameters
const TDesC8 & aKey | identifies new value |
TInt aValue | is the value being added. |
Add(const TDesC8 &, CSenElement *)
Adds new CSenElement* type value into context, identified by given key.
Parameters
const TDesC8 & aKey | identifies new value |
CSenElement * aValue | is the value being added. Ownership is transferred to this context. |
Add(const TDesC8 &, TAny *)
Adds new TAny* type value into context, identified by given key.
Parameters
const TDesC8 & aKey | identifies new value |
TAny * aValue | is the value being added. Ownership is NOT transferred to this context. |
Count()
TInt
| Count | ( | ) | const [pure virtual] |
Methods tells the count of context items (key-value pairs).
Direction()
Indicates the direction this context is serving.
GetAnyL(const TDesC8 &)
Method returns TAny* type value.
Parameters
const TDesC8 & aKey | identifying the requested value |
GetDesC8L(const TDesC8 &)
Method returns TDesC8* type value.
Parameters
const TDesC8 & aKey | identifies descriptor object |
GetIntL(const TDesC8 &)
const TInt * | GetIntL | ( | const TDesC8 & | aKey | ) | [pure virtual] |
Method returns TInt* type value.
Parameters
const TDesC8 & aKey | identifies integer object |
GetParser()
Method returns XML parser (CSenXmlReader*)
GetSenElementL(const TDesC8 &)
Method returns CSenElement* type value.
Parameters
const TDesC8 & aKey | identifies the XML element object |
KeyAtL(TInt)
Resolves key at certain index, if it is not out of bounds of the current context.
Remove(const TDesC8 &)
Removes value from the context, possibly destroying the value, too - if it is owned by this context.
Parameters
const TDesC8 & aKey | used to identify value which needs to be removed |
Reset()
void | Reset | ( | ) | [pure virtual] |
Method clears (possibly destroys) the current contents of this context, making it possible to re-use this instance.
SetDirection(SenContext::TContextDirection)
Sets the direction (inbound or outbound for this context).
Type()
Method is used to resolve concrete type (class) for this context.
Update(const TDesC8 &, const TDesC8 &)
Updates new const TDesC8& type value into context, identified by given key. If some value for the same key already exists, it is destroyed and replaced by the new value. If key does not already exist, a new one will be added.
Parameters
const TDesC8 & aKey | identifies new value |
const TDesC8 & aValue | is the updated value, which may replace any existing value, which used same key. Ownership is transferred to this context. |
Update(const TDesC8 &, TInt)
Updates new TInt type value into context, identified by given key. If some value for the same key already exists, it is destroyed and replaced by the new value.
Parameters
const TDesC8 & aKey | identifies new value |
TInt aValue | is the updated value, which may replace any existing value, which used same key. |
Update(const TDesC8 &, CSenElement *)
Updates new CSenElement* type value into context, identified by given key. If some value for the same key already exists, it is destroyed and replaced by the new value.
Parameters
const TDesC8 & aKey | identifies new value |
CSenElement * aValue | is the updated value, which may replace any existing value, which used same key. Ownership is transferred to this context. |
Update(const TDesC8 &, TAny *)
Updates new TAny* type value into context, identified by given key. If some value for the same key already exists, it is replaced with the new value.
Parameters
const TDesC8 & aKey | identifies new value |
TAny * aValue | is the updated value, which may replace any existing value, which used same key. Ownership is NOT transferred this context. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.