1 /* |
1 /* |
2 * Copyright (c) 2008 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". |
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
8 * |
16 */ |
9 * Initial Contributors: |
17 |
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
18 |
17 |
19 #ifndef WIDGETSCANNERUTILS_H |
18 #ifndef WIDGETSCANNERUTILS_H |
20 #define WIDGETSCANNERUTILS_H |
19 #define WIDGETSCANNERUTILS_H |
21 |
20 |
22 // INCLUDES |
21 // INCLUDES |
23 #include <e32base.h> |
22 #include <e32base.h> |
24 #include <driveinfo.h> |
23 #include <driveinfo.h> |
25 |
24 #include "cawidgetscannerdef.h" |
26 // CONSTANTS |
|
27 _LIT(KAttrWidgetPath, "widget:path"); |
|
28 _LIT(KAttrWidgetLibrary, "widget:library"); |
|
29 _LIT(KAttrWidgetUri, "widget:uri"); |
|
30 _LIT(KAttrWidgetServiceXml, "widget:servicexml"); |
|
31 _LIT(KSlash, "/"); |
|
32 _LIT(KDllExt, ".dll"); |
|
33 _LIT(KNoLibrary, "NoLibrary"); |
|
34 |
25 |
35 // FORWARD DECLARATIONS |
26 // FORWARD DECLARATIONS |
36 class CCaInnerEntry; |
27 class CCaInnerEntry; |
37 /** |
28 /** |
38 * Widget Scanner Utils |
29 * Widget Scanner Utils |
47 * Checks if file is present on a drive |
38 * Checks if file is present on a drive |
48 * @param aFileName file name |
39 * @param aFileName file name |
49 * @param aDriveLetter drive letter |
40 * @param aDriveLetter drive letter |
50 * @return ETrue if file is present, EFalse if not |
41 * @return ETrue if file is present, EFalse if not |
51 */ |
42 */ |
52 static TBool IsFileOnDrive(const TDesC& aFileName, |
43 static TBool IsFileOnDrive( const TDesC& aFileName, |
53 const DriveInfo::TDefaultDrives& aDefaultDrive); |
44 const DriveInfo::TDefaultDrives& aDefaultDrive ); |
54 |
45 |
55 /** |
46 /** |
56 * Returns current MMC id. |
47 * Returns current MMC id. |
57 * @param aFs file server session reference. |
48 * @param aFs file server session reference. |
58 * @param aMmcId mmc id reference. |
49 * @param aMmcId mmc id reference. |