RLbsNetSimTest Class Reference

class RLbsNetSimTest : public RSessionBase

Inherits from

Public Member Functions
RLbsNetSimTest ()
~RLbsNetSimTest ()
IMPORT_C void CancelNetworkLocationRequest ()
IMPORT_C void CancelNetworkPrivacyRequest ()
IMPORT_C TBool ClearAssistanceDataFilters ()
IMPORT_C void Close ()
IMPORT_C TInt ConnectL ( MLbsNetSimTestObserver *)
IMPORT_C TBool Next ( TInt )
TInt Send ( TInt )
TInt Send ( TInt , const TIpcArgs &)
void SendReceive ( TInt , const TIpcArgs &, TRequestStatus &)
TInt SendReceive ( TInt , const TIpcArgs &)
void SendReceive ( TInt , TRequestStatus &)
TInt SendReceive ( TInt )
IMPORT_C TBool SendResetAssistanceData ( TLbsAssistanceDataGroup )
IMPORT_C TBool SetAssistanceDataProvider ( TUid )
IMPORT_C TBool SetDefaultAssitanceDataFilter ( TLbsAssistanceDataGroup &)
IMPORT_C TBool SetEmergenyStatus ( TBool )
IMPORT_C TBool SetMoreAssitanceDataFilter ( TLbsAssistanceDataGroup &)
IMPORT_C TBool SetQuality ( TLbsNetPosRequestQuality &)
IMPORT_C TBool SetReferenceLocation ( TPosition &)
IMPORT_C TBool SetReferenceLocation ( TDesC8 &)
IMPORT_C TBool SetResponseError ( TInt32 , TBool )
IMPORT_C TBool SetResponseTime ( TInt32 , TBool )
IMPORT_C TBool SetRoamingStatus ( TBool )
IMPORT_C TBool SetStepMode ( TBool )
IMPORT_C void StartNetworkLocationRequest ()
IMPORT_C void StartNetworkPrivacyRequest ( 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 TInt KNetSimNetworkNotAvailable
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_C RLbsNetSimTest ( )

Constructor

~RLbsNetSimTest()

IMPORT_C ~RLbsNetSimTest ( )

Destructor

Member Functions Documentation

CancelNetworkLocationRequest()

IMPORT_C void CancelNetworkLocationRequest ( )

Cancels an outstanding network location request

CancelNetworkPrivacyRequest()

IMPORT_C void CancelNetworkPrivacyRequest ( )

Cancel an outstanding network privacy request

ClearAssistanceDataFilters()

IMPORT_C TBool ClearAssistanceDataFilters ( )

Clear the filters back to there default states

Close()

IMPORT_C void Close ( )

Close the connection to the server

ConnectL(MLbsNetSimTestObserver *)

IMPORT_C TInt ConnectL ( MLbsNetSimTestObserver * aObserver )

Connect to the server

Parameters

MLbsNetSimTestObserver * aObserver observer to use for callbacks

Next(TInt)

IMPORT_C TBool Next ( TInt aError )

Enable the simulator to peform the next step

Parameters

TInt aError The error to use, KErrNone for normal behaviour

Send(TInt)

TInt Send ( TInt aFunction ) 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 aFunction The function number identifying the request.

Send(TInt, const TIpcArgs &)

TInt Send ( TInt aFunction,
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 aFunction The function number identifying the request.
const TIpcArgs & aArgs A set of up to 4 arguments and their types to be passed to the server.

SendReceive(TInt, const TIpcArgs &, TRequestStatus &)

void SendReceive ( TInt aFunction,
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 aFunction The function number identifying the request.
const TIpcArgs & aArgs A set of up to 4 arguments and their types to be passed to the server.
TRequestStatus & aStatus The request status object used to contain the completion status of the request.

SendReceive(TInt, const TIpcArgs &)

TInt SendReceive ( TInt aFunction,
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 aFunction The function number identifying the request.
const TIpcArgs & aArgs A set of up to 4 arguments and their types to be passed to the server.

SendReceive(TInt, TRequestStatus &)

void SendReceive ( TInt aFunction,
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 aFunction The function number identifying the request.
TRequestStatus & aStatus The request status object used to contain the completion status of the request.

SendReceive(TInt)

TInt SendReceive ( TInt aFunction ) 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 aFunction The function number identifying the request.

SendResetAssistanceData(TLbsAssistanceDataGroup)

IMPORT_C TBool SendResetAssistanceData ( TLbsAssistanceDataGroup aMask )

Parameters

TLbsAssistanceDataGroup aMask

SetAssistanceDataProvider(TUid)

IMPORT_C TBool SetAssistanceDataProvider ( TUid aProvider )

Select which assitance data provider to use

Parameters

TUid aProvider the TUid of the provider to use

SetDefaultAssitanceDataFilter(TLbsAssistanceDataGroup &)

IMPORT_C TBool SetDefaultAssitanceDataFilter ( TLbsAssistanceDataGroup & aFilter )

Set the default assitance data returned

Parameters

TLbsAssistanceDataGroup & aFilter the filter

SetEmergenyStatus(TBool)

IMPORT_C TBool SetEmergenyStatus ( TBool aEmergency )

Set the emergeny status of the phone

Parameters

TBool aEmergency ETrue if the phone should be in emergeny status

SetMoreAssitanceDataFilter(TLbsAssistanceDataGroup &)

IMPORT_C TBool SetMoreAssitanceDataFilter ( TLbsAssistanceDataGroup & aFilter )

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

Parameters

TLbsAssistanceDataGroup & aFilter the filter

SetQuality(TLbsNetPosRequestQuality &)

IMPORT_C TBool SetQuality ( TLbsNetPosRequestQuality & aQuality )

Set the quality

Parameters

TLbsNetPosRequestQuality & aQuality The quality of the data

SetReferenceLocation(TPosition &)

IMPORT_C TBool SetReferenceLocation ( 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 & aLocation the reference location

SetReferenceLocation(TDesC8 &)

IMPORT_C TBool SetReferenceLocation ( 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 & aLocation the reference location

SetResponseError(TInt32, TBool)

IMPORT_C TBool SetResponseError ( TInt32 aError,
TBool aSticky
)

Set the error to respond to a request

Parameters

TInt32 aError any error value
TBool aSticky continue using this delay until further notice

SetResponseTime(TInt32, TBool)

IMPORT_C TBool SetResponseTime ( TInt32 aTime,
TBool aSticky
)

Set the time taken to respond to a request

Parameters

TInt32 aTime the time in milliseconds to wait before responding
TBool aSticky continue using this delay until further notice

SetRoamingStatus(TBool)

IMPORT_C TBool SetRoamingStatus ( TBool aRoaming )

Set the roaming status of the phone

Parameters

TBool aRoaming ETrue if the phone should be in roaming status

SetStepMode(TBool)

IMPORT_C TBool SetStepMode ( TBool aStepMode )

Enable the simulators step mode

Parameters

TBool aStepMode ETrue to enter step mode

StartNetworkLocationRequest()

IMPORT_C void StartNetworkLocationRequest ( )

Start a network location request

StartNetworkPrivacyRequest(TLbsNetPosRequestPrivacy, TLbsExternalRequestInfo &)

IMPORT_C void StartNetworkPrivacyRequest ( TLbsNetPosRequestPrivacy aType,
TLbsExternalRequestInfo & aRequest
)

Start a network privacy request

StartServer()

TInt StartServer ( ) [private, static]

Member Data Documentation

const TInt KNetSimNetworkNotAvailable

const TInt KNetSimNetworkNotAvailable [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]