RAccessoryConnection Class Reference

class RAccessoryConnection : public RAccessoryConnectionBase

Accessory Connection sub-session.

This class is not intended for user derivation.

AccClient.lib
Since
S60 3.1
Public Member Functions
RAccessoryConnection ()
IMPORT_C void CancelGetAccessoryConnectionStatus ()
IMPORT_C void CancelNotifyAccessoryConnectionStatusChanged ()
IMPORT_C TInt CloseSubSession ()
IMPORT_C TInt CreateSubSession ( RAccessoryServer &)
IMPORT_C TInt GetAccessoryConnectionStatus ( TAccPolGenericIDArray &)
IMPORT_C void GetAccessoryConnectionStatus ( TRequestStatus &, TAccPolGenericIDArray &)
IMPORT_C void NotifyAccessoryConnectionStatusChanged ( TRequestStatus &, TAccPolGenericIDArray &)
Inherited Functions
RAccessoryConnectionBase::GetSubblockNameArrayL(const TAccPolGenericID &,CAccPolSubblockNameArray &)const
RAccessoryConnectionBase::GetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,CAccPolObjectCon &)const
RAccessoryConnectionBase::GetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,TAccValueTypeTBool &)const
RAccessoryConnectionBase::GetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,TAccValueTypeTInt &)const
RAccessoryConnectionBase::GetValueL(const TAccPolGenericID &,const TAccPolNameRecord &,TDes8 &)const
RAccessoryConnectionBase::RAccessoryConnectionBase()
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
Private Attributes
TInt iFlags
TPckg < TInt > iFlagsPckg
TAccSrvGenericIDArrayPckg iGetConnectionStatusGIDArrayPckg
TAccSrvGenericIDArrayPckg iNotifyConnectionStatusChangedGIDArrayPckg
TPckg < TInt > iReserved1
TPckg < TInt > iReserved2

Constructor & Destructor Documentation

RAccessoryConnection()

IMPORT_C RAccessoryConnection ( )

C++ default constructor.

Member Functions Documentation

CancelGetAccessoryConnectionStatus()

IMPORT_C void CancelGetAccessoryConnectionStatus ( ) const

Cancel GetAccessoryConnectionStatus() .

Since
S60 3.1

CancelNotifyAccessoryConnectionStatusChanged()

IMPORT_C void CancelNotifyAccessoryConnectionStatusChanged ( ) const

CloseSubSession()

IMPORT_C TInt CloseSubSession ( ) [virtual]

Closes the RAccessoryConnection sub-session.

Since
S60 3.1
CreateSubSession()

CreateSubSession(RAccessoryServer &)

IMPORT_C TInt CreateSubSession ( RAccessoryServer & aSession ) [virtual]

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.

GetAccessoryConnectionStatus(TAccPolGenericIDArray &)

IMPORT_C TInt GetAccessoryConnectionStatus ( TAccPolGenericIDArray & aGenericIdArray ) const

Get combined accessory connection status, i.e. all currently connected accessories.

Since
S60 3.1

Parameters

TAccPolGenericIDArray & aGenericIdArray On return, contains the array of currently connected accessories. Accessories are in connection order, last connected accessory in index 0.

GetAccessoryConnectionStatus(TRequestStatus &, TAccPolGenericIDArray &)

IMPORT_C void GetAccessoryConnectionStatus ( TRequestStatus & aStatus,
TAccPolGenericIDArray & aGenericIdArray
)

Get combined accessory connection status, i.e. all currently connected accessories.

Since
S60 3.1

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
TAccPolGenericIDArray & aGenericIdArray On successful request completion, contains the array of currently connected accessories. Accessories are in connection order, last connected sccessory in index 0.

NotifyAccessoryConnectionStatusChanged(TRequestStatus &, TAccPolGenericIDArray &)

IMPORT_C void NotifyAccessoryConnectionStatusChanged ( TRequestStatus & aStatus,
TAccPolGenericIDArray & aGenericIdArray
)

Issues a request for accessory connection status change notification. Request must be renewed after completion if further notifications are needed.

Since
S60 3.1

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
TAccPolGenericIDArray & aGenericIdArray On successful request completion, contains the array of currently connected accessories. Accessories are in connection order, last connected sccessory in index 0.

Member Data Documentation

TInt iFlags

TInt iFlags [private]

TPckg< TInt > iFlagsPckg

TPckg < TInt > iFlagsPckg [private]

TAccSrvGenericIDArrayPckg iGetConnectionStatusGIDArrayPckg

TAccSrvGenericIDArrayPckg iGetConnectionStatusGIDArrayPckg [private]

TAccSrvGenericIDArrayPckg iNotifyConnectionStatusChangedGIDArrayPckg

TAccSrvGenericIDArrayPckg iNotifyConnectionStatusChangedGIDArrayPckg [private]

TPckg< TInt > iReserved1

TPckg < TInt > iReserved1 [private]

TPckg< TInt > iReserved2

TPckg < TInt > iReserved2 [private]