usbmgmt/usbmgr/usbman/server/SRC/CUsbScheduler.cpp
branchRCL_3
changeset 16 012cc2ee6408
parent 15 f92a4f87e424
equal deleted inserted replaced
15:f92a4f87e424 16:012cc2ee6408
     1 /*
     1 /*
     2 * Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 /**
    18 /**
    19  @file
    19  @file
    20 */
    20 */
    21 
    21 
       
    22 #include <usb/usblogger.h>
    22 #include "CUsbScheduler.h"
    23 #include "CUsbScheduler.h"
    23 #include "CUsbServer.h"
    24 #include "CUsbServer.h"
    24 #include "OstTraceDefinitions.h"
    25 
    25 #ifdef OST_TRACE_COMPILER_IN_USE
    26 #ifdef __FLOG_ACTIVE
    26 #include "CUsbSchedulerTraces.h"
    27 _LIT8(KLogComponent, "USBSVR");
    27 #endif
    28 #endif
    28 
       
    29 
       
    30 
    29 
    31 /**
    30 /**
    32  * The CUsbScheduler::NewL method
    31  * The CUsbScheduler::NewL method
    33  *
    32  *
    34  * Creates a new Active scheduler
    33  * Creates a new Active scheduler
    35  *
    34  *
    36  * @internalComponent
    35  * @internalComponent
    37  */
    36  */
    38 CUsbScheduler* CUsbScheduler::NewL()
    37 CUsbScheduler* CUsbScheduler::NewL()
    39 	{
    38 	{
    40 	OstTraceFunctionEntry0( CUSBSCHEDULER_NEWL_ENTRY );
    39 	LOG_STATIC_FUNC_ENTRY
    41 	
    40 
    42 	CUsbScheduler* self = new(ELeave) CUsbScheduler;
    41 	CUsbScheduler* self = new(ELeave) CUsbScheduler;
    43 	OstTraceFunctionExit0( CUSBSCHEDULER_NEWL_EXIT );
       
    44 	return self;
    42 	return self;
    45 	}
    43 	}
    46 
    44 
    47 /**
    45 /**
    48  * The CUsbScheduler::~CUsbScheduler method
    46  * The CUsbScheduler::~CUsbScheduler method
    80  * @internalComponent
    78  * @internalComponent
    81  * @param	aError	Error that has occurred
    79  * @param	aError	Error that has occurred
    82  */
    80  */
    83 void CUsbScheduler::Error(TInt aError) const
    81 void CUsbScheduler::Error(TInt aError) const
    84 	{
    82 	{
    85 	OstTrace1( TRACE_NORMAL, CUSBSCHEDULER_ERROR, "CUsbScheduler::Error;aError=%d", aError );
    83 	LOGTEXT2(_L8("CUsbScheduler::Error aError=%d"), aError);
    86 	
       
    87 
    84 
    88 	if (iServer)
    85 	if (iServer)
    89 		{
    86 		{
    90 		iServer->Error(aError);
    87 		iServer->Error(aError);
    91 		}
    88 		}