1 // |
1 /* |
2 // ============================================================================ |
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
3 // Name : WidgetMMCHandler.cpp |
3 * All rights reserved. |
4 // Part of : SW Installer UIs / WidgetInstallerUI |
4 * This component and the accompanying materials are made available |
5 // |
5 * under the terms of "Eclipse Public License v1.0" |
6 // Description: Handle notifications of MMC events. |
6 * which accompanies this distribution, and is available |
7 // |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 // |
8 * |
9 // Version : 3.1 |
9 * Initial Contributors: |
10 // |
10 * Nokia Corporation - initial contribution. |
11 // Copyright © 2006 Nokia Corporation. |
11 * |
12 // This material, including documentation and any related |
12 * Contributors: |
13 // computer programs, is protected by copyright controlled by |
13 * |
14 // Nokia Corporation. All rights are reserved. Copying, |
14 * Description: Handle notifications of MMC events. |
15 // including reproducing, storing, adapting or translating, any |
15 * |
16 // or all of this material requires the prior written consent of |
16 * |
17 // Nokia Corporation. This material also contains confidential |
17 * |
18 // information which may not be disclosed to others without the |
18 */ |
19 // prior written consent of Nokia Corporation. |
19 |
20 // ============================================================================== |
|
21 /// |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include "WidgetMMCHandler.h" |
20 #include "WidgetMMCHandler.h" |
25 #include "WidgetRegistry.h" |
21 #include "WidgetRegistry.h" |
26 |
22 |
27 // CONSTANTS |
23 // CONSTANTS |
28 LOG_NAMES( "widreg", "widrmmc.txt" ) |
24 LOG_NAMES( "widreg", "widrmmc.txt" ) |
132 if ( KErrNone == ScanDrives( driveFlags ) ) |
128 if ( KErrNone == ScanDrives( driveFlags ) ) |
133 { |
129 { |
134 LOG1( " iDriveFlags 0x%x", iDriveFlags ); |
130 LOG1( " iDriveFlags 0x%x", iDriveFlags ); |
135 LOG1( " driveFlags 0x%x", driveFlags ); |
131 LOG1( " driveFlags 0x%x", driveFlags ); |
136 deltaDriveFlags = iDriveFlags ^ driveFlags; |
132 deltaDriveFlags = iDriveFlags ^ driveFlags; |
137 iDeltaDriveFlags = deltaDriveFlags; |
133 iDeltaDriveFlags |= deltaDriveFlags; |
138 LOG1( " deltaDriveFlags 0x%x", deltaDriveFlags ); |
134 LOG1( " deltaDriveFlags 0x%x", deltaDriveFlags ); |
139 iDriveFlags = driveFlags; |
135 iDriveFlags = driveFlags; |
140 } |
136 } |
141 } |
137 } |
142 LOG( "MMC notification done" ); |
138 LOG( "MMC notification done" ); |