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 ()
void Close ( RAvctp::TCloseType )
void CloseGracefully ()
TInt InstallSecondaryChannel ( MAvctpEventNotify &, MAvctpChannel *&)
TBool IsAttached (const TBTDevAddr &)
CAvctpBody * NewL ( MAvctpEventNotify &, SymbianAvctp::TPid , MAvctpChannel *&)
CAvctpBody * NewLC ( MAvctpEventNotify &, SymbianAvctp::TPid , MAvctpChannel *&)
TInt PrimaryChannelAttachRequest (const TBTDevAddr &)
void PrimaryChannelCancelAttach (const TBTDevAddr &)
void PrimaryChannelCancelSend ()
TInt PrimaryChannelDetachRequest (const TBTDevAddr &)
TInt SecondaryChannelAttachRequest (const TBTDevAddr &)
void SecondaryChannelCancelAttach (const TBTDevAddr &)
void SecondaryChannelCancelSend ()
TInt SecondaryChannelDetachRequest (const TBTDevAddr &)
TInt SendMessage (const TBTDevAddr &, SymbianAvctp::TTransactionLabel , SymbianAvctp::TMessageType , const TDesC8 &, TBool )
void UninstallSecondaryChannel ( RAvctp::TCloseType )
Private Member Functions
CAvctpBody ( MAvctpEventNotify &, SymbianAvctp::TPid )
void ConstructL ( MAvctpChannel *&)
void DoInstallSecondaryChannelL ( 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::TPid aPid
) [private]

Parameters

MAvctpEventNotify & aNotify
SymbianAvctp::TPid aPid

~CAvctpBody()

~CAvctpBody ( )

d'tor

Member Functions Documentation

Close(RAvctp::TCloseType)

void Close ( RAvctp::TCloseType aImmediacy )

Parameters

RAvctp::TCloseType aImmediacy

CloseGracefully()

void CloseGracefully ( )

ConstructL(MAvctpChannel *&)

void ConstructL ( MAvctpChannel *& aPrimaryChannel ) [private]

Parameters

MAvctpChannel *& aPrimaryChannel

DoInstallSecondaryChannelL(MAvctpEventNotify &, MAvctpChannel *&)

void DoInstallSecondaryChannelL ( 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::TPid aPid,
MAvctpChannel *& aPrimaryChannel
) [static]

Parameters

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

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

CAvctpBody * NewLC ( MAvctpEventNotify & aNotify,
SymbianAvctp::TPid aPid,
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 &)

void PrimaryChannelCancelAttach ( const TBTDevAddr & aBTDevice )

Parameters

const TBTDevAddr & aBTDevice

PrimaryChannelCancelSend()

void PrimaryChannelCancelSend ( )

PrimaryChannelDetachRequest(const TBTDevAddr &)

TInt PrimaryChannelDetachRequest ( const TBTDevAddr & aBTDevice )

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

Parameters

const TBTDevAddr & aBTDevice The remote device to disconnect

SecondaryChannelAttachRequest(const TBTDevAddr &)

TInt SecondaryChannelAttachRequest ( const TBTDevAddr & aBTDevice )

Parameters

const TBTDevAddr & aBTDevice

SecondaryChannelCancelAttach(const TBTDevAddr &)

void SecondaryChannelCancelAttach ( const TBTDevAddr & aBTDevice )

Parameters

const TBTDevAddr & aBTDevice

SecondaryChannelCancelSend()

void SecondaryChannelCancelSend ( )

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::TTransactionLabel aTransactionLabel,
SymbianAvctp::TMessageType aType,
const TDesC8 & aMessageInformation,
TBool aIsSecondChannel
)

Parameters

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

UninstallSecondaryChannel(RAvctp::TCloseType)

void UninstallSecondaryChannel ( RAvctp::TCloseType aImmediacy )

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]