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 voidCancelGetAccessoryConnectionStatus()
IMPORT_C voidCancelNotifyAccessoryConnectionStatusChanged()
IMPORT_C TIntCloseSubSession()
IMPORT_C TIntCreateSubSession(RAccessoryServer &)
IMPORT_C TIntGetAccessoryConnectionStatus(TAccPolGenericIDArray &)
IMPORT_C voidGetAccessoryConnectionStatus(TRequestStatus &, TAccPolGenericIDArray &)
IMPORT_C voidNotifyAccessoryConnectionStatusChanged(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_CRAccessoryConnection()

C++ default constructor.

Member Functions Documentation

CancelGetAccessoryConnectionStatus()

IMPORT_C voidCancelGetAccessoryConnectionStatus()const

Cancel GetAccessoryConnectionStatus().

Since
S60 3.1

CancelNotifyAccessoryConnectionStatusChanged()

IMPORT_C voidCancelNotifyAccessoryConnectionStatusChanged()const

CloseSubSession()

IMPORT_C TIntCloseSubSession()[virtual]

Closes the RAccessoryConnection sub-session.

Since
S60 3.1
CreateSubSession()

CreateSubSession(RAccessoryServer &)

IMPORT_C TIntCreateSubSession(RAccessoryServer &aSession)[virtual]

Creates a new sub-session within an existing session.

Since
S60 3.1

Parameters

RAccessoryServer & aSessionThe session to which this sub-session will belong.

GetAccessoryConnectionStatus(TAccPolGenericIDArray &)

IMPORT_C TIntGetAccessoryConnectionStatus(TAccPolGenericIDArray &aGenericIdArray)const

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

Since
S60 3.1

Parameters

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

GetAccessoryConnectionStatus(TRequestStatus &, TAccPolGenericIDArray &)

IMPORT_C voidGetAccessoryConnectionStatus(TRequestStatus &aStatus,
TAccPolGenericIDArray &aGenericIdArray
)

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

Since
S60 3.1

Parameters

TRequestStatus & aStatusIndicates 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 & aGenericIdArrayOn 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 voidNotifyAccessoryConnectionStatusChanged(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 & aStatusIndicates 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 & aGenericIdArrayOn 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]