diff -r a15c582fbf97 -r ff9df6630274 usbclasses/usbobexclasscontroller/src/CUsbObexClassController.cpp --- a/usbclasses/usbobexclasscontroller/src/CUsbObexClassController.cpp Fri Mar 12 15:48:40 2010 +0200 +++ b/usbclasses/usbobexclasscontroller/src/CUsbObexClassController.cpp Mon Mar 15 12:44:42 2010 +0200 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002 - 2006 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 - 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" @@ -21,6 +21,8 @@ #include #include #include //for CleanupResetAndDestroyPushL +#include + // Panic category only used in debug builds #ifdef _DEBUG _LIT( KObexCcPanicCategory, "OBEXCC" ); @@ -79,6 +81,7 @@ { LOG_FUNC iObexSM = CObexUSB::NewL(); + iObexSMWatcher = CObexSMWatcher::NewL(*this); } // --------------------------------------------------------------------------- @@ -90,7 +93,8 @@ { LOG_FUNC Cancel(); - delete iObexSM; + delete iObexSM; + delete iObexSMWatcher; } // --------------------------------------------------------------------------- @@ -258,5 +262,12 @@ LOGTEXT2(_L8("CUsbObexClassController::RunError aError=%d"), aError); return KErrNone; } - + +void CUsbObexClassController::MosmError(TInt aError) + { + LOG_FUNC + LOGTEXT2(_L8("CUsbObexClassController::MosmError aError=%d"), aError); + Owner().UccnError(aError); + } + // End of File