CObexServerPacketAccessExtension Class Reference

class CObexServerPacketAccessExtension : public CBase

This class provides the extension API to give an OBEX server application the option of registering a callback interface for being informed of packets the server receives before the server processes them.

Inherits from

  • CObexServerPacketAccessExtension

Constructor & Destructor Documentation

CObexServerPacketAccessExtension()

CObexServerPacketAccessExtension ( ) [private]

Constructor.

~CObexServerPacketAccessExtension()

~CObexServerPacketAccessExtension ( )

The destructor will not delete the instance of the MObexServerRequestPacketNotify it holds. It will signal to the CObexServer instance that packet notification is no longer required, and so re-allow another CObexServerPacketAccessExtension to bind to the CObexServer instance.

This should be called before the CObexServer instance the object is registered to is deleted.

Member Functions Documentation

ConstructL(CObexServer &, MObexServerRequestPacketNotify &)

void ConstructL ( CObexServer & aServer,
MObexServerRequestPacketNotify & aRequestPacketNotify
) [private]

Performs the main construction of the CObexServerPacketAccessExtension .

Parameters

CObexServer & aServer The CObexServer instance to register request packet notification callbacks.
MObexServerRequestPacketNotify & aRequestPacketNotify The mixin instance that will receive notification of request packets.

NewL(CObexServer &, MObexServerRequestPacketNotify &)

IMPORT_C CObexServerPacketAccessExtension * NewL ( CObexServer & aServer,
MObexServerRequestPacketNotify & aRequestPacketNotify
) [static]

Factory function for CObexServerPacketAccessExtension . Will leave if the associated CObexServer does not support this extension type.

Note that this object needs to be deleted before the CObexServer object it is registered to is deleted.

Parameters

CObexServer & aServer Reference to the instance of CObexServer being extended.
MObexServerRequestPacketNotify & aRequestPacketNotify

Member Data Documentation

MObexServerRequestPacketNotifyRegister * iRequestPacketNotify

MObexServerRequestPacketNotifyRegister * iRequestPacketNotify [private]