contentstorage/casrv/cawidgetscanner/inc/widgetscannerutils.h
author hgs
Fri, 30 Apr 2010 15:22:08 +0300
changeset 93 82b66994846c
parent 89 1e87eb3b400f
child 98 d2f833ab7940
permissions -rw-r--r--
201017
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
85
7feec50967db 201003_02
hgs
parents:
diff changeset
     1
/*
7feec50967db 201003_02
hgs
parents:
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
7feec50967db 201003_02
hgs
parents:
diff changeset
     3
* All rights reserved.
7feec50967db 201003_02
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
7feec50967db 201003_02
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
7feec50967db 201003_02
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
7feec50967db 201003_02
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
7feec50967db 201003_02
hgs
parents:
diff changeset
     8
*
7feec50967db 201003_02
hgs
parents:
diff changeset
     9
* Initial Contributors:
7feec50967db 201003_02
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
7feec50967db 201003_02
hgs
parents:
diff changeset
    11
*
7feec50967db 201003_02
hgs
parents:
diff changeset
    12
* Contributors:
7feec50967db 201003_02
hgs
parents:
diff changeset
    13
*
93
hgs
parents: 89
diff changeset
    14
* Description:
85
7feec50967db 201003_02
hgs
parents:
diff changeset
    15
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    16
*/
7feec50967db 201003_02
hgs
parents:
diff changeset
    17
7feec50967db 201003_02
hgs
parents:
diff changeset
    18
7feec50967db 201003_02
hgs
parents:
diff changeset
    19
#ifndef WIDGETSCANNERUTILS_H
7feec50967db 201003_02
hgs
parents:
diff changeset
    20
#define WIDGETSCANNERUTILS_H
7feec50967db 201003_02
hgs
parents:
diff changeset
    21
7feec50967db 201003_02
hgs
parents:
diff changeset
    22
//  INCLUDES
7feec50967db 201003_02
hgs
parents:
diff changeset
    23
#include <e32base.h>
7feec50967db 201003_02
hgs
parents:
diff changeset
    24
#include <driveinfo.h>
7feec50967db 201003_02
hgs
parents:
diff changeset
    25
7feec50967db 201003_02
hgs
parents:
diff changeset
    26
// CONSTANTS
89
hgs
parents: 85
diff changeset
    27
_LIT(KAttrWidgetPath, "widget:path");
85
7feec50967db 201003_02
hgs
parents:
diff changeset
    28
_LIT(KAttrWidgetLibrary, "widget:library");
7feec50967db 201003_02
hgs
parents:
diff changeset
    29
_LIT(KAttrWidgetUri, "widget:uri");
93
hgs
parents: 89
diff changeset
    30
_LIT(KAttrWidgetServiceXml, "widget:servicexml");
85
7feec50967db 201003_02
hgs
parents:
diff changeset
    31
_LIT(KSlash, "/");
7feec50967db 201003_02
hgs
parents:
diff changeset
    32
_LIT(KDllExt, ".dll");
7feec50967db 201003_02
hgs
parents:
diff changeset
    33
_LIT(KNoLibrary, "NoLibrary");
7feec50967db 201003_02
hgs
parents:
diff changeset
    34
7feec50967db 201003_02
hgs
parents:
diff changeset
    35
// FORWARD DECLARATIONS
7feec50967db 201003_02
hgs
parents:
diff changeset
    36
class CCaInnerEntry;
7feec50967db 201003_02
hgs
parents:
diff changeset
    37
/**
7feec50967db 201003_02
hgs
parents:
diff changeset
    38
 *  Widget Scanner Utils
7feec50967db 201003_02
hgs
parents:
diff changeset
    39
 *
7feec50967db 201003_02
hgs
parents:
diff changeset
    40
 *  @since Series Series60 5.x
7feec50967db 201003_02
hgs
parents:
diff changeset
    41
 */
93
hgs
parents: 89
diff changeset
    42
class WidgetScannerUtils
85
7feec50967db 201003_02
hgs
parents:
diff changeset
    43
    {
7feec50967db 201003_02
hgs
parents:
diff changeset
    44
public:
7feec50967db 201003_02
hgs
parents:
diff changeset
    45
7feec50967db 201003_02
hgs
parents:
diff changeset
    46
    /**
7feec50967db 201003_02
hgs
parents:
diff changeset
    47
     * Checks if file is present on a drive
7feec50967db 201003_02
hgs
parents:
diff changeset
    48
     * @param aFileName file name
7feec50967db 201003_02
hgs
parents:
diff changeset
    49
     * @param aDriveLetter drive letter
7feec50967db 201003_02
hgs
parents:
diff changeset
    50
     * @return ETrue if file is present, EFalse if not
7feec50967db 201003_02
hgs
parents:
diff changeset
    51
     */
7feec50967db 201003_02
hgs
parents:
diff changeset
    52
    static TBool IsFileOnDrive(const TDesC& aFileName,
7feec50967db 201003_02
hgs
parents:
diff changeset
    53
        const DriveInfo::TDefaultDrives& aDefaultDrive);
7feec50967db 201003_02
hgs
parents:
diff changeset
    54
7feec50967db 201003_02
hgs
parents:
diff changeset
    55
    /**
93
hgs
parents: 89
diff changeset
    56
     * Returns current MMC id.
hgs
parents: 89
diff changeset
    57
     * @param aFs file server session reference.
hgs
parents: 89
diff changeset
    58
     * @param aMmcId mmc id reference.
hgs
parents: 89
diff changeset
    59
     */
hgs
parents: 89
diff changeset
    60
    static void CurrentMmcId( const RFs& aFs, TDes& aMmcId );
85
7feec50967db 201003_02
hgs
parents:
diff changeset
    61
7feec50967db 201003_02
hgs
parents:
diff changeset
    62
    };
7feec50967db 201003_02
hgs
parents:
diff changeset
    63
7feec50967db 201003_02
hgs
parents:
diff changeset
    64
#endif      // WIDGETSCANNERUTILS_H
7feec50967db 201003_02
hgs
parents:
diff changeset
    65
// End of File