equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002 - 2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002 - 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". |
19 #include "CUsbObexClassController.h" |
19 #include "CUsbObexClassController.h" |
20 #include <usb_std.h> |
20 #include <usb_std.h> |
21 #include <obex.h> |
21 #include <obex.h> |
22 #include <SrcsInterface.h> |
22 #include <SrcsInterface.h> |
23 #include <mmf/common/mmfcontrollerpluginresolver.h> //for CleanupResetAndDestroyPushL |
23 #include <mmf/common/mmfcontrollerpluginresolver.h> //for CleanupResetAndDestroyPushL |
|
24 #include <musbclasscontrollernotify.h> |
|
25 |
24 // Panic category only used in debug builds |
26 // Panic category only used in debug builds |
25 #ifdef _DEBUG |
27 #ifdef _DEBUG |
26 _LIT( KObexCcPanicCategory, "OBEXCC" ); |
28 _LIT( KObexCcPanicCategory, "OBEXCC" ); |
27 #endif |
29 #endif |
28 |
30 |
77 // |
79 // |
78 void CUsbObexClassController::ConstructL() |
80 void CUsbObexClassController::ConstructL() |
79 { |
81 { |
80 LOG_FUNC |
82 LOG_FUNC |
81 iObexSM = CObexUSB::NewL(); |
83 iObexSM = CObexUSB::NewL(); |
|
84 iObexSMWatcher = CObexSMWatcher::NewL(*this); |
82 } |
85 } |
83 |
86 |
84 // --------------------------------------------------------------------------- |
87 // --------------------------------------------------------------------------- |
85 // From class CUsbClassControllerPlugIn. |
88 // From class CUsbClassControllerPlugIn. |
86 // Destructor |
89 // Destructor |
88 // |
91 // |
89 CUsbObexClassController::~CUsbObexClassController() |
92 CUsbObexClassController::~CUsbObexClassController() |
90 { |
93 { |
91 LOG_FUNC |
94 LOG_FUNC |
92 Cancel(); |
95 Cancel(); |
93 delete iObexSM; |
96 delete iObexSM; |
|
97 delete iObexSMWatcher; |
94 } |
98 } |
95 |
99 |
96 // --------------------------------------------------------------------------- |
100 // --------------------------------------------------------------------------- |
97 // From class CUsbClassControllerPlugIn. |
101 // From class CUsbClassControllerPlugIn. |
98 // Called by UsbMan to start this class. |
102 // Called by UsbMan to start this class. |
256 { |
260 { |
257 LOG_FUNC |
261 LOG_FUNC |
258 LOGTEXT2(_L8("CUsbObexClassController::RunError aError=%d"), aError); |
262 LOGTEXT2(_L8("CUsbObexClassController::RunError aError=%d"), aError); |
259 return KErrNone; |
263 return KErrNone; |
260 } |
264 } |
261 |
265 |
|
266 void CUsbObexClassController::MosmError(TInt aError) |
|
267 { |
|
268 LOG_FUNC |
|
269 LOGTEXT2(_L8("CUsbObexClassController::MosmError aError=%d"), aError); |
|
270 Owner().UccnError(aError); |
|
271 } |
|
272 |
262 // End of File |
273 // End of File |