Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <obexheaders.h>
Link against: obex.lib

Class MObexHeaderCheck

class MObexHeaderCheck;

Description

Used to allow the iterator to decide whether to present a header to the user, by passing in a possible header HI value. Headers present in the object will be presented to the MObexHeaderCheck::Interested(TUint8) function in the object in which they are held (if received from a remote device this will be the order in which they were received, otherwise this will be the order in which they were set). The function can implement any desired behaviour, including relying on the order in which the headers are presented.

In case any state is held, the object also provides a MObexHeaderCheck::Reset() function. MObexHeaderCheck::Reset() provides a default empty implementation.

Note: there is no destructor.

Members

Defined in MObexHeaderCheck:


Member functions


Interested(TUint8)

IMPORT_C virtual TBool Interested(TUint8 aHI)=0;

Description

Called to discover is the user is interested in the contents of this header.

Parameters

TUint8 aHI

The identifier of the header, including type bits.

Return value

TBool

ETrue if the user is interested in the contents of this header.


Reset()

IMPORT_C virtual void Reset();

Description

Called in response to First() being called on the iterator object. The default implementation does nothing---some implementations may wish to reset state variables.