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
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 &) |
Public Member Enumerations | |
---|---|
enum | TLbtListTriggerSorting { ELbtNoSorting = 1, ELbtTriggerNameAscending = 2, ELbtTriggerNameDescending = 3, ELbtDistanceToLatestLocationAscending = 4 } |
CLbtListTriggerOptions | ( | const CLbtListTriggerOptions & | ) | [private] |
By default, prohibit copy constructor
const CLbtListTriggerOptions & |
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.
RWriteStream & aStream | Stream to which the object should be externalized. |
IMPORT_C CLbtTriggerFilterBase * | Filter | ( | ) |
Gets pointer to the filter used for listing triggers. The function returns NULL if the filter is not previously set.
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.
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. |
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.
RReadStream & aStream | Stream from which the object should be internalized. |
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.
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.
IMPORT_C void | SetFilter | ( | CLbtTriggerFilterBase * | aFilter | ) |
Sets the filter used for listing triggers.
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. |
IMPORT_C void | SetRetrievedFields | ( | TLbtTriggerAttributeFieldsMask | aEntryMask, |
TLbtTriggerDynamicInfoFieldsMask | aDynInfoMask = KLbtTriggerDynInfoFieldsAll | |||
) |
Sets which fields shall be filled by Location Triggering Server when listing triggers.
TLbtTriggerAttributeFieldsMask aEntryMask | Mask defines which trigger entry fields shall be filled. |
TLbtTriggerDynamicInfoFieldsMask aDynInfoMask = KLbtTriggerDynInfoFieldsAll | The mask defines which dynamic information field shall be filled. |
IMPORT_C void | SetSortingOption | ( | TLbtListTriggerSorting | aOption | ) |
Sets the sorting option when listing triggers.
TLbtListTriggerSorting aOption | The sorting option when retrieving triggers. |
IMPORT_C TLbtListTriggerSorting | SortingOption | ( | ) | const |
Gets the sorting option when listing triggers. This function returns ELbtNoSorting if the sorting option has not been set.
CLbtListTriggerOptions & | operator= | ( | const CLbtListTriggerOptions & | ) | [private] |
Prohibit assigment operator
const CLbtListTriggerOptions & |
Sorting order when retrieving triggers from Location Triggering Server.
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. |
TLbtTriggerDynamicInfoFieldsMask | iDynInfoFieldsMask | [private] |
Trigger dynamic information field mask
TLbtTriggerAttributeFieldsMask | iTriigerAttributeFieldsMask | [private] |
Trigger entry fields mask
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.