omadrm/drmengine/agentv2/inc/Oma2AgentAttributes.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    20 #ifndef __Oma2AGENTATTRIBUTES_H__
    20 #ifndef __Oma2AGENTATTRIBUTES_H__
    21 #define __Oma2AGENTATTRIBUTES_H__
    21 #define __Oma2AGENTATTRIBUTES_H__
    22 
    22 
    23 #include <caf/caftypes.h>
    23 #include <caf/caftypes.h>
    24 #include <caf/virtualpathptr.h>
    24 #include <caf/virtualpathptr.h>
    25 #include <caf/AttributeSet.h>
    25 #include <caf/attributeset.h>
    26 #include <caf/StringAttributeSet.h>
    26 #include <caf/stringattributeset.h>
    27 #include "Oma2Agent.h"
    27 #include "Oma2Agent.h"
    28 #include "Oma2Dcf.h"
    28 #include "oma2dcf.h"
    29 
    29 
    30 using namespace ContentAccess;
    30 using namespace ContentAccess;
    31 
    31 
    32 class RDRMRightsClient;
    32 class RDRMRightsClient;
    33 
    33 
    36 CAgentManager. The OMA DCF attributes are mostly fixed anyway so this class
    36 CAgentManager. The OMA DCF attributes are mostly fixed anyway so this class
    37 implements helper functions for all of the attribute functions
    37 implements helper functions for all of the attribute functions
    38 */
    38 */
    39 
    39 
    40 class TOma2AgentAttributes
    40 class TOma2AgentAttributes
    41 	{
    41     {
    42 public:
    42 public:
    43 	static TInt GetAttribute(
    43     static TInt GetAttribute(
    44 	    CDcfCommon& aDcfFile,
    44         CDcfCommon& aDcfFile,
    45 	    TInt aAttribute, 
    45         TInt aAttribute,
    46 	    const TVirtualPathPtr& aVirtualPath,
    46         const TVirtualPathPtr& aVirtualPath,
    47 	    RDRMRightsClient* aRightsClient = NULL);
    47         RDRMRightsClient* aRightsClient = NULL);
    48 	    
    48 
    49 	static TInt GetAttributeSet(
    49     static TInt GetAttributeSet(
    50 	    CDcfCommon& aDcfFile,
    50         CDcfCommon& aDcfFile,
    51 	    RAttributeSet& aAttributeSet,
    51         RAttributeSet& aAttributeSet,
    52 	    const TVirtualPathPtr& aVirtualPath,
    52         const TVirtualPathPtr& aVirtualPath,
    53 	    RDRMRightsClient* aRightsClient = NULL);
    53         RDRMRightsClient* aRightsClient = NULL);
    54 	    
    54 
    55 	static TInt GetStringAttribute(
    55     static TInt GetStringAttribute(
    56 	    CDcfCommon& aDcfFile,
    56         CDcfCommon& aDcfFile,
    57 	    TInt aAttribute,
    57         TInt aAttribute,
    58 	    TDes& aValue,
    58         TDes& aValue,
    59 	    const TVirtualPathPtr& aVirtualPath,
    59         const TVirtualPathPtr& aVirtualPath,
    60 	    RDRMRightsClient* aRightsClient = NULL);
    60         RDRMRightsClient* aRightsClient = NULL);
    61 	    
    61 
    62 	static TInt GetStringAttributeSet(
    62     static TInt GetStringAttributeSet(
    63 	    CDcfCommon& aDcfFile,
    63         CDcfCommon& aDcfFile,
    64 	    RStringAttributeSet& aStringAttributeSet,
    64         RStringAttributeSet& aStringAttributeSet,
    65 	    const TVirtualPathPtr& aVirtualPath,
    65         const TVirtualPathPtr& aVirtualPath,
    66 	    RDRMRightsClient* aRightsClient = NULL);
    66         RDRMRightsClient* aRightsClient = NULL);
    67 	};
    67     };
    68 
    68 
    69 #endif // __Oma2AGENTATTRIBUTES_H__
    69 #endif // __Oma2AGENTATTRIBUTES_H__