RLbsNetSimTest Class Reference

class RLbsNetSimTest : public RSessionBase

Inherits from

Public Member Functions
RLbsNetSimTest()
~RLbsNetSimTest()
IMPORT_C voidCancelNetworkLocationRequest()
IMPORT_C voidCancelNetworkPrivacyRequest()
IMPORT_C TBoolClearAssistanceDataFilters()
IMPORT_C voidClose()
IMPORT_C TIntConnectL(MLbsNetSimTestObserver *)
IMPORT_C TBoolNext(TInt)
TInt Send(TInt)
TInt Send(TInt, const TIpcArgs &)
voidSendReceive(TInt, const TIpcArgs &, TRequestStatus &)
TInt SendReceive(TInt, const TIpcArgs &)
voidSendReceive(TInt, TRequestStatus &)
TInt SendReceive(TInt)
IMPORT_C TBoolSendResetAssistanceData(TLbsAssistanceDataGroup)
IMPORT_C TBoolSetAssistanceDataProvider(TUid)
IMPORT_C TBoolSetDefaultAssitanceDataFilter(TLbsAssistanceDataGroup &)
IMPORT_C TBoolSetEmergenyStatus(TBool)
IMPORT_C TBoolSetMoreAssitanceDataFilter(TLbsAssistanceDataGroup &)
IMPORT_C TBoolSetQuality(TLbsNetPosRequestQuality &)
IMPORT_C TBoolSetReferenceLocation(TPosition &)
IMPORT_C TBoolSetReferenceLocation(TDesC8 &)
IMPORT_C TBoolSetResponseError(TInt32, TBool)
IMPORT_C TBoolSetResponseTime(TInt32, TBool)
IMPORT_C TBoolSetRoamingStatus(TBool)
IMPORT_C TBoolSetStepMode(TBool)
IMPORT_C voidStartNetworkLocationRequest()
IMPORT_C voidStartNetworkPrivacyRequest(TLbsNetPosRequestPrivacy, TLbsExternalRequestInfo &)
Private Member Functions
TInt StartServer()
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Public Attributes
const TIntKNetSimNetworkNotAvailable
Private Attributes
CMessageReleaseLcsLocationNotification *iMessageReleaseLcsLocationNotification
CMessageStartNetworkLocationRequest *iMessageStartNetworkLocationRequest
CNotificationConnect *iNotificationConnect
CNotificationDisconnect *iNotificationDisconnect
CNotificationFacilityLcsMoLrResult *iNotificationFacilityLcsMoLrResult
CNotificationMeasurementControlLocation *iNotificationMeasurementControlLocation
CNotificationMeasurementReport *iNotificationMeasurementReport
CNotificationMeasurementReportControlFailure *iNotificationMeasurementReportControlFailure
CNotificationMeasurementReportRequestMoreAssitanceData *iNotificationMeasurementReportRequestMoreAssitanceData
CNotificationRegisterLcsMoLr *iNotificationRegisterLcsMoLr
CNotificationReleaseLcsMoLr *iNotificationReleaseLcsMoLr
MLbsNetSimTestObserver *iObserver
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RLbsNetSimTest()

IMPORT_CRLbsNetSimTest()

Constructor

~RLbsNetSimTest()

IMPORT_C~RLbsNetSimTest()

Destructor

Member Functions Documentation

CancelNetworkLocationRequest()

IMPORT_C voidCancelNetworkLocationRequest()

Cancels an outstanding network location request

CancelNetworkPrivacyRequest()

IMPORT_C voidCancelNetworkPrivacyRequest()

Cancel an outstanding network privacy request

ClearAssistanceDataFilters()

IMPORT_C TBoolClearAssistanceDataFilters()

Clear the filters back to there default states

Close()

IMPORT_C voidClose()

Close the connection to the server

ConnectL(MLbsNetSimTestObserver *)

IMPORT_C TIntConnectL(MLbsNetSimTestObserver *aObserver)

Connect to the server

Parameters

MLbsNetSimTestObserver * aObserverobserver to use for callbacks

Next(TInt)

IMPORT_C TBoolNext(TIntaError)

Enable the simulator to peform the next step

Parameters

TInt aErrorThe error to use, KErrNone for normal behaviour

Send(TInt)

TInt Send(TIntaFunction)const [inline]

Issues a blind request to the server with the specified function number, but with no arguments.

A blind request is one where the server does not issue a response to the client.

panic
USER 72 if the function number is negative.

Parameters

TInt aFunctionThe function number identifying the request.

Send(TInt, const TIpcArgs &)

TInt Send(TIntaFunction,
const TIpcArgs &aArgs
)const [inline]

Issues a blind request to the server with the specified function number, and arguments.

A blind request is one where the server does not issue a response to the client.

panic
USER 72 if the function number is negative.

Parameters

TInt aFunctionThe function number identifying the request.
const TIpcArgs & aArgsA set of up to 4 arguments and their types to be passed to the server.

SendReceive(TInt, const TIpcArgs &, TRequestStatus &)

voidSendReceive(TIntaFunction,
const TIpcArgs &aArgs,
TRequestStatus &aStatus
)const [inline]

Issues an asynchronous request to the server with the specified function number and arguments.

The completion status of the request is returned via the request status object, aStatus.

panic
USER 72 if the function number is negative.

Parameters

TInt aFunctionThe function number identifying the request.
const TIpcArgs & aArgsA set of up to 4 arguments and their types to be passed to the server.
TRequestStatus & aStatusThe request status object used to contain the completion status of the request.

SendReceive(TInt, const TIpcArgs &)

TInt SendReceive(TIntaFunction,
const TIpcArgs &aArgs
)const [inline]

Issues a synchronous request to the server with the specified function number and arguments.

panic
USER 72 if the function number is negative.

Parameters

TInt aFunctionThe function number identifying the request.
const TIpcArgs & aArgsA set of up to 4 arguments and their types to be passed to the server.

SendReceive(TInt, TRequestStatus &)

voidSendReceive(TIntaFunction,
TRequestStatus &aStatus
)const [inline]

Issues an asynchronous request to the server with the specified function number, but with no arguments.

The completion status of the request is returned via the request status object, aStatus.

panic
USER 72 if the function number is negative.

Parameters

TInt aFunctionThe function number identifying the request.
TRequestStatus & aStatusThe request status object used to contain the completion status of the request.

SendReceive(TInt)

TInt SendReceive(TIntaFunction)const [inline]

Issues a synchronous request to the server with the specified function number, but with no arguments.

panic
USER 72 if the function number is negative.

Parameters

TInt aFunctionThe function number identifying the request.

SendResetAssistanceData(TLbsAssistanceDataGroup)

IMPORT_C TBoolSendResetAssistanceData(TLbsAssistanceDataGroupaMask)

Parameters

TLbsAssistanceDataGroup aMask

SetAssistanceDataProvider(TUid)

IMPORT_C TBoolSetAssistanceDataProvider(TUidaProvider)

Select which assitance data provider to use

Parameters

TUid aProviderthe TUid of the provider to use

SetDefaultAssitanceDataFilter(TLbsAssistanceDataGroup &)

IMPORT_C TBoolSetDefaultAssitanceDataFilter(TLbsAssistanceDataGroup &aFilter)

Set the default assitance data returned

Parameters

TLbsAssistanceDataGroup & aFilterthe filter

SetEmergenyStatus(TBool)

IMPORT_C TBoolSetEmergenyStatus(TBoolaEmergency)

Set the emergeny status of the phone

Parameters

TBool aEmergencyETrue if the phone should be in emergeny status

SetMoreAssitanceDataFilter(TLbsAssistanceDataGroup &)

IMPORT_C TBoolSetMoreAssitanceDataFilter(TLbsAssistanceDataGroup &aFilter)

Set the default assitance data returned if more assitance data is required

Parameters

TLbsAssistanceDataGroup & aFilterthe filter

SetQuality(TLbsNetPosRequestQuality &)

IMPORT_C TBoolSetQuality(TLbsNetPosRequestQuality &aQuality)

Set the quality

Parameters

TLbsNetPosRequestQuality & aQualityThe quality of the data

SetReferenceLocation(TPosition &)

IMPORT_C TBoolSetReferenceLocation(TPosition &aLocation)

Set the reference location to use

The reference location is passed to the assitance data supply module when retrieving assistance data.

Parameters

TPosition & aLocationthe reference location

SetReferenceLocation(TDesC8 &)

IMPORT_C TBoolSetReferenceLocation(TDesC8 &aLocation)

Set the reference location to use

The reference location is passed to the assitance data supply module when retrieving assistance data.

Parameters

TDesC8 & aLocationthe reference location

SetResponseError(TInt32, TBool)

IMPORT_C TBoolSetResponseError(TInt32aError,
TBoolaSticky
)

Set the error to respond to a request

Parameters

TInt32 aErrorany error value
TBool aStickycontinue using this delay until further notice

SetResponseTime(TInt32, TBool)

IMPORT_C TBoolSetResponseTime(TInt32aTime,
TBoolaSticky
)

Set the time taken to respond to a request

Parameters

TInt32 aTimethe time in milliseconds to wait before responding
TBool aStickycontinue using this delay until further notice

SetRoamingStatus(TBool)

IMPORT_C TBoolSetRoamingStatus(TBoolaRoaming)

Set the roaming status of the phone

Parameters

TBool aRoamingETrue if the phone should be in roaming status

SetStepMode(TBool)

IMPORT_C TBoolSetStepMode(TBoolaStepMode)

Enable the simulators step mode

Parameters

TBool aStepModeETrue to enter step mode

StartNetworkLocationRequest()

IMPORT_C voidStartNetworkLocationRequest()

Start a network location request

StartNetworkPrivacyRequest(TLbsNetPosRequestPrivacy, TLbsExternalRequestInfo &)

IMPORT_C voidStartNetworkPrivacyRequest(TLbsNetPosRequestPrivacyaType,
TLbsExternalRequestInfo &aRequest
)

Start a network privacy request

StartServer()

TInt StartServer()[private, static]

Member Data Documentation

const TInt KNetSimNetworkNotAvailable

const TIntKNetSimNetworkNotAvailable[static]

CMessageReleaseLcsLocationNotification * iMessageReleaseLcsLocationNotification

CMessageReleaseLcsLocationNotification *iMessageReleaseLcsLocationNotification[private]

CMessageStartNetworkLocationRequest * iMessageStartNetworkLocationRequest

CMessageStartNetworkLocationRequest *iMessageStartNetworkLocationRequest[private]

CNotificationConnect * iNotificationConnect

CNotificationConnect *iNotificationConnect[private]

CNotificationDisconnect * iNotificationDisconnect

CNotificationDisconnect *iNotificationDisconnect[private]

CNotificationFacilityLcsMoLrResult * iNotificationFacilityLcsMoLrResult

CNotificationFacilityLcsMoLrResult *iNotificationFacilityLcsMoLrResult[private]

CNotificationMeasurementControlLocation * iNotificationMeasurementControlLocation

CNotificationMeasurementControlLocation *iNotificationMeasurementControlLocation[private]

CNotificationMeasurementReport * iNotificationMeasurementReport

CNotificationMeasurementReport *iNotificationMeasurementReport[private]

CNotificationMeasurementReportControlFailure * iNotificationMeasurementReportControlFailure

CNotificationMeasurementReportControlFailure *iNotificationMeasurementReportControlFailure[private]

CNotificationMeasurementReportRequestMoreAssitanceData * iNotificationMeasurementReportRequestMoreAssitanceData

CNotificationMeasurementReportRequestMoreAssitanceData *iNotificationMeasurementReportRequestMoreAssitanceData[private]

CNotificationRegisterLcsMoLr * iNotificationRegisterLcsMoLr

CNotificationRegisterLcsMoLr *iNotificationRegisterLcsMoLr[private]

CNotificationReleaseLcsMoLr * iNotificationReleaseLcsMoLr

CNotificationReleaseLcsMoLr *iNotificationReleaseLcsMoLr[private]

MLbsNetSimTestObserver * iObserver

MLbsNetSimTestObserver *iObserver[private]