CIrHeader Class Reference

class CIrHeader : 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
~CIrHeader ()
IMPORT_C TPtrC8 Addr ()
IMPORT_C void ConstructL ()
IMPORT_C void ExternalizeL ( RMsvWriteStream &)
IMPORT_C void InternalizeL ( RMsvReadStream &)
IMPORT_C const TObexIrProtocolInfo & IrProtocolInfo ()
IMPORT_C CIrHeader * NewL ()
IMPORT_C void SetAddrL (const TDesC8 &)
Private Member Functions
CIrHeader ()
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
TObexIrProtocolInfo iIrProtocolInfo
Inherited Attributes
CObexMtmHeader::iConnectionID
CObexMtmHeader::iLength
CObexMtmHeader::iName
CObexMtmHeader::iStreamUid
CObexMtmHeader::iStreamVersion
CObexMtmHeader::iSubject
CObexMtmHeader::iTarget
CObexMtmHeader::iTime
CObexMtmHeader::iType

Constructor & Destructor Documentation

CIrHeader()

CIrHeader ( ) [private]

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

~CIrHeader()

IMPORT_C ~CIrHeader ( )

Destructor. Empty

Member Functions Documentation

Addr()

IMPORT_C TPtrC8 Addr ( ) const [virtual]

Get the IR address 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

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
Internaliser. Reads data in from aReadStream. Calls BaseInternalizeL() to read in the base data first.
leave
KErrXXX Standard SymbianOS stream leave codes

Parameters

RMsvReadStream & aReadStream Stream to read data in from

IrProtocolInfo()

IMPORT_C const TObexIrProtocolInfo & IrProtocolInfo ( ) const [virtual]

Get the IR protocol info of the recipient

NewL()

IMPORT_C CIrHeader * NewL ( ) [static]

Canonical NewL factory function

SetAddrL(const TDesC8 &)

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

Set the IR address of the recipient

leave
KErrXXX system-wide leave codes if assignment fails

Parameters

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

Member Data Documentation

TObexIrProtocolInfo iIrProtocolInfo

TObexIrProtocolInfo iIrProtocolInfo [private]