class MObexHeaderCheck |
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 Interested() 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 Reset() function. Reset() provides a default empty implementation.
Note: there is no destructor.
Public Member Functions | |
---|---|
IMPORT_C TBool | Interested(TUint8) |
IMPORT_C void | MOHC_ExtensionInterfaceL(TUid, void *&) |
IMPORT_C void | Reset() |
IMPORT_C TBool | Interested | ( | TUint8 | aHI | ) | [pure virtual] |
Called to discover is the user is interested in the contents of this header.
TUint8 aHI | The identifier of the header, including type bits. |
IMPORT_C void | MOHC_ExtensionInterfaceL | ( | TUid | aInterface, |
void *& | aObject | |||
) | [virtual] |
Returns a null aObject if the extension is not implemented, or a pointer to another interface if it is. This virtual function allows the M- classes to be extended in future in a binary compatible way by providing a method that clients can override in future to allow extra callbacks to be made via aObject.
TUid aInterface | UID of the interface to return |
void *& aObject | the container for another interface as specified by aInterface |
IMPORT_C void | Reset | ( | ) | [virtual] |
Called in response to First() being called on the iterator object. The default implementation does nothing---some implementations may wish to reset state variables.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.