CLbtGeoCircle Class Reference

#include <mw/lbtgeocircle.h>

Link against: lbt.lib

class CLbtGeoCircle : public CLbtGeoAreaBase

Inherits from

Detailed Description

Geographical circular area.

A geographical circular area is defined by the center of the circle and the radius. The radius is in meters. The altitude in the center's coordinate is always ignored. It is optionally also possible to provide additional geographical area information of CLbtGeoCell type. Providing additional cell information would enable further optimization by reducing the number of GPS fixes required to supervise the trigger, there by, reducing the impact on battery consumption. Triggers would, initially, be monitored using the cell information provided. GPS would be used to check the coordinates only when the mobile terminal reaches the cell / cells specified. If a particular location is served by multiple cells, then it is important to mention all available cell information. If not, there is a possibility of missing triggers even when the mobile terminal reaches the location specified by the coordinates.

Since
S60 5.1

Constructor & Destructor Documentation

~CLbtGeoCircle ( )

IMPORT_C~CLbtGeoCircle()

Destructor.

Member Function Documentation

Center ( )

TCoordinate Center()const [virtual]

Gets the center of the area. If the center has not been set before, the returned coordinate has latitude, longitude and altitude set to NaN,

Returns: The center of the area.

DoExternalizeL ( RWriteStream & )

voidDoExternalizeL(RWriteStream &aStream)const [protected, virtual]

Reimplemented from CLbtGeoAreaBase::DoExternalizeL(RWriteStream &)const

Externalize method that subclass must implement.

ParameterDescription
aStreamStream to which the object should be externalized.

DoInternalizeL ( RReadStream & )

voidDoInternalizeL(RReadStream &aStream)[protected, virtual]

Reimplemented from CLbtGeoAreaBase::DoInternalizeL(RReadStream &)

Internalize method that subclass must implement.

ParameterDescription
aStreamStream from which the object should be internalized.

GetAdditionalGeoAreaInfo ( )

IMPORT_C RPointerArray< CLbtGeoAreaBase > &GetAdditionalGeoAreaInfo()

Gets geographical area information. The following method is currently not supported. This method will only return empty array when invoked.

Returns: An array of geographical area instances

NewL ( )

IMPORT_C CLbtGeoCircle *NewL()[static]

Allocates and constructs a new geographical circular area object. In the returned object, the latitude, longitude and altitude are set to NaN, and the radius is set to NaN.

Returns: Pointer to the new geographical circular area object.

NewL ( const TCoordinate &, TReal )

IMPORT_C CLbtGeoCircle *NewL(const TCoordinate &aCenter,
TRealaRadiusInMeters
)[static]

Allocates and constructs a new geographical circular area object with specified center coordinate and radius.

panic
ELbtErrArgument If the input radius is negative.
ParameterDescription
aCenterThe coordinate of the center.
aRadiusInMetersThe radius of the circle in meters.

Returns: Pointer to the new geographical circle area object.

NewLC ( )

IMPORT_C CLbtGeoCircle *NewLC()[static]

Constructs a new geographical circular area object and pushes it onto cleanup stack. In the returned object, the latitude, longitude and altitude are set to NaN, and the radius is set to NaN.

Returns: Pointer to the new geographical circular area object.

NewLC ( const TCoordinate &, TReal )

IMPORT_C CLbtGeoCircle *NewLC(const TCoordinate &aCenter,
TRealaRadiusInMeters
)[static]

Allocates and constructs a new geographical circular area object with specified center coordinate and radius. The constructed object is pushed onto cleanup stack.

panic
ELbtErrArgument If the input radius is negative.
ParameterDescription
aCenterThe coordinate of the center.
aRadiusInMetersThe radius of the circle in meters.

Returns: Pointer to the new geographical circle area object.

Radius ( )

IMPORT_C TRealRadius()const

Gets the radius of the circle. If the radius has not been set before, the returned value is NaN.

Returns: The radius of the circle in meters.

SetAdditionalGeoAreaInfo ( CLbtGeoAreaBase * )

IMPORT_C voidSetAdditionalGeoAreaInfo(CLbtGeoAreaBase *aGeoArea)

Sets additional geographical area information. The geographical information provided can only be of CLbtGeoCell type. This is optional and clients may specify this information when available.The following method is currently not supported.

panic
ELbtErrArgument if argument passed is NULL or if the argument passed is of any other type other than CLbtGeoCell.
ParameterDescription
aGeoAreaA pointer representing a geographical area.

SetCenter ( const TCoordinate & )

IMPORT_C voidSetCenter(const TCoordinate &aCenter)

Sets the center of the circle.

ParameterDescription
aCenterThe coordinate of the center.

SetRadius ( TReal )

IMPORT_C voidSetRadius(TRealaRadiusInMeters)

Sets the radius of the circle.

panic
ELbtErrArgument If the input radius is negative.
ParameterDescription
aRadiusInMetersThe radius of the circle in meters.

Type ( )

TGeoAreaType Type()const [virtual]

Reimplemented from CLbtGeoAreaBase::Type()const

Returns the type of geographical area, CLbtGeoAreaBase::ECircle

Returns: CLbtGeoAreaBase::ECircle.

ValidateCircleInformationL ( )

voidValidateCircleInformationL()

Validates cell information.

leave
KErrArgument if any of the mandatory parameters have not been specified.