obex/obexprotocol/obex/src/obexserverrequestpacketengine.cpp
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     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 #include "obexserverrequestpacketengine.h"
       
    17 #include <obexserver.h>
       
    18 
       
    19 CObexServerRequestPacketEngine* CObexServerRequestPacketEngine::NewL(CObexServer& aServer)
       
    20 	{
       
    21 	CObexServerRequestPacketEngine* self = new (ELeave) CObexServerRequestPacketEngine(aServer);
       
    22 	return self;
       
    23 	}
       
    24 	
       
    25 CObexServerRequestPacketEngine::~CObexServerRequestPacketEngine()
       
    26 	{
       
    27 
       
    28 	}
       
    29 	
       
    30 CObexServerRequestPacketEngine::CObexServerRequestPacketEngine(CObexServer& aServer)
       
    31 	: iServer(aServer)
       
    32 	{
       
    33 
       
    34 	}
       
    35 
       
    36 void CObexServerRequestPacketEngine::SetObexServerRequestPacketObserver(MObexServerRequestPacketNotify& aRequestPacketNotify)
       
    37 	{
       
    38 	iRequestPacketNotify = &aRequestPacketNotify;
       
    39 	}
       
    40 	
       
    41 void CObexServerRequestPacketEngine::DeleteObexServerRequestPacketNotifyRegister()
       
    42 	{
       
    43 	iServer.iServerRequestPacketEngine = NULL;
       
    44 	delete this;
       
    45 	}
       
    46 
       
    47