#include <mw/AiwGenericParam.h>
class CAiwGenericParamList : public CBase |
Public Member Functions | |
---|---|
virtual | ~CAiwGenericParamList() |
IMPORT_C void | AppendL(const TAiwGenericParam &) |
IMPORT_C void | AppendL(const CAiwGenericParamList &) |
IMPORT_C TInt | Count() |
IMPORT_C TInt | Count(TGenericParamId, TVariantTypeId) |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C const TAiwGenericParam * | FindFirst(TInt &, TGenericParamId, TVariantTypeId) |
IMPORT_C const TAiwGenericParam * | FindNext(TInt &, TGenericParamId, TVariantTypeId) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C CAiwGenericParamList * | NewL() |
IMPORT_C CAiwGenericParamList * | NewL(RReadStream &) |
IMPORT_C CAiwGenericParamList * | NewLC() |
IMPORT_C CAiwGenericParamList * | NewLC(RReadStream &) |
IMPORT_C HBufC8 * | PackForServerL(TIpcArgs &) |
IMPORT_C TBool | Remove(TInt) |
IMPORT_C void | Reset() |
IMPORT_C TInt | Size() |
IMPORT_C void | UnpackFromClientL(const RMessage2 &) |
IMPORT_C const TAiwGenericParam & | operator[](TInt) |
Generic parameter list. A list containing TAiwGenericParam objects. Used for passing parameters between consumers and providers.
IMPORT_C void | AppendL | ( | const TAiwGenericParam & | aParam | ) |
Appends a parameter to this list.
Parameter | Description |
---|---|
aParam | The parameter to append to this list. This object takes an own copy of the data in aParam. |
IMPORT_C void | AppendL | ( | const CAiwGenericParamList & | aList | ) |
Copies the given list and appends it to end of this list.
Parameter | Description |
---|---|
aList | A list to be copied and appended. |
IMPORT_C TInt | Count | ( | ) | const |
Returns the number of parameters in the list.
Returns: The number of parameters in the list.
IMPORT_C TInt | Count | ( | TGenericParamId | aSemanticId, |
TVariantTypeId | aDataType = EVariantTypeAny | |||
) | const |
Returns the number of the parameters in the list by semantic id and datatype.
Parameter | Description |
---|---|
aSemanticId | The semantic ID of the parameter. |
aDataType | The type id of data. Default is any type. |
Returns: The number of parameters in the list by semantic id and datatype.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes this parameter list to a stream.
See also: NewL(RReadStream& aStream) NewLC(RReadStream& aStream)
Parameter | Description |
---|---|
aStream | The stream. |
IMPORT_C const TAiwGenericParam * | FindFirst | ( | TInt & | aIndex, |
TGenericParamId | aSemanticId, | |||
TVariantTypeId | aDataType = EVariantTypeAny | |||
) | const |
Returns the first item matching the given semantic ID.
Parameter | Description |
---|---|
aIndex | Position in which to start searching. On return it contains the position of the found parameter. It is set to KErrNotFound, if no matching items were found. |
aSemanticId | The semantic ID of the parameter. |
aDataType | The type id of data. Default is any type. |
Returns: The first matching item.
IMPORT_C const TAiwGenericParam * | FindNext | ( | TInt & | aIndex, |
TGenericParamId | aSemanticId, | |||
TVariantTypeId | aDataType = EVariantTypeAny | |||
) | const |
Returns the next item matching the given semantic ID.
Parameter | Description |
---|---|
aIndex | Position after which to start searching. On return it contains the position of the found parameter. It is set to KErrNotFound, if no matching items were found. |
aSemanticId | The semantic ID of the parameter. |
aDataType | The type id of data. Default is any type. |
Returns: The next matching item.
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalizes the parameter list from a stream.
Parameter | Description |
---|---|
aStream | The stream. |
IMPORT_C CAiwGenericParamList * | NewL | ( | ) | [static] |
Creates an instance of this class.
Returns: A pointer to the new instance.
IMPORT_C CAiwGenericParamList * | NewL | ( | RReadStream & | aReadStream | ) | [static] |
Creates an instance of this class.
Parameter | Description |
---|---|
aReadStream | A stream to initialize this parameter list from. |
Returns: A pointer to the new instance.
IMPORT_C CAiwGenericParamList * | NewLC | ( | ) | [static] |
Creates an instance of this class. Leaves the created instance on the cleanup stack.
Returns: A pointer to the new instance.
IMPORT_C CAiwGenericParamList * | NewLC | ( | RReadStream & | aReadStream | ) | [static] |
Creates an instance of this class. Leaves the created instance on the cleanup stack.
Parameter | Description |
---|---|
aReadStream | A stream to initialize this parameter list from. |
Returns: A pointer to the new instance.
IMPORT_C TInt | Size | ( | ) | const |
Returns the externalized size of the parameter list in bytes.
Returns: The size.
IMPORT_C void | UnpackFromClientL | ( | const RMessage2 & | aArgs | ) |
Unpacks the list from client message structure.
Parameter | Description |
---|---|
aArgs | The list to be unpacked. |
IMPORT_C const TAiwGenericParam & | operator[] | ( | TInt | aIndex | ) | const |
Returns a parameter from this list.
Parameter | Description |
---|---|
aIndex | Index of the parameter. |
Returns: The parameter at the aIndex position.