wmdrm/wmdrmengine/wmdrmagent/inc/wmdrmagentattributes.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2006-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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef WMDRMAGENTATTRIBUTES_H
       
    20 #define WMDRMAGENTATTRIBUTES_H
       
    21 
       
    22 #include <caf/caftypes.h>
       
    23 #include <caf/virtualpathptr.h>
       
    24 #include <caf/attributeset.h>
       
    25 #include <caf/stringattributeset.h>
       
    26 
       
    27 class CAsf;
       
    28 
       
    29 using namespace ContentAccess;
       
    30 
       
    31 /**
       
    32 *  Helper class providing functionality for getting WMDRM specific attributes
       
    33 *  using an ASF file and a WMDRM Porting Kit instance
       
    34 *
       
    35 *  @since S60 3.2
       
    36 */
       
    37 NONSHARABLE_CLASS( TWmDrmAgentAttributes )
       
    38     {
       
    39 public:
       
    40 
       
    41     static TInt GetAttributeL(
       
    42         CAsf* aAsfFile,
       
    43         TInt aAttribute,
       
    44         TInt& aValue,
       
    45         const TVirtualPathPtr& aVirtualPath,
       
    46         TBool aReusePreviousQuery = EFalse );
       
    47 
       
    48     static TInt GetAttributeSetL(
       
    49         CAsf* aAsfFile,
       
    50         RAttributeSet& aAttributeSet,
       
    51         const TVirtualPathPtr& aVirtualPath );
       
    52 
       
    53     static TInt GetStringAttributeL(
       
    54         CAsf* aAsfFile,
       
    55         TInt aAttribute,
       
    56         TDes& aValue,
       
    57         const TVirtualPathPtr& aVirtualPath,
       
    58         TBool aReusePreviousQuery = EFalse );
       
    59 
       
    60     static TInt GetStringAttributeSetL(
       
    61         CAsf* aAsfFile,
       
    62         RStringAttributeSet& aStringAttributeSet,
       
    63         const TVirtualPathPtr& aVirtualPath );
       
    64     };
       
    65 
       
    66 #endif // WMDRMAGENTATTRIBUTES_H