CAiwGenericParamList Class Reference

#include <mw/AiwGenericParam.h>

Link against: ServiceHandler.lib

class CAiwGenericParamList : public CBase

Inherits from

  • CAiwGenericParamList

    Detailed Description

    Generic parameter list. A list containing TAiwGenericParam objects. Used for passing parameters between consumers and providers.

    Since
    Series 60 2.6

    Constructor & Destructor Documentation

    ~CAiwGenericParamList ( )

    ~CAiwGenericParamList()[virtual]

    Destructor.

    Member Function Documentation

    AppendL ( const TAiwGenericParam & )

    IMPORT_C voidAppendL(const TAiwGenericParam &aParam)

    Appends a parameter to this list.

    ParameterDescription
    aParamThe parameter to append to this list. This object takes an own copy of the data in aParam.

    AppendL ( const CAiwGenericParamList & )

    IMPORT_C voidAppendL(const CAiwGenericParamList &aList)

    Copies the given list and appends it to end of this list.

    Since
    Series 60 2.8
    ParameterDescription
    aListA list to be copied and appended.

    Count ( )

    IMPORT_C TIntCount()const

    Returns the number of parameters in the list.

    Returns: The number of parameters in the list.

    Count ( TGenericParamId, TVariantTypeId )

    IMPORT_C TIntCount(TGenericParamIdaSemanticId,
    TVariantTypeIdaDataType = EVariantTypeAny
    )const

    Returns the number of the parameters in the list by semantic id and datatype.

    ParameterDescription
    aSemanticIdThe semantic ID of the parameter.
    aDataTypeThe type id of data. Default is any type.

    Returns: The number of parameters in the list by semantic id and datatype.

    ExternalizeL ( RWriteStream & )

    IMPORT_C voidExternalizeL(RWriteStream &aStream)const

    Externalizes this parameter list to a stream.

    See also: NewL(RReadStream& aStream) NewLC(RReadStream& aStream)

    ParameterDescription
    aStreamThe stream.

    FindFirst ( TInt &, TGenericParamId, TVariantTypeId )

    IMPORT_C const TAiwGenericParam *FindFirst(TInt &aIndex,
    TGenericParamIdaSemanticId,
    TVariantTypeIdaDataType = EVariantTypeAny
    )const

    Returns the first item matching the given semantic ID.

    ParameterDescription
    aIndexPosition 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.
    aSemanticIdThe semantic ID of the parameter.
    aDataTypeThe type id of data. Default is any type.

    Returns: The first matching item.

    FindNext ( TInt &, TGenericParamId, TVariantTypeId )

    IMPORT_C const TAiwGenericParam *FindNext(TInt &aIndex,
    TGenericParamIdaSemanticId,
    TVariantTypeIdaDataType = EVariantTypeAny
    )const

    Returns the next item matching the given semantic ID.

    ParameterDescription
    aIndexPosition 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.
    aSemanticIdThe semantic ID of the parameter.
    aDataTypeThe type id of data. Default is any type.

    Returns: The next matching item.

    InternalizeL ( RReadStream & )

    IMPORT_C voidInternalizeL(RReadStream &aStream)

    Internalizes the parameter list from a stream.

    Since
    Series60 2.8
    ParameterDescription
    aStreamThe stream.

    NewL ( )

    IMPORT_C CAiwGenericParamList *NewL()[static]

    Creates an instance of this class.

    Returns: A pointer to the new instance.

    NewL ( RReadStream & )

    IMPORT_C CAiwGenericParamList *NewL(RReadStream &aReadStream)[static]

    Creates an instance of this class.

    ParameterDescription
    aReadStreamA stream to initialize this parameter list from.

    Returns: A pointer to the new instance.

    NewLC ( )

    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.

    NewLC ( RReadStream & )

    IMPORT_C CAiwGenericParamList *NewLC(RReadStream &aReadStream)[static]

    Creates an instance of this class. Leaves the created instance on the cleanup stack.

    ParameterDescription
    aReadStreamA stream to initialize this parameter list from.

    Returns: A pointer to the new instance.

    PackForServerL ( TIpcArgs & )

    IMPORT_C HBufC8 *PackForServerL(TIpcArgs &aArgs)

    Packs the parameter list to TIpcArgs structure for passing the generic param list to server over process boundary. Only one RFile handle parameter can be passed over process boundary.

    Since
    Series60 3.0
    ParameterDescription
    aArgsInter process call arguments.

    Returns: Packed parameter list.

    Remove ( TInt )

    IMPORT_C TBoolRemove(TIntaSemanticId)

    Removes the first found item with given semantic id from the list.

    ParameterDescription
    aSemanticIdSemantic id for the item to be removed.

    Returns: ETrue if an item for the given semantic id was found and removed. EFalse otherwise.

    Reset ( )

    IMPORT_C voidReset()

    Deletes all parameters in the list and resets the list.

    Size ( )

    IMPORT_C TIntSize()const

    Returns the externalized size of the parameter list in bytes.

    Returns: The size.

    UnpackFromClientL ( const RMessage2 & )

    IMPORT_C voidUnpackFromClientL(const RMessage2 &aArgs)

    Unpacks the list from client message structure.

    Since
    Series60 3.0
    ParameterDescription
    aArgsThe list to be unpacked.

    operator[] ( TInt )

    IMPORT_C const TAiwGenericParam &operator[](TIntaIndex)const

    Returns a parameter from this list.

    Pre-condition
    aIndex>=0 && aIndex<Count()
    ParameterDescription
    aIndexIndex of the parameter.

    Returns: The parameter at the aIndex position.