RAccessoryAsyComms Class Reference
| class RAccessoryAsyComms : public RAccessorySubsessionBase |
AsyComms sub-session represents AsyComms connection Provides methods for NotifyProcessCommands and ProcessResponses
ASYComms.dll
- Since
- S60 3.1
| Public Member Functions |
|---|
| RAccessoryAsyComms() |
| IMPORT_C void | CancelNotifyProcessCommand() |
| IMPORT_C TInt | CloseSubSession() |
| IMPORT_C TInt | CreateSubSession(RAccessoryServer &, const TUid) |
| IMPORT_C void | GetBuffer(TPtr8) |
| IMPORT_C void | NotifyProcessCommand(TRequestStatus &, TProcessCmdId &, TInt &, TASYCmdParams &) |
| IMPORT_C void | NotifyProcessCommand(TRequestStatus &, TProxyCommandPckgBuf &, TPtr8 &) |
| IMPORT_C void | ProcessResponse(const TInt, const TAccValueTypeTBool, const TInt) |
| IMPORT_C void | ProcessResponse(const TInt, const TAccValueTypeTInt, const TInt) |
| IMPORT_C void | ProcessResponse(const TInt, const TDesC8 &, const TInt) |
| IMPORT_C void | ProcessResponse(const TInt, TPtr8 *, const TInt) |
| Inherited Functions |
|---|
| | RAccessorySubsessionBase::RAccessorySubsessionBase() |
| | RSubSessionBase::CloseSubSession(TInt) |
| | RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &) |
| | RSubSessionBase::CreateSubSession(const RSessionBase &,TInt) |
| | RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &) |
| | RSubSessionBase::RSubSessionBase() |
| | RSubSessionBase::Send(TInt)const |
| | RSubSessionBase::Send(TInt,const TIpcArgs &)const |
| | RSubSessionBase::SendReceive(TInt)const |
| | RSubSessionBase::SendReceive(TInt,TRequestStatus &)const |
| | RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const |
| | RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const |
| | RSubSessionBase::Session()const |
| | RSubSessionBase::SubSessionHandle()const |
Constructor & Destructor Documentation
RAccessoryAsyComms()
| IMPORT_C | RAccessoryAsyComms | ( | ) | |
Member Functions Documentation
CancelNotifyProcessCommand()
| IMPORT_C void | CancelNotifyProcessCommand | ( | ) | |
CloseSubSession()
| IMPORT_C TInt | CloseSubSession | ( | ) | [virtual] |
CreateSubSession(RAccessoryServer &, const TUid)
Creates a new sub-session within an existing session.
- Since
- S60 3.1
Parameters
| RAccessoryServer & aSession | The session to which this sub-session will belong. |
| const TUid aMainServiceUid | Implementation uid of main service ASY |
CreateSubSession(RAccessoryServer &)
Definition for pure virtual function defined in base class. Declaration is empty.
ExternalizeL(CBufFlat *&, CAccPolObjectBase &)
GetBuffer(TPtr8)
| IMPORT_C void | GetBuffer | ( | TPtr8 | aPtr | ) | |
Parameters
| TPtr8 aPtr | Pointer to buffer where CAccPolObjectBase type of object is written to in externalized format. |
NotifyProcessCommand(TRequestStatus &, TProcessCmdId &, TInt &, TASYCmdParams &)
Process command request. Actual request takes place when this asynchronous request completes
- Since
- S60 3.1
The AsyCmdTypes.h, where
TASYCmdParams is declared.
Parameters
| TRequestStatus & aStatus | Indicates the completion status of a request. KErrNone if successful, system-wide error code if failed. Specifically: KErrAlreadyExists, if request allready exist KErrCancel, if request is cancelled |
| TProcessCmdId & aCmdn | On successful request completion, contains the updated ProcessCommand ID |
| TInt & aTrId | On successful request completion, contains the updated Transaction ID |
| TASYCmdParams & aASYCommandParamRecord | On successful request completion contains the updated parameters. |
NotifyProcessCommand(TRequestStatus &, TProxyCommandPckgBuf &, TPtr8 &)
Process command request. Actual request takes place when this asynchronous request completes
- Since
- S60 3.1
The AsyCmdTypes.h, where
TASYCmdParams is declared.
Parameters
| TRequestStatus & aStatus | Indicates the completion status of a request. KErrNone if successful, system-wide error code if failed. Specifically: KErrAlreadyExists, if request allready exist KErrCancel, if request is cancelled |
| TProxyCommandPckgBuf & aParams | |
| TPtr8 & aPtr | Pointer to buffer where CAccPolObjectBase type of object is written to in externalized format. ProcessCommand ID, Transaction ID and ASYCommandParamRecord parameters. |
ProcessResponse(const TInt, const TAccValueTypeTBool, const TInt)
Handles responses get from ASYproxy for previously made NotifyProcessCommands() -call. ASYProxy calls this function if TProcessCmdId was ECmdProcessCommandInit or ECmdGetValueBool
- Since
- S60 3.1
Parameters
| const TInt aTrid | Transaction id |
| const TAccValueTypeTBool aCmdResponse | Response data |
| const TInt aErrCode | KErrNone if succesful, system-wide error code if failed. |
ProcessResponse(const TInt, const TAccValueTypeTInt, const TInt)
Handles responses get from ASYproxy for previously made NotifyProcessCommands() -call. ASYProxy calls this function if TProcessCmdId was ECmdGetValueTInt
- Since
- S60 3.1
Parameters
| const TInt aTrid | Transaction id |
| const TAccValueTypeTInt aCmdResponse | Response data |
| const TInt aErrCode | KErrNone if succesful, system-wide error code if failed. |
ProcessResponse(const TInt, const TDesC8 &, const TInt)
| IMPORT_C void | ProcessResponse | ( | const TInt | aTrid, |
| | const TDesC8 & | aCmdResponse, |
| | const TInt | aErrCode |
| | ) | |
Handles responses get from ASYproxy for previously made NotifyProcessCommands() -call. ASYProxy calls this function if TProcessCmdId was ECmdGetValueTDes8 or ECmdGetSupportedBTProfiles
- Since
- S60 3.1
Parameters
| const TInt aTrid | Transaction id |
| const TDesC8 & aCmdResponse | Response data |
| const TInt aErrCode | KErrNone if succesful, system-wide error code if failed. |
ProcessResponse(const TInt, TPtr8 *, const TInt)
| IMPORT_C void | ProcessResponse | ( | const TInt | aTrid, |
| | TPtr8 * | aPtr, |
| | const TInt | aErrCode |
| | ) | |
Handles responses get from ASYproxy for previously made NotifyProcessCommands() -call. ASYProxy calls this function if TProcessCmdId was ECmdGetObjectValue
Parameters
| const TInt aTrid | Transaction id |
| TPtr8 * aPtr | Response data |
| const TInt aErrCode | KErrNone if succesful, system-wide error code if failed. |
Member Data Documentation
TAccSrvProcessCmdIdPckg
iProcessCmdIdPckg
TPckg< TInt > iTransactionIDPckg
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.