usbmgmt/usbmgr/usbman/server/SRC/CUsbScheduler.cpp
branchRCL_3
changeset 42 f92a4f87e424
parent 0 c9bc50fca66e
child 43 012cc2ee6408
equal deleted inserted replaced
37:d3e8e7d462dd 42:f92a4f87e424
     1 /*
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 1997-2010 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>
       
    23 #include "CUsbScheduler.h"
    22 #include "CUsbScheduler.h"
    24 #include "CUsbServer.h"
    23 #include "CUsbServer.h"
       
    24 #include "OstTraceDefinitions.h"
       
    25 #ifdef OST_TRACE_COMPILER_IN_USE
       
    26 #include "CUsbSchedulerTraces.h"
       
    27 #endif
    25 
    28 
    26 #ifdef __FLOG_ACTIVE
    29 
    27 _LIT8(KLogComponent, "USBSVR");
       
    28 #endif
       
    29 
    30 
    30 /**
    31 /**
    31  * The CUsbScheduler::NewL method
    32  * The CUsbScheduler::NewL method
    32  *
    33  *
    33  * Creates a new Active scheduler
    34  * Creates a new Active scheduler
    34  *
    35  *
    35  * @internalComponent
    36  * @internalComponent
    36  */
    37  */
    37 CUsbScheduler* CUsbScheduler::NewL()
    38 CUsbScheduler* CUsbScheduler::NewL()
    38 	{
    39 	{
    39 	LOG_STATIC_FUNC_ENTRY
    40 	OstTraceFunctionEntry0( CUSBSCHEDULER_NEWL_ENTRY );
    40 
    41 	
    41 	CUsbScheduler* self = new(ELeave) CUsbScheduler;
    42 	CUsbScheduler* self = new(ELeave) CUsbScheduler;
       
    43 	OstTraceFunctionExit0( CUSBSCHEDULER_NEWL_EXIT );
    42 	return self;
    44 	return self;
    43 	}
    45 	}
    44 
    46 
    45 /**
    47 /**
    46  * The CUsbScheduler::~CUsbScheduler method
    48  * The CUsbScheduler::~CUsbScheduler method
    78  * @internalComponent
    80  * @internalComponent
    79  * @param	aError	Error that has occurred
    81  * @param	aError	Error that has occurred
    80  */
    82  */
    81 void CUsbScheduler::Error(TInt aError) const
    83 void CUsbScheduler::Error(TInt aError) const
    82 	{
    84 	{
    83 	LOGTEXT2(_L8("CUsbScheduler::Error aError=%d"), aError);
    85 	OstTrace1( TRACE_NORMAL, CUSBSCHEDULER_ERROR, "CUsbScheduler::Error;aError=%d", aError );
       
    86 	
    84 
    87 
    85 	if (iServer)
    88 	if (iServer)
    86 		{
    89 		{
    87 		iServer->Error(aError);
    90 		iServer->Error(aError);
    88 		}
    91 		}