inc/drmrightsstoringlocation.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Handling storing location of DRM rights
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DRMRIGHTSSTORINGLOCATION_H
       
    20 #define DRMRIGHTSSTORINGLOCATION_H
       
    21 
       
    22 #include "drmutilityinternaltypes.h"
       
    23 
       
    24 // CLASS DECLARATION
       
    25 /**
       
    26 *  DrmRightsStoringLocation
       
    27 *
       
    28 *  Collection of methods for the implementation of configurable 
       
    29 *  storing location of DRM rights
       
    30 */
       
    31 class DrmRightsStoringLocation
       
    32 {
       
    33     public:
       
    34         /**
       
    35         * Checks if the storing location of DRM Rights is configured in the
       
    36         * Central Repository key. The function returns truth value based on
       
    37         * the availability of the configuration information. If the configured 
       
    38         * drive is not found, the function returns default system drive as the  
       
    39         * storage drive for rights.  
       
    40         * @param aFs               File server session
       
    41         * @param aDrmScheme        The DRM scheme, e.g., OMA DRM or WM DRM    
       
    42         * @param aChar             The drive letter from the Central Repository
       
    43                                    or the default system drive if key is not found
       
    44         * @return                  Truth value based on the availability of the 
       
    45         *                          storage drive configuration information                 
       
    46         */
       
    47         IMPORT_C static TBool CheckDrmRightsStorageDriveL( RFs &aFs,
       
    48             TDrmScheme& aDrmScheme, TChar& aChar );       
       
    49                                        
       
    50     private:
       
    51                                      
       
    52 };
       
    53 
       
    54 #endif      // DRMRIGHTSSTORINGLOCATION_H
       
    55 
       
    56 // End of File