CObexWriterBase Class Reference

class CObexWriterBase : public CObexActiveRW

CObexWriterBase provides obex specific writer behaviour for concrete writers to use. Derive from this class when providing a writer for a specific transport.

In a concrete writer the following things must be done: (a)In DoTransfer a write transfer is issued over the writer's transport (b)The NewL function must call BaseConstructL(). This is future proofing in the event that the iFuture1 variable is used and requires initialisation

Inherits from

Constructor & Destructor Documentation

CObexWriterBase(TPriority, MObexTransportNotify &, TObexConnectionInfo &)

IMPORT_CCObexWriterBase(TPriorityaPriority,
MObexTransportNotify &aOwner,
TObexConnectionInfo &aInfo
)[protected]

Constructor

Parameters

TPriority aPriority
MObexTransportNotify & aOwner
TObexConnectionInfo & aInfo

~CObexWriterBase()

IMPORT_C~CObexWriterBase()[virtual]

Destructor

Member Functions Documentation

BaseConstructL()

IMPORT_C voidBaseConstructL()[protected]

This function is a placeholder for future use. If the iFuture1 variable is used it will need this function for any allocation required.

To prevent binary compatiblity breaks if the iFuture1 variable is used, this function must be called from the NewL of derived classes.

CompleteTransfer()

IMPORT_C TBoolCompleteTransfer()[protected, virtual]

Returns true if the transfer has completed

DoTransfer()

voidDoTransfer()[protected, pure virtual]

This method issues a write of data over the relevant transport object. NewRequest

GetInterface(TUid)

IMPORT_C TAny *GetInterface(TUidaUid)[protected, virtual]

This function is part of the extension pattern and is implemented by all derived instantiable classes that need to extend its interface.

By default this returns null. Any derived class that is required to extend its interface and that of this base class returns its new interface in the form of an M class, that it extends, if and only if the corresponding TUid, aUid, is received. Otherwise the function calls the base class implementation, returning NULL.

Parameters

TUid aUidThe uid associated with the M Class that is being implemented

OnCompleteTransfer()

IMPORT_C voidOnCompleteTransfer()[protected, virtual]

Performs any actions necessary on completion of a write.

Remaining()

IMPORT_C TIntRemaining()[protected, virtual]

Return number of bytes remaining to be sent

StartTransfer(CObexPacket &)

IMPORT_C voidStartTransfer(CObexPacket &aPacket)[protected, virtual]

Start transfer. Calls into CObexActiveRW, which eventaully queues a write

Parameters

CObexPacket & aPacketThe Obex packet to write

Member Data Documentation

TAny * iFuture1

TAny *iFuture1[protected]