obex/obexextensionapi/public/mobexserverrequestpacketnotifyregister.h
changeset 54 4dc88a4ac6f4
parent 52 866b4af7ffbe
child 57 f6055a57ae18
equal deleted inserted replaced
52:866b4af7ffbe 54:4dc88a4ac6f4
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef OBEXSERVERREQUESTPACKETNOTIFYREGISTER_H
       
    22 #define OBEXSERVERREQUESTPACKETNOTIFYREGISTER_H
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 class MObexServerRequestPacketNotify;
       
    27 
       
    28 /**
       
    29 	UID with which one can request the 
       
    30 	MObexServerRequestPacketNotifyRegister API through	
       
    31 	CObexServer::ExtensionInterface(). 
       
    32 	
       
    33 	Some implementations may use KObexRequestPacketNotifyInterfaceId
       
    34 	which is considered deprecated.
       
    35 */
       
    36 const TUid KObexServerRequestPacketNotifyRegisterInterface = {0x10274CB4};
       
    37 
       
    38 /**
       
    39 Mixin class to be implemented by instances providing a means to
       
    40 set an observer for the receipt of Obex request packets by a server.
       
    41 
       
    42 This provides part of the packet access API.
       
    43 */
       
    44 class MObexServerRequestPacketNotifyRegister
       
    45 	{
       
    46 public:
       
    47 	/**
       
    48 	Sets the notifier to be called when an Obex server receives a request packet.
       
    49 	
       
    50 	@param aRequestPacketNotify A pointer to the observer interface instance to receive the notifications.
       
    51 	*/
       
    52 	virtual void SetObexServerRequestPacketObserver(MObexServerRequestPacketNotify& aRequestPacketNotify) = 0;
       
    53 	
       
    54 	/**
       
    55 	Inform the Obex server that we have finished with this interface,
       
    56 	and delete the engine to allow a new one to be created.
       
    57 	*/
       
    58 	virtual void DeleteObexServerRequestPacketNotifyRegister() = 0;
       
    59 	};
       
    60 
       
    61 #endif // OBEXSERVERREQUESTPACKETNOTIFYREGISTER_H
       
    62