#include <lbsareainfo.h>
class TPositionAreaExtendedInfo : public TPositionAreaInfo |
Protected Attributes | |
---|---|
TBool | iCID |
TBool | iLAC |
TBool | iMCC |
TBool | iMNC |
Public Member Functions | |
---|---|
TPositionAreaExtendedInfo() | |
IMPORT_C TBool | CellIdMatch() |
IMPORT_C TBool | LocationAreaCodeMatch() |
IMPORT_C TBool | MobileCountryCodeMatch() |
IMPORT_C TBool | MobileNetworkCodeMatch() |
IMPORT_C void | SetCellIdMatch(TBool) |
IMPORT_C void | SetLocationAreaCodeMatch(TBool) |
IMPORT_C void | SetMobileCountryCodeMatch(TBool) |
IMPORT_C void | SetMobileNetworkCodeMatch(TBool) |
Inherited Attributes | |
---|---|
TPositionAreaInfo::iArea | |
TPositionClassTypeBase::iPosClassSize | |
TPositionClassTypeBase::iPosClassType |
Inherited Enumerations | |
---|---|
TPositionAreaInfo:_TArea |
Inherited Type Definitions | |
---|---|
TPositionAreaInfo::TArea |
TPositionAreaExtendedInfo is a specialised area class and provides detailed information about the match between the current network information and the network information related to a known position.
In the future the class may be extended to provide information about a match between other available location information (e.g. WiFi MAC address).
In order to provide a user with simplified area information, the match between the two network information should be translated into a area information supported by the TPositionAreaInfo type.
||==========================================================================================|| || Mobile Country Code | Mobile Network Code | Location Area Code | Cell Id | Area || ||==========================================================================================|| || 1 | 1 | 1 | 1 | EAreaCity || || 1 | 1 | 1 | 0 | EAreaRegion || || 1 | 1 | 0 | 0 | EAreaCountry || || 1 | 0 | 0 | 0 | EAreaCountry || || Any other combination | EAreaUnknown || ||==========================================================================================||
Please note that the conversion of the Cell Id match assumes the worst case scenario, where cells are big (e.g. tens of km radius). In centres of big cities the cell sizes are normally much smaller, taking the area down to the District or even Street level.
IMPORT_C | TPositionAreaExtendedInfo | ( | ) |
Constructor for TPositionAreaExtendedInfo
IMPORT_C TBool | CellIdMatch | ( | ) | const |
Returns Cell Id code match.
In practice cell radius varies from 10s of meters in buildings, through 100s of meters in cities up to 10s of kilometres in countryside, but typically do not exceed 35 kilometres.
Returns: TRUE if the current Cell Id and the Cell Id associated with the position match; FALSE otherwise.
IMPORT_C TBool | LocationAreaCodeMatch | ( | ) | const |
Returns Location Area code match.
Typically a Location Area consists of 10s or even 100s of Cells.
See also: CellIdMatch()
Returns: TRUE if the current Location Area Code and the Location Area Code associated with the position match; FALSE otherwise.
IMPORT_C TBool | MobileCountryCodeMatch | ( | ) | const |
Returns Country Code match. Country codes are network operator independent.
Returns: TRUE if the current Country Code and the Country Code associated with the position match; FALSE otherwise.
IMPORT_C TBool | MobileNetworkCodeMatch | ( | ) | const |
Returns Mobile Network code match.
Returns: TRUE if the current Network Code and the Network Code associated with the position match; FALSE otherwise.
IMPORT_C void | SetCellIdMatch | ( | TBool | aCidMatch | ) |
Set whether a match for the Cell ID was found or not (this method is called by the server, not the client)
IMPORT_C void | SetLocationAreaCodeMatch | ( | TBool | aLacMatch | ) |
Set whether a match for the Loca Area Code was found or not (this method is called by the server, not the client)
IMPORT_C void | SetMobileCountryCodeMatch | ( | TBool | aMccMatch | ) |
Set whether a match for the Mobile Country Code was found or not (this method is called by the server, not the client)
IMPORT_C void | SetMobileNetworkCodeMatch | ( | TBool | aMncMatch | ) |
Set whether a match for the Mobile Network Code was found or not (this method is called by the server, not the client)