CLbtGeoCell Class Reference

class CLbtGeoCell : public CLbtGeoAreaBase

Geographical cellular area.

Geographical cellular area is defined by the area covered by a network cell. Client applications must specify complete CGI information of the serving cell while defining a geographical cellular area. This includes the Mobile Country Code (MCC), Mobile Network Code (MNC), Location Area Code (LAI) and the Cell Identity (CI). In addition client applications must also mention the the Network Type.

lbt.lib

Since
S60 5.1

Inherits from

Public Member Functions
~CLbtGeoCell()
TBool CGISpecifiedDuringCreation()
IMPORT_C TUintCellId()
IMPORT_C TUintLocationAreaCode()
IMPORT_C TNetworkCountryCodeNetworkCountryCode()
IMPORT_C TNetworkIdentityNetworkIdentityCode()
IMPORT_C RMobilePhone::TMobilePhoneNetworkModeNetworkType()
IMPORT_C CLbtGeoCell *NewL()
IMPORT_C CLbtGeoCell *NewL(RMobilePhone::TMobilePhoneNetworkMode, TNetworkCountryCode, TNetworkIdentity, TUint, TUint)
IMPORT_C CLbtGeoCell *NewLC()
IMPORT_C CLbtGeoCell *NewLC(RMobilePhone::TMobilePhoneNetworkMode, TNetworkCountryCode, TNetworkIdentity, TUint, TUint)
IMPORT_C voidSetCellId(TUint)
IMPORT_C voidSetLocationAreaCode(TUint)
IMPORT_C voidSetNetworkCountryCode(TNetworkCountryCode)
IMPORT_C voidSetNetworkIdentityCode(TNetworkIdentity)
IMPORT_C voidSetNetworkType(RMobilePhone::TMobilePhoneNetworkMode)
TGeoAreaType Type()
voidValidateCellInformationL()
voidValidateCreateCellInformationL()
Protected Member Functions
CLbtGeoCell()
CLbtGeoCell(const CLbtGeoCell &)
voidConstructL()
voidConstructL(RMobilePhone::TMobilePhoneNetworkMode, TNetworkCountryCode, TNetworkIdentity, TUint, TUint)
voidDoExternalizeL(RWriteStream &)
voidDoInternalizeL(RReadStream &)
CLbtGeoCell &operator=(const CLbtGeoCell &)
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()
CLbtGeoAreaBase::CLbtGeoAreaBase()
CLbtGeoAreaBase::ExternalizeL(RWriteStream &)const
CLbtGeoAreaBase::InternalizeL(RReadStream &)
CLbtGeoAreaBase::~CLbtGeoAreaBase()
Inherited Enumerations
CLbtGeoAreaBase:TGeoAreaType
Private Attributes
TUint iCellId
TUint iCountryCode
TUint iLocationAreaCode
TUint iNetworkId
RMobilePhone::TMobilePhoneNetworkMode iNetworkType

Constructor & Destructor Documentation

CLbtGeoCell()

CLbtGeoCell()[protected]

default constructor

CLbtGeoCell(const CLbtGeoCell &)

CLbtGeoCell(const CLbtGeoCell &)[protected]

By default, prohibit copy constructor

Parameters

const CLbtGeoCell &

~CLbtGeoCell()

IMPORT_C~CLbtGeoCell()[virtual]

Destructor

Member Functions Documentation

CGISpecifiedDuringCreation()

TBool CGISpecifiedDuringCreation()const [virtual]

This method is for furture use and is currently not supported.

CellId()

IMPORT_C TUintCellId()const

Gets the cell id. If the cell code has not been set before, the returned value is zero.

ConstructL()

voidConstructL()[protected]

Symbian 2nd phase constructor.

ConstructL(RMobilePhone::TMobilePhoneNetworkMode, TNetworkCountryCode, TNetworkIdentity, TUint, TUint)

voidConstructL(RMobilePhone::TMobilePhoneNetworkModeaNetworkType,
TNetworkCountryCodeaCountryCode,
TNetworkIdentityaNetworkId,
TUintaLocationAreaCode,
TUintaCellId
)[protected]

Symbian 2nd phase constructor.

Parameters

RMobilePhone::TMobilePhoneNetworkMode aNetworkType
TNetworkCountryCode aCountryCode
TNetworkIdentity aNetworkId
TUint aLocationAreaCode
TUint aCellId

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.

LocationAreaCode()

IMPORT_C TUintLocationAreaCode()const

Gets the location area code. If the location area code has not been set before, the returned value is zero.

NetworkCountryCode()

IMPORT_C TNetworkCountryCodeNetworkCountryCode()const

Gets the network country code. If the country code has not been set before, the returned value is zero.

NetworkIdentityCode()

IMPORT_C TNetworkIdentityNetworkIdentityCode()const

Gets the network identity code. If the network identity code has not been set before, the returned value is zero.

NetworkType()

IMPORT_C RMobilePhone::TMobilePhoneNetworkModeNetworkType()const

Returns the type of network

NewL()

IMPORT_C CLbtGeoCell *NewL()[static]
Allocates and constructs a new geographical cellular area object. In the returned object,the country code,network code,location area code and cell id are set to zero.
leave
Other standard Symbian error code, such as KErrNoMemory

NewL(RMobilePhone::TMobilePhoneNetworkMode, TNetworkCountryCode, TNetworkIdentity, TUint, TUint)

IMPORT_C CLbtGeoCell *NewL(RMobilePhone::TMobilePhoneNetworkModeaNetworkType,
TNetworkCountryCodeaCountryCode,
TNetworkIdentityaNetworkId,
TUintaLocationAreaCode,
TUintaCellId
)[static]

Allocates and constructs a new geographical cellular area object.

panic
ELbtErrArgument If inputs are negative or zero.
leave
Other standard Symbian error code, such as KErrNoMemory

Parameters

RMobilePhone::TMobilePhoneNetworkMode aNetworkTypeThe network type
TNetworkCountryCode aCountryCodeThe network country code
TNetworkIdentity aNetworkIdThe network identity code
TUint aLocationAreaCodeThe location area code
TUint aCellIdThe cell id

NewLC()

IMPORT_C CLbtGeoCell *NewLC()[static]
Allocates and constructs a new geographical cellular area object and pushes it onto cleanup stack. In the returned object,the country code,network code,location area code and cell id are set to zero.
leave
Other standard Symbian error code, such as KErrNoMemory

NewLC(RMobilePhone::TMobilePhoneNetworkMode, TNetworkCountryCode, TNetworkIdentity, TUint, TUint)

IMPORT_C CLbtGeoCell *NewLC(RMobilePhone::TMobilePhoneNetworkModeaNetworkType,
TNetworkCountryCodeaCountryCode,
TNetworkIdentityaNetworkId,
TUintaLocationAreaCode,
TUintaCellId
)[static]

Allocates and constructs a new geographical cellular area object and pushes it onto cleanup stack.

panic
ELbtErrArgument If inputs are negative or zero.
leave
Other standard Symbian error code, such as KErrNoMemory

Parameters

RMobilePhone::TMobilePhoneNetworkMode aNetworkTypeThe network type
TNetworkCountryCode aCountryCodeThe network country code
TNetworkIdentity aNetworkIdThe network identity code
TUint aLocationAreaCodeThe location area code
TUint aCellIdThe cell id

SetCellId(TUint)

IMPORT_C voidSetCellId(TUintaCellId)

Sets the cell id.

Parameters

TUint aCellIdThe cell id.

SetLocationAreaCode(TUint)

IMPORT_C voidSetLocationAreaCode(TUintaLocationAreaCode)

Sets the location area code.

Parameters

TUint aLocationAreaCodeThe location area code.

SetNetworkCountryCode(TNetworkCountryCode)

IMPORT_C voidSetNetworkCountryCode(TNetworkCountryCodeaCountryCode)
Sets the network country code.
panic
ELbtErrArgument If the input location area code is negative or zero.

Parameters

TNetworkCountryCode aCountryCodeThe network country code.

SetNetworkIdentityCode(TNetworkIdentity)

IMPORT_C voidSetNetworkIdentityCode(TNetworkIdentityaNetworkId)
Sets the network identity code.
panic
ELbtErrArgument If the input location area code is negative or zero.

Parameters

TNetworkIdentity aNetworkIdThe network identity code.

SetNetworkType(RMobilePhone::TMobilePhoneNetworkMode)

IMPORT_C voidSetNetworkType(RMobilePhone::TMobilePhoneNetworkModeaNetworkType)

Sets the network type.

Parameters

RMobilePhone::TMobilePhoneNetworkMode aNetworkTypeThe type of network

Type()

TGeoAreaType Type()const [virtual]

Returns the type of geographical area, CLbtGeoAreaBase::ECellular

ValidateCellInformationL()

voidValidateCellInformationL()

Validates cell information.

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

ValidateCreateCellInformationL()

voidValidateCreateCellInformationL()

Validates create cell information.

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

operator=(const CLbtGeoCell &)

CLbtGeoCell &operator=(const CLbtGeoCell &)[protected]

Prohibit assigment operator

Parameters

const CLbtGeoCell &

Member Data Documentation

TUint iCellId

TUint iCellId[private]

Cell id

TUint iCountryCode

TUint iCountryCode[private]

Network country code

TUint iLocationAreaCode

TUint iLocationAreaCode[private]

Location area code

TUint iNetworkId

TUint iNetworkId[private]

Network identity code

RMobilePhone::TMobilePhoneNetworkMode iNetworkType

RMobilePhone::TMobilePhoneNetworkMode iNetworkType[private]

Network type