obex/obexprotocol/obex/src/obexnotifyhandlerbase.cpp
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 #include <obexbase.h>
       
    17 #include "obexnotifyhandlerbase.h"
       
    18 
       
    19 /**
       
    20 @file
       
    21 @released
       
    22 @internalComponent
       
    23 */
       
    24 
       
    25 /** Constructor.
       
    26 
       
    27 @param aObex The object to pass notifications to.
       
    28 */
       
    29 CObexNotifyHandlerBase::CObexNotifyHandlerBase(CObex& aObex)
       
    30 	: iObex(aObex)
       
    31 	{
       
    32 	}
       
    33 
       
    34 /** Passes on Process notification.
       
    35 
       
    36 @param aPacket The packet to pass on to the CObex that will 
       
    37 			   handle this notification.
       
    38 */
       
    39 void CObexNotifyHandlerBase::Process(CObexPacket& aPacket)
       
    40 	{
       
    41 	iObex.NotifyProcess(aPacket);
       
    42 	}
       
    43 
       
    44 /** Passes on Error notification.
       
    45 
       
    46 @param aError The error to pass on to the CObex that will 
       
    47 			  handle this notification.
       
    48 */
       
    49 void CObexNotifyHandlerBase::Error(TInt aError)
       
    50 	{
       
    51 	iObex.NotifyError(aError);
       
    52 	}
       
    53 
       
    54 /** Passes on TransportUp notification.
       
    55 */	
       
    56 void CObexNotifyHandlerBase::TransportUp()
       
    57 	{
       
    58 	iObex.NotifyTransportUp();
       
    59 	}
       
    60 
       
    61 /** Passes on TransportDown notification.
       
    62 */	
       
    63 void CObexNotifyHandlerBase::TransportDown(TBool aForceTransportDeletion)
       
    64 	{
       
    65 	iObex.NotifyTransportDown(aForceTransportDeletion);
       
    66 	}