85
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
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 |
*
|
93
|
14 |
* Description:
|
85
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef WIDGETSCANNERUTILS_H
|
|
20 |
#define WIDGETSCANNERUTILS_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <e32base.h>
|
|
24 |
#include <driveinfo.h>
|
|
25 |
|
|
26 |
// CONSTANTS
|
89
|
27 |
_LIT(KAttrWidgetPath, "widget:path");
|
85
|
28 |
_LIT(KAttrWidgetLibrary, "widget:library");
|
|
29 |
_LIT(KAttrWidgetUri, "widget:uri");
|
93
|
30 |
_LIT(KAttrWidgetServiceXml, "widget:servicexml");
|
85
|
31 |
_LIT(KSlash, "/");
|
|
32 |
_LIT(KDllExt, ".dll");
|
|
33 |
_LIT(KNoLibrary, "NoLibrary");
|
|
34 |
|
|
35 |
// FORWARD DECLARATIONS
|
|
36 |
class CCaInnerEntry;
|
|
37 |
/**
|
|
38 |
* Widget Scanner Utils
|
|
39 |
*
|
|
40 |
* @since Series Series60 5.x
|
|
41 |
*/
|
93
|
42 |
class WidgetScannerUtils
|
85
|
43 |
{
|
|
44 |
public:
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Checks if file is present on a drive
|
|
48 |
* @param aFileName file name
|
|
49 |
* @param aDriveLetter drive letter
|
|
50 |
* @return ETrue if file is present, EFalse if not
|
|
51 |
*/
|
|
52 |
static TBool IsFileOnDrive(const TDesC& aFileName,
|
|
53 |
const DriveInfo::TDefaultDrives& aDefaultDrive);
|
|
54 |
|
|
55 |
/**
|
93
|
56 |
* Returns current MMC id.
|
|
57 |
* @param aFs file server session reference.
|
|
58 |
* @param aMmcId mmc id reference.
|
|
59 |
*/
|
|
60 |
static void CurrentMmcId( const RFs& aFs, TDes& aMmcId );
|
85
|
61 |
|
|
62 |
};
|
|
63 |
|
|
64 |
#endif // WIDGETSCANNERUTILS_H
|
|
65 |
// End of File
|