CAvctpBody Class Reference

class CAvctpBody : public CBase

This class is the handle of the RAvctp / CAvctpBody pair. It implements the AVCTP interface presented by RAvctp. It owns a couple of Sender/Receiver for the primary channel and a couple for the secondary channel. CAvctpSender and CAvctpReceiver are active objects.

Inherits from

Public Member Functions
~CAvctpBody()
voidClose(RAvctp::TCloseType)
voidCloseGracefully()
TInt InstallSecondaryChannel(MAvctpEventNotify &, MAvctpChannel *&)
TBool IsAttached(const TBTDevAddr &)
CAvctpBody *NewL(MAvctpEventNotify &, SymbianAvctp::TPid, MAvctpChannel *&)
CAvctpBody *NewLC(MAvctpEventNotify &, SymbianAvctp::TPid, MAvctpChannel *&)
TInt PrimaryChannelAttachRequest(const TBTDevAddr &)
voidPrimaryChannelCancelAttach(const TBTDevAddr &)
voidPrimaryChannelCancelSend()
TInt PrimaryChannelDetachRequest(const TBTDevAddr &)
TInt SecondaryChannelAttachRequest(const TBTDevAddr &)
voidSecondaryChannelCancelAttach(const TBTDevAddr &)
voidSecondaryChannelCancelSend()
TInt SecondaryChannelDetachRequest(const TBTDevAddr &)
TInt SendMessage(const TBTDevAddr &, SymbianAvctp::TTransactionLabel, SymbianAvctp::TMessageType, const TDesC8 &, TBool)
voidUninstallSecondaryChannel(RAvctp::TCloseType)
Private Member Functions
CAvctpBody(MAvctpEventNotify &, SymbianAvctp::TPid)
voidConstructL(MAvctpChannel *&)
voidDoInstallSecondaryChannelL(MAvctpEventNotify &, MAvctpChannel *&)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
RSocket iAvctpPrimaryDataSocket
RSocket iAvctpSecondaryDataSocket
MAvctpEventNotify &iNotify
SymbianAvctp::TPid iPid
TPrimaryChannelProxy *iPrimaryChannelProxy
CAvctpReceiver *iPrimaryChannelReceiver
CAvctpSender *iPrimaryChannelSender
CAvctpRemoteDevices *iRemoteDevices
MAvctpEventNotify *iSecondaryChannelNotify
TSecondaryChannelProxy *iSecondaryChannelProxy
CAvctpReceiver *iSecondaryChannelReceiver
CAvctpSender *iSecondaryChannelSender
RSocketServ iSocketServ

Constructor & Destructor Documentation

CAvctpBody(MAvctpEventNotify &, SymbianAvctp::TPid)

CAvctpBody(MAvctpEventNotify &aNotify,
SymbianAvctp::TPidaPid
)[private]

Parameters

MAvctpEventNotify & aNotify
SymbianAvctp::TPid aPid

~CAvctpBody()

~CAvctpBody()

d'tor

Member Functions Documentation

Close(RAvctp::TCloseType)

voidClose(RAvctp::TCloseTypeaImmediacy)

Parameters

RAvctp::TCloseType aImmediacy

CloseGracefully()

voidCloseGracefully()

ConstructL(MAvctpChannel *&)

voidConstructL(MAvctpChannel *&aPrimaryChannel)[private]

Parameters

MAvctpChannel *& aPrimaryChannel

DoInstallSecondaryChannelL(MAvctpEventNotify &, MAvctpChannel *&)

voidDoInstallSecondaryChannelL(MAvctpEventNotify &aSecondChannelObserver,
MAvctpChannel *&aSecondaryChannel
)[private]

Parameters

MAvctpEventNotify & aSecondChannelObserver
MAvctpChannel *& aSecondaryChannel

InstallSecondaryChannel(MAvctpEventNotify &, MAvctpChannel *&)

TInt InstallSecondaryChannel(MAvctpEventNotify &aSecondChannelObserver,
MAvctpChannel *&aSecondaryChannel
)

Parameters

MAvctpEventNotify & aSecondChannelObserver
MAvctpChannel *& aSecondaryChannel

IsAttached(const TBTDevAddr &)

TBool IsAttached(const TBTDevAddr &aBTDevice)

Parameters

const TBTDevAddr & aBTDevice

NewL(MAvctpEventNotify &, SymbianAvctp::TPid, MAvctpChannel *&)

CAvctpBody *NewL(MAvctpEventNotify &aNotify,
SymbianAvctp::TPidaPid,
MAvctpChannel *&aPrimaryChannel
)[static]

Parameters

MAvctpEventNotify & aNotify
SymbianAvctp::TPid aPid
MAvctpChannel *& aPrimaryChannel

NewLC(MAvctpEventNotify &, SymbianAvctp::TPid, MAvctpChannel *&)

CAvctpBody *NewLC(MAvctpEventNotify &aNotify,
SymbianAvctp::TPidaPid,
MAvctpChannel *&aPrimaryChannel
)[static]

Parameters

MAvctpEventNotify & aNotify
SymbianAvctp::TPid aPid
MAvctpChannel *& aPrimaryChannel

PrimaryChannelAttachRequest(const TBTDevAddr &)

TInt PrimaryChannelAttachRequest(const TBTDevAddr &aBTDevice)

Function from the AVCTP spec to request a channel connection to a remote entity.

Parameters

const TBTDevAddr & aBTDevice

PrimaryChannelCancelAttach(const TBTDevAddr &)

voidPrimaryChannelCancelAttach(const TBTDevAddr &aBTDevice)

Parameters

const TBTDevAddr & aBTDevice

PrimaryChannelCancelSend()

voidPrimaryChannelCancelSend()

PrimaryChannelDetachRequest(const TBTDevAddr &)

TInt PrimaryChannelDetachRequest(const TBTDevAddr &aBTDevice)

Function from the AVCTP spec to explicitly request disconnection of an existing channel.

Parameters

const TBTDevAddr & aBTDeviceThe remote device to disconnect

SecondaryChannelAttachRequest(const TBTDevAddr &)

TInt SecondaryChannelAttachRequest(const TBTDevAddr &aBTDevice)

Parameters

const TBTDevAddr & aBTDevice

SecondaryChannelCancelAttach(const TBTDevAddr &)

voidSecondaryChannelCancelAttach(const TBTDevAddr &aBTDevice)

Parameters

const TBTDevAddr & aBTDevice

SecondaryChannelCancelSend()

voidSecondaryChannelCancelSend()

SecondaryChannelDetachRequest(const TBTDevAddr &)

TInt SecondaryChannelDetachRequest(const TBTDevAddr &aBTDevice)

Parameters

const TBTDevAddr & aBTDevice

SendMessage(const TBTDevAddr &, SymbianAvctp::TTransactionLabel, SymbianAvctp::TMessageType, const TDesC8 &, TBool)

TInt SendMessage(const TBTDevAddr &aBTDevice,
SymbianAvctp::TTransactionLabelaTransactionLabel,
SymbianAvctp::TMessageTypeaType,
const TDesC8 &aMessageInformation,
TBoolaIsSecondChannel
)

Parameters

const TBTDevAddr & aBTDevice
SymbianAvctp::TTransactionLabel aTransactionLabel
SymbianAvctp::TMessageType aType
const TDesC8 & aMessageInformation
TBool aIsSecondChannel

UninstallSecondaryChannel(RAvctp::TCloseType)

voidUninstallSecondaryChannel(RAvctp::TCloseTypeaImmediacy)

Parameters

RAvctp::TCloseType aImmediacy

Member Data Documentation

RSocket iAvctpPrimaryDataSocket

RSocket iAvctpPrimaryDataSocket[private]

RSocket iAvctpSecondaryDataSocket

RSocket iAvctpSecondaryDataSocket[private]

MAvctpEventNotify & iNotify

MAvctpEventNotify &iNotify[private]

SymbianAvctp::TPid iPid

SymbianAvctp::TPid iPid[private]

TPrimaryChannelProxy * iPrimaryChannelProxy

TPrimaryChannelProxy *iPrimaryChannelProxy[private]

CAvctpReceiver * iPrimaryChannelReceiver

CAvctpReceiver *iPrimaryChannelReceiver[private]

CAvctpSender * iPrimaryChannelSender

CAvctpSender *iPrimaryChannelSender[private]

CAvctpRemoteDevices * iRemoteDevices

CAvctpRemoteDevices *iRemoteDevices[private]

MAvctpEventNotify * iSecondaryChannelNotify

MAvctpEventNotify *iSecondaryChannelNotify[private]

TSecondaryChannelProxy * iSecondaryChannelProxy

TSecondaryChannelProxy *iSecondaryChannelProxy[private]

CAvctpReceiver * iSecondaryChannelReceiver

CAvctpReceiver *iSecondaryChannelReceiver[private]

CAvctpSender * iSecondaryChannelSender

CAvctpSender *iSecondaryChannelSender[private]

RSocketServ iSocketServ

RSocketServ iSocketServ[private]