CLbtGeoCell Class Reference

#include <mw/lbtgeocell.h>

Link against: lbt.lib

class CLbtGeoCell : public CLbtGeoAreaBase

Inherits from

Public Member Functions
virtual ~CLbtGeoCell()
virtual 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)
virtual TGeoAreaType Type()
voidValidateCellInformationL()
voidValidateCreateCellInformationL()
Protected Member Functions
CLbtGeoCell()
CLbtGeoCell(const CLbtGeoCell &)
voidConstructL()
voidConstructL(RMobilePhone::TMobilePhoneNetworkMode, TNetworkCountryCode, TNetworkIdentity, TUint, TUint)
virtual voidDoExternalizeL(RWriteStream &)
virtual voidDoInternalizeL(RReadStream &)
CLbtGeoCell &operator=(const CLbtGeoCell &)
Inherited Enumerations
CLbtGeoAreaBase:TGeoAreaType
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()

Detailed Description

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.

Since
S60 5.1

Constructor & Destructor Documentation

CLbtGeoCell ( )

CLbtGeoCell()[protected]

default constructor

CLbtGeoCell ( const CLbtGeoCell & )

CLbtGeoCell(const CLbtGeoCell &)[protected]

By default, prohibit copy constructor

~CLbtGeoCell ( )

IMPORT_C~CLbtGeoCell()[virtual]

Destructor

Member Function 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.

Returns: The cell id.

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.

DoExternalizeL ( RWriteStream & )

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

Externalize method that subclass must implement.

ParameterDescription
aStreamStream to which the object should be externalized.

DoInternalizeL ( RReadStream & )

voidDoInternalizeL(RReadStream &aStream)[protected, virtual]

Internalize method that subclass must implement.

ParameterDescription
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.

Returns: The location area code.

NetworkCountryCode ( )

IMPORT_C TNetworkCountryCodeNetworkCountryCode()const

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

Returns: The network country code.

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.

Returns: The network identity code.

NetworkType ( )

IMPORT_C RMobilePhone::TMobilePhoneNetworkModeNetworkType()const

Returns the type of network

Returns: The type of network. If the Network Type is not set earlier, this method would return RMobilePhone::ENetworkModeUnknown.

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

Returns: Pointer to the new geographical cellular area object.

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
ParameterDescription
aNetworkTypeThe network type
aCountryCodeThe network country code
aNetworkIdThe network identity code
aLocationAreaCodeThe location area code
aCellIdThe cell id

Returns: Pointer to the new geographical cellular area object.

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

Returns: Pointer to the new geographical cellular area object.

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
ParameterDescription
aNetworkTypeThe network type
aCountryCodeThe network country code
aNetworkIdThe network identity code
aLocationAreaCodeThe location area code
aCellIdThe cell id

Returns: Pointer to the new geographical cellular area object.

SetCellId ( TUint )

IMPORT_C voidSetCellId(TUintaCellId)

Sets the cell id.

ParameterDescription
aCellIdThe cell id.

SetLocationAreaCode ( TUint )

IMPORT_C voidSetLocationAreaCode(TUintaLocationAreaCode)

Sets the location area code.

ParameterDescription
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.
ParameterDescription
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.
ParameterDescription
aNetworkIdThe network identity code.

SetNetworkType ( RMobilePhone::TMobilePhoneNetworkMode )

IMPORT_C voidSetNetworkType(RMobilePhone::TMobilePhoneNetworkModeaNetworkType)

Sets the network type.

ParameterDescription
aNetworkTypeThe type of network

Type ( )

TGeoAreaType Type()const [virtual]

Reimplemented from CLbtGeoAreaBase::Type()const

Returns the type of geographical area, CLbtGeoAreaBase::ECellular

Returns: 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