diff -r f1fd07aa74c9 -r 59aa7d6e3e0f usbmgmt/usbmgr/usbman/server/SRC/cusbhostwatcher.cpp --- a/usbmgmt/usbmgr/usbman/server/SRC/cusbhostwatcher.cpp Wed Jul 07 14:16:40 2010 +0800 +++ b/usbmgmt/usbmgr/usbman/server/SRC/cusbhostwatcher.cpp Wed Jul 07 15:08:54 2010 +0800 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -17,13 +17,14 @@ #include "cusbhostwatcher.h" -#include #include "cusbhost.h" +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "cusbhostwatcherTraces.h" +#endif + -#ifdef __FLOG_ACTIVE -_LIT8(KLogComponent, "hoststatewatcher"); -#endif /* * Base class for USB Host watchers @@ -36,23 +37,26 @@ iOwner(aOwner), iWatcherId(aWatcherId) { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTWATCHER_CACTIVEUSBHOSTWATCHER_CONS_ENTRY ); CActiveScheduler::Add(this); + OstTraceFunctionExit0( CACTIVEUSBHOSTWATCHER_CACTIVEUSBHOSTWATCHER_CONS_EXIT ); } CActiveUsbHostWatcher::~CActiveUsbHostWatcher() { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTWATCHER_CACTIVEUSBHOSTWATCHER_DES_ENTRY ); Cancel(); + OstTraceFunctionExit0( CACTIVEUSBHOSTWATCHER_CACTIVEUSBHOSTWATCHER_DES_EXIT ); } void CActiveUsbHostWatcher::RunL() { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTWATCHER_RUNL_ENTRY ); ASSERT(iStatus.Int() == KErrNone); iOwner.NotifyHostEvent(iWatcherId); Post(); + OstTraceFunctionExit0( CACTIVEUSBHOSTWATCHER_RUNL_EXIT ); } @@ -80,28 +84,32 @@ , iHostEventInfo(aHostEventInfo) { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTEVENTWATCHER_CACTIVEUSBHOSTEVENTWATCHER_CONS_ENTRY ); + OstTraceFunctionExit0( CACTIVEUSBHOSTEVENTWATCHER_CACTIVEUSBHOSTEVENTWATCHER_CONS_EXIT ); } CActiveUsbHostEventWatcher::~CActiveUsbHostEventWatcher() { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTEVENTWATCHER_CACTIVEUSBHOSTEVENTWATCHER_DES_ENTRY ); Cancel(); + OstTraceFunctionExit0( CACTIVEUSBHOSTEVENTWATCHER_CACTIVEUSBHOSTEVENTWATCHER_DES_EXIT ); } void CActiveUsbHostEventWatcher::Post() { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTEVENTWATCHER_POST_ENTRY ); iUsbHostStack.NotifyDeviceEvent(iStatus, iHostEventInfo); SetActive(); + OstTraceFunctionExit0( CACTIVEUSBHOSTEVENTWATCHER_POST_EXIT ); } void CActiveUsbHostEventWatcher::DoCancel() { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTEVENTWATCHER_DOCANCEL_ENTRY ); iUsbHostStack.NotifyDeviceEventCancel(); + OstTraceFunctionExit0( CACTIVEUSBHOSTEVENTWATCHER_DOCANCEL_EXIT ); } @@ -120,9 +128,9 @@ CActiveUsbHostMessageWatcher::~CActiveUsbHostMessageWatcher() { - LOG_FUNC - + OstTraceFunctionEntry0( CACTIVEUSBHOSTMESSAGEWATCHER_CACTIVEUSBHOSTMESSAGEWATCHER_DES_ENTRY ); Cancel(); + OstTraceFunctionExit0( CACTIVEUSBHOSTMESSAGEWATCHER_CACTIVEUSBHOSTMESSAGEWATCHER_DES_EXIT ); } CActiveUsbHostMessageWatcher::CActiveUsbHostMessageWatcher( @@ -134,22 +142,25 @@ KHostMessageMonitor) , iHostMessage(aHostMessage) { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTMESSAGEWATCHER_CACTIVEUSBHOSTMESSAGEWATCHER_CONS_ENTRY ); + OstTraceFunctionExit0( CACTIVEUSBHOSTMESSAGEWATCHER_CACTIVEUSBHOSTMESSAGEWATCHER_CONS_EXIT ); } void CActiveUsbHostMessageWatcher::Post() { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTMESSAGEWATCHER_POST_ENTRY ); iUsbHostStack.NotifyDevmonEvent(iStatus, iHostMessage); SetActive(); + OstTraceFunctionExit0( CACTIVEUSBHOSTMESSAGEWATCHER_POST_EXIT ); } void CActiveUsbHostMessageWatcher::DoCancel() { - LOG_FUNC + OstTraceFunctionEntry0( CACTIVEUSBHOSTMESSAGEWATCHER_DOCANCEL_ENTRY ); iUsbHostStack.NotifyDevmonEventCancel(); + OstTraceFunctionExit0( CACTIVEUSBHOSTMESSAGEWATCHER_DOCANCEL_EXIT ); }