CLbtListTriggerOptions Class Reference

class CLbtListTriggerOptions : public CBase

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.

lbt.lib

Since
S60 5.1

Inherits from

Public Member Functions
~CLbtListTriggerOptions ()
IMPORT_C void ExternalizeL ( RWriteStream &)
IMPORT_C CLbtTriggerFilterBase * Filter ()
IMPORT_C void GetRetrievedFields ( TLbtTriggerAttributeFieldsMask &, TLbtTriggerDynamicInfoFieldsMask &)
IMPORT_C void InternalizeL ( RReadStream &)
IMPORT_C CLbtListTriggerOptions * NewL ()
IMPORT_C CLbtListTriggerOptions * NewLC ()
IMPORT_C void SetFilter ( CLbtTriggerFilterBase *)
IMPORT_C void SetRetrievedFields ( TLbtTriggerAttributeFieldsMask , TLbtTriggerDynamicInfoFieldsMask )
IMPORT_C void SetSortingOption ( TLbtListTriggerSorting )
IMPORT_C TLbtListTriggerSorting SortingOption ()
Private Member Functions
CLbtListTriggerOptions ()
CLbtListTriggerOptions (const CLbtListTriggerOptions &)
void ConstructL ()
CLbtListTriggerOptions & operator= (const CLbtListTriggerOptions &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enum TLbtListTriggerSorting { ELbtNoSorting  = 1, ELbtTriggerNameAscending  = 2, ELbtTriggerNameDescending  = 3, ELbtDistanceToLatestLocationAscending  = 4 }
Private Attributes
TLbtTriggerDynamicInfoFieldsMask iDynInfoFieldsMask
CLbtTriggerFilterBase * iFilter
TUint iReserved
TLbtListTriggerSorting iSorting
TLbtTriggerAttributeFieldsMask iTriigerAttributeFieldsMask

Constructor & Destructor Documentation

CLbtListTriggerOptions()

CLbtListTriggerOptions ( ) [private]

Default Constructor.

CLbtListTriggerOptions(const CLbtListTriggerOptions &)

CLbtListTriggerOptions ( const CLbtListTriggerOptions & ) [private]

By default, prohibit copy constructor

Parameters

const CLbtListTriggerOptions &

~CLbtListTriggerOptions()

IMPORT_C ~CLbtListTriggerOptions ( )

Destructor

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

Symbian 2nd phase constructor

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( 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.

Parameters

RWriteStream & aStream Stream 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.

GetRetrievedFields(TLbtTriggerAttributeFieldsMask &, TLbtTriggerDynamicInfoFieldsMask &)

IMPORT_C void GetRetrievedFields ( 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.

Parameters

TLbtTriggerAttributeFieldsMask & aEntryMask On return contains the field mask defines which trigger entry fields shall be filled.
TLbtTriggerDynamicInfoFieldsMask & aDynInfoMask On return contains the field mask defines which trigger dynamic information field shall be filled.

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( 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.

Parameters

RReadStream & aStream Stream 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.

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.

SetFilter(CLbtTriggerFilterBase *)

IMPORT_C void SetFilter ( CLbtTriggerFilterBase * aFilter )

Sets the filter used for listing triggers.

Parameters

CLbtTriggerFilterBase * aFilter Pointer 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 void SetRetrievedFields ( TLbtTriggerAttributeFieldsMask aEntryMask,
TLbtTriggerDynamicInfoFieldsMask aDynInfoMask =  KLbtTriggerDynInfoFieldsAll
)

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

Parameters

TLbtTriggerAttributeFieldsMask aEntryMask Mask defines which trigger entry fields shall be filled.
TLbtTriggerDynamicInfoFieldsMask aDynInfoMask =  KLbtTriggerDynInfoFieldsAll The mask defines which dynamic information field shall be filled.

SetSortingOption(TLbtListTriggerSorting)

IMPORT_C void SetSortingOption ( TLbtListTriggerSorting aOption )

Sets the sorting option when listing triggers.

Parameters

TLbtListTriggerSorting aOption The sorting option when retrieving triggers.

SortingOption()

IMPORT_C TLbtListTriggerSorting SortingOption ( ) const

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

operator=(const CLbtListTriggerOptions &)

CLbtListTriggerOptions & operator= ( const CLbtListTriggerOptions & ) [private]

Prohibit assigment operator

Parameters

const CLbtListTriggerOptions &

Member Enumerations Documentation

Enum TLbtListTriggerSorting

Sorting order when retrieving triggers from Location Triggering Server.

Enumerators

ELbtNoSorting = 1

Result is not sorted.

ELbtTriggerNameAscending = 2

Result is in ascending order according to the trigger name.

ELbtTriggerNameDescending = 3

Result is in descending order according to the trigger name.

ELbtDistanceToLatestLocationAscending = 4

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

Member Data Documentation

TLbtTriggerDynamicInfoFieldsMask iDynInfoFieldsMask

TLbtTriggerDynamicInfoFieldsMask iDynInfoFieldsMask [private]

Trigger dynamic information field mask

CLbtTriggerFilterBase * iFilter

CLbtTriggerFilterBase * iFilter [private]

Filter

TUint iReserved

TUint iReserved [private]

Reserved

TLbtListTriggerSorting iSorting

TLbtListTriggerSorting iSorting [private]

Sorting

TLbtTriggerAttributeFieldsMask iTriigerAttributeFieldsMask

TLbtTriggerAttributeFieldsMask iTriigerAttributeFieldsMask [private]

Trigger entry fields mask