CBtHeader Class Reference

class CBtHeader : public CObexMtmHeader

Base class for OBEX object headers. Allows them to be stored and restored to and from the CMsvStore .

Inherits from

Public Member Functions
~CBtHeader ()
IMPORT_C TPtrC8 Addr ()
IMPORT_C const TObexBluetoothProtocolInfo & BtProtocolInfo ()
IMPORT_C void ConstructL ()
IMPORT_C void ExternalizeL ( RMsvWriteStream &)
IMPORT_C void InternalizeL ( RMsvReadStream &)
IMPORT_C CBtHeader * NewL ()
IMPORT_C void SetAddrL (const TDesC8 &)
Private Member Functions
CBtHeader ()
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()
CObexMtmHeader::BaseConstructL()
CObexMtmHeader::BaseExternalizeL(RMsvWriteStream &)const
CObexMtmHeader::BaseInternalizeL(RMsvReadStream &)
CObexMtmHeader::CObexMtmHeader(TUid,TInt32)
CObexMtmHeader::ConnectionID()const
CObexMtmHeader::Length()const
CObexMtmHeader::Name()const
CObexMtmHeader::RestoreL(const CMsvStore &)
CObexMtmHeader::SetConnectionIDL(const TDesC8 &)
CObexMtmHeader::SetLength(TInt)
CObexMtmHeader::SetNameL(const TDesC &)
CObexMtmHeader::SetSubjectL(const TDesC &)
CObexMtmHeader::SetTargetL(const TDesC8 &)
CObexMtmHeader::SetTime(const TTime &)
CObexMtmHeader::SetTypeL(const TDesC8 &)
CObexMtmHeader::StoreL(CMsvStore &)const
CObexMtmHeader::Subject()const
CObexMtmHeader::Target()const
CObexMtmHeader::Time()const
CObexMtmHeader::Type()const
CObexMtmHeader::~CObexMtmHeader()
Private Attributes
TObexBluetoothProtocolInfo iBtProtocolInfo
Inherited Attributes
CObexMtmHeader::iConnectionID
CObexMtmHeader::iLength
CObexMtmHeader::iName
CObexMtmHeader::iStreamUid
CObexMtmHeader::iStreamVersion
CObexMtmHeader::iSubject
CObexMtmHeader::iTarget
CObexMtmHeader::iTime
CObexMtmHeader::iType

Constructor & Destructor Documentation

CBtHeader()

CBtHeader ( ) [private]

Default constructor, initialises the base class and sets the value of iBtProtocolInfo.iTransport as appropriate for BT

~CBtHeader()

IMPORT_C ~CBtHeader ( )

Destructor. Empty

Member Functions Documentation

Addr()

IMPORT_C TPtrC8 Addr ( ) const [virtual]

Get the BT address of the recipient

BtProtocolInfo()

IMPORT_C const TObexBluetoothProtocolInfo & BtProtocolInfo ( ) const [virtual]

Get the BT protocol info of the recipient

ConstructL()

IMPORT_C void ConstructL ( )

Second-phase constructor. Calls BaseConstructL to initialise the base members

ExternalizeL(RMsvWriteStream &)

IMPORT_C void ExternalizeL ( RMsvWriteStream & aWriteStream ) const [virtual]

Externaliser. Writes data out to aWriteStream. Calls BaseExternalizeL() to write out the base data first.

leave
KErrXXX Standard SymbianOS stream leave codes
Externaliser. Writes data out to aWriteStream. Calls BaseExternalizeL() to write out the base data first.
leave
KErrXXX Standard EPOC stream leave codes

Parameters

RMsvWriteStream & aWriteStream Stream to write data to

InternalizeL(RMsvReadStream &)

IMPORT_C void InternalizeL ( RMsvReadStream & aReadStream ) [virtual]

Internaliser. Reads data in from aReadStream. Calls BaseInternalizeL() to read in the base data first.

leave
KErrXXX Standard EPOC stream leave codes

Parameters

RMsvReadStream & aReadStream Stream to read data in from

NewL()

IMPORT_C CBtHeader * NewL ( ) [static]

Canonical NewL factory function

SetAddrL(const TDesC8 &)

IMPORT_C void SetAddrL ( const TDesC8 & aAddr ) [virtual]

Set the BT address of the recipient. The RfComm service slot will be obtained through an SDP lookup in the server side MTM.

Parameters

const TDesC8 & aAddr the address of the recipient (NB: only one recipient is currently supported)

Member Data Documentation

TObexBluetoothProtocolInfo iBtProtocolInfo

TObexBluetoothProtocolInfo iBtProtocolInfo [private]