CLbtListTriggerOptions Class Reference

#include <mw/lbtlisttriggeroptions.h>

Link against: lbt.lib

class CLbtListTriggerOptions : public CBase

Inherits from

  • CLbtListTriggerOptions

    Detailed Description

    Helper class for options used when listing trigger entries from Location Triggering Server.

    The following options can be set.

    • Retrieved fields. It specifies what trigger entry attributes field and trigger dynamic information field shall be filled in the returned trigger objects. Default value for trigger entry attribute field is KLbtTriggerAttributeFieldsAll, which means all attributes field shall be filled. Whether the Trigger ID field is specified or not, the trigger ID attribute is always valid in returned trigger objects. Default value for trigger dynamic information field is KLbtTriggerDynInfoFieldsAll, which means all dynamic information fields will be filled.

    • Trigger filter. It specifies the filter used in retrieving trigger entries. Retrieved triggers shall fulfill the criteria defined in the filter. By default, the option does not contain a filter and all triggers will be retrieved. A composite filter can also be used.

    • Sorting option. It specifies in which order the retrieved trigger shall be sorted. The default value is ELbtNoSorting.

    Since
    S60 5.1

    Member Enumeration Documentation

    Enum TLbtListTriggerSorting

    Sorting order when retrieving triggers from Location Triggering Server.

    EnumeratorValueDescription
    ELbtNoSorting1

    Result is not sorted.

    ELbtTriggerNameAscending2

    Result is in ascending order according to the trigger name.

    ELbtTriggerNameDescending3

    Result is in descending order according to the trigger name.

    ELbtDistanceToLatestLocationAscending4

    Result is in ascending order according to the distance from the trigger area to the latest acquired location by Location Triggering Server.

    Constructor & Destructor Documentation

    ~CLbtListTriggerOptions ( )

    IMPORT_C~CLbtListTriggerOptions()

    Destructor

    Member Function Documentation

    ExternalizeL ( RWriteStream & )

    IMPORT_C voidExternalizeL(RWriteStream &aStream)const

    Externalizes the trigger condition object's details and attributes to stream.

    The presence of this function means that the standard templated operator<<() ( defined in s32strm.h ) is available to externalize objects of this class.

    ParameterDescription
    aStreamStream to which the object should be externalized.

    Filter ( )

    IMPORT_C CLbtTriggerFilterBase *Filter()

    Gets pointer to the filter used for listing triggers. The function returns NULL if the filter is not previously set.

    Returns: The filter used for listing triggers. Ownership of the returned object is not transferred to the client application.

    GetRetrievedFields ( TLbtTriggerAttributeFieldsMask &, TLbtTriggerDynamicInfoFieldsMask & )

    IMPORT_C voidGetRetrievedFields(TLbtTriggerAttributeFieldsMask &aEntryMask,
    TLbtTriggerDynamicInfoFieldsMask &aDynInfoMask
    )const

    Gets the fields that Location Triggering Server will fill when list triggers

    If the entry fields mask and dynamic information field mask is not set before, KLbtTriggerAttributeFieldsAll and KLbtTriggerDynInfoFieldsAll are returned.

    ParameterDescription
    aEntryMaskOn return contains the field mask defines which trigger entry fields shall be filled.
    aDynInfoMaskOn return contains the field mask defines which trigger dynamic information field shall be filled.

    InternalizeL ( RReadStream & )

    IMPORT_C voidInternalizeL(RReadStream &aStream)

    Internalizes the trigger condition object's details and attributes from stream.

    The presence of this function means that the standard templated operator>>() ( defined in s32strm.h ) is available to internalize objects of this class.

    ParameterDescription
    aStreamStream from which the object should be internalized.

    NewL ( )

    IMPORT_C CLbtListTriggerOptions *NewL()[static]

    Constructs a new instance of trigger listing option object. In the returned object, retrieved fields is set to KLbtTriggerAttributeFieldsAll and KLbtTriggerDynInfoFieldsAll, no trigger filters is set and sorting option is set to ELbtNoSorting.

    Returns: Pointer to the new instance of the trigger retrieving option object.

    NewLC ( )

    IMPORT_C CLbtListTriggerOptions *NewLC()[static]

    Constructs a new instance of trigger listing option object and pushes it onto cleanup stack. In the returned object, retrieved fields is set to KLbtTriggerAttributeFieldsAll and KLbtTriggerDynInfoFieldsAll, no trigger filters is set and sorting option is set to ELbtNoSorting.

    Returns: Pointer to the new instance of the trigger retrieving option object.

    SetFilter ( CLbtTriggerFilterBase * )

    IMPORT_C voidSetFilter(CLbtTriggerFilterBase *aFilter)

    Sets the filter used for listing triggers.

    ParameterDescription
    aFilterPointer to the filter used for listing triggers. If the pointer is NULL, previous set filter is deleted. Ownership of aFilter is transferred to the client application.

    SetRetrievedFields ( TLbtTriggerAttributeFieldsMask, TLbtTriggerDynamicInfoFieldsMask )

    IMPORT_C voidSetRetrievedFields(TLbtTriggerAttributeFieldsMaskaEntryMask,
    TLbtTriggerDynamicInfoFieldsMaskaDynInfoMask =  KLbtTriggerDynInfoFieldsAll
    )

    Sets which fields shall be filled by Location Triggering Server when listing triggers.

    ParameterDescription
    aEntryMaskMask defines which trigger entry fields shall be filled.
    aDynInfoMaskThe mask defines which dynamic information field shall be filled.

    SetSortingOption ( TLbtListTriggerSorting )

    IMPORT_C voidSetSortingOption(TLbtListTriggerSortingaOption)

    Sets the sorting option when listing triggers.

    ParameterDescription
    aOptionThe sorting option when retrieving triggers.

    SortingOption ( )

    IMPORT_C TLbtListTriggerSortingSortingOption()const

    Gets the sorting option when listing triggers. This function returns ELbtNoSorting if the sorting option has not been set.

    Returns: The sorting option when listing triggers.