psln/pslnengine/inc/PslnDiskUtil.h
changeset 37 89c890c70182
parent 34 6b5204869ed5
child 45 667edd0b8678
equal deleted inserted replaced
34:6b5204869ed5 37:89c890c70182
     1 /*
       
     2 * Copyright (c) 2003-2007 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 *
       
    14 * Description:  Utility class for disk operations.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PSLNDISKUTIL_H
       
    20 #define PSLNDISKUTIL_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <f32file.h>
       
    24 
       
    25 // Removable drive is write protected.
       
    26 const TInt KPslnDiskUtilReadOnly = 1;
       
    27 
       
    28 /**
       
    29 * Static utility class for general disk-related operations in Psln.
       
    30 *
       
    31 * @since S60 v2.1
       
    32 */
       
    33 NONSHARABLE_CLASS( PslnDiskUtil )
       
    34     {
       
    35     public:
       
    36 
       
    37         /**
       
    38         * Checks the status of the memory card.
       
    39         *
       
    40         * @return KErrNone if memory card is available and can be accessed.
       
    41         *   System-wide error code if an error occured.
       
    42         */
       
    43         static TInt MmcStatus();
       
    44 
       
    45         /**
       
    46         * Sets the given file as automated DRM content.
       
    47         * Uses DRM helper to display the query, if needed.
       
    48         *
       
    49         * @since 2.6
       
    50         *
       
    51         * @param aSkinSrvSession skin server session.
       
    52         * @param aFileName filename.
       
    53         * @return ETrue if can be automated, EFalse otherwise.
       
    54         */
       
    55         static TBool QueryAndSetAutomatedL(
       
    56             RAknsSrvSession& aSkinSrvSession,
       
    57             const TDesC& aFileName );
       
    58 
       
    59     private:
       
    60 
       
    61         /**
       
    62         * Static class can not be instantiated.
       
    63         */
       
    64         PslnDiskUtil();
       
    65         //lint -esym(1526,PslnDiskUtil::PslnDiskUtil) Intentionally undefined
       
    66 
       
    67         /**
       
    68         * Static class can not be instantiated.
       
    69         */
       
    70         ~PslnDiskUtil();
       
    71 
       
    72     };
       
    73 
       
    74 #endif // PSLNDISKUTIL_H
       
    75 
       
    76 // End of File