CLbtGeoCircle Class Reference

class CLbtGeoCircle : public CLbtGeoAreaBase

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.

lbt.lib

Since
S60 5.1

Inherits from

Constructor & Destructor Documentation

CLbtGeoCircle()

CLbtGeoCircle()[private]

Default constructor

CLbtGeoCircle(const CLbtGeoCircle &)

CLbtGeoCircle(const CLbtGeoCircle &)[private]

By default, prohibit copy constructor

Parameters

const CLbtGeoCircle &

~CLbtGeoCircle()

IMPORT_C~CLbtGeoCircle()

Destructor.

Member Functions 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,

ConstructL()

voidConstructL()[private]

Symbian 2nd phase constructor

ConstructL(TCoordinate, TReal)

voidConstructL(TCoordinateaCenter,
TRealaRadius
)[private]

Symbian 2nd phase constructor

Parameters

TCoordinate aCenter
TReal aRadius

DoExternalizeL(RWriteStream &)

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

Externalize method that subclass must implement.

Parameters

RWriteStream & aStreamStream to which the object should be externalized.

DoInternalizeL(RReadStream &)

voidDoInternalizeL(RReadStream &aStream)[protected, virtual]

Internalize method that subclass must implement.

Parameters

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

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.

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.

Parameters

const TCoordinate & aCenterThe coordinate of the center.
TReal aRadiusInMetersThe radius of the circle in meters.

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.

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.

Parameters

const TCoordinate & aCenterThe coordinate of the center.
TReal aRadiusInMetersThe radius of the circle in meters.

Radius()

IMPORT_C TRealRadius()const

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

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.

Parameters

CLbtGeoAreaBase * aGeoAreaA pointer representing a geographical area.

SetCenter(const TCoordinate &)

IMPORT_C voidSetCenter(const TCoordinate &aCenter)

Sets the center of the circle.

Parameters

const TCoordinate & 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.

Parameters

TReal aRadiusInMetersThe radius of the circle in meters.

Type()

TGeoAreaType Type()const [virtual]

Returns the type of geographical area, CLbtGeoAreaBase::ECircle

ValidateCircleInformationL()

voidValidateCircleInformationL()

Validates cell information.

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

operator=(const CLbtGeoCircle &)

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

Prohibit assigment operator

Parameters

const CLbtGeoCircle &

Member Data Documentation

RPointerArray< CLbtGeoAreaBase > iAdditionalGeoAreaInfo

RPointerArray< CLbtGeoAreaBase >iAdditionalGeoAreaInfo[private]

An array of instances representing additional geographical area information

TCoordinate iCenter

TCoordinate iCenter[private]

The center of the circle.

TReal iRadius

TReal iRadius[private]

Radius of the circle in meters.