equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008 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". |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <e32base.h> |
18 #include <e32base.h> |
19 #include <UsbWatcherInternalPSKeys.h> |
19 #include <UsbWatcherInternalPSKeys.h> |
|
20 #include <e32property.h> |
20 |
21 |
21 #include "cusbstatehostahost.h" |
22 #include "cusbstatehostahost.h" |
22 #include "cusbnotifmanager.h" |
23 #include "cusbnotifmanager.h" |
23 |
24 |
24 #include "definitions.h" |
25 #include "definitions.h" |
90 LOG_FUNC |
91 LOG_FUNC |
91 |
92 |
92 // do general things |
93 // do general things |
93 CUsbStateHostABase::JustAdvancedToThisStateL(); |
94 CUsbStateHostABase::JustAdvancedToThisStateL(); |
94 |
95 |
95 User::LeaveIfError(RProperty::Set(KPSUidUsbWatcher, |
96 LEAVEIFERROR(RProperty::Set(KPSUidUsbWatcher, |
96 KUsbWatcherIsPeripheralConnected, |
97 KUsbWatcherIsPeripheralConnected, |
97 KUsbWatcherPeripheralIsConnected)); |
98 KUsbWatcherPeripheralIsConnected)); |
98 |
99 |
99 } |
100 } |
100 |
101 |
104 // |
105 // |
105 void CUsbStateHostAHost::JustBeforeLeavingThisStateL() |
106 void CUsbStateHostAHost::JustBeforeLeavingThisStateL() |
106 { |
107 { |
107 LOG_FUNC |
108 LOG_FUNC |
108 |
109 |
109 User::LeaveIfError(RProperty::Set(KPSUidUsbWatcher, |
110 LEAVEIFERROR(RProperty::Set(KPSUidUsbWatcher, |
110 KUsbWatcherIsPeripheralConnected, |
111 KUsbWatcherIsPeripheralConnected, |
111 KUsbWatcherPeripheralIsNotConnected)); |
112 KUsbWatcherPeripheralIsNotConnected)); |
112 |
113 |
113 // do general things |
114 // do general things |
114 CUsbStateHostABase::JustBeforeLeavingThisStateL(); |
115 CUsbStateHostABase::JustBeforeLeavingThisStateL(); |
129 // --------------------------------------------------------------------------- |
130 // --------------------------------------------------------------------------- |
130 // |
131 // |
131 void CUsbStateHostAHost::BadHubPositionL() |
132 void CUsbStateHostAHost::BadHubPositionL() |
132 { |
133 { |
133 LOG_FUNC |
134 LOG_FUNC |
134 Panic( EBadHubPositionEventNotExpected); |
135 PANIC( EBadHubPositionEventNotExpected); |
135 } |
136 } |