|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Declaration of the Oma2AgentAttributes class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __Oma2AGENTATTRIBUTES_H__ |
|
21 #define __Oma2AGENTATTRIBUTES_H__ |
|
22 |
|
23 #include <caf/caftypes.h> |
|
24 #include <caf/virtualpathptr.h> |
|
25 #include <caf/AttributeSet.h> |
|
26 #include <caf/StringAttributeSet.h> |
|
27 #include "Oma2Agent.h" |
|
28 #include "Oma2Dcf.h" |
|
29 |
|
30 using namespace ContentAccess; |
|
31 |
|
32 class RDRMRightsClient; |
|
33 |
|
34 /** |
|
35 All attribute values are common between the CAgentData, CAgentContent and |
|
36 CAgentManager. The OMA DCF attributes are mostly fixed anyway so this class |
|
37 implements helper functions for all of the attribute functions |
|
38 */ |
|
39 |
|
40 class TOma2AgentAttributes |
|
41 { |
|
42 public: |
|
43 static TInt GetAttribute( |
|
44 CDcfCommon& aDcfFile, |
|
45 TInt aAttribute, |
|
46 const TVirtualPathPtr& aVirtualPath, |
|
47 RDRMRightsClient* aRightsClient = NULL); |
|
48 |
|
49 static TInt GetAttributeSet( |
|
50 CDcfCommon& aDcfFile, |
|
51 RAttributeSet& aAttributeSet, |
|
52 const TVirtualPathPtr& aVirtualPath, |
|
53 RDRMRightsClient* aRightsClient = NULL); |
|
54 |
|
55 static TInt GetStringAttribute( |
|
56 CDcfCommon& aDcfFile, |
|
57 TInt aAttribute, |
|
58 TDes& aValue, |
|
59 const TVirtualPathPtr& aVirtualPath, |
|
60 RDRMRightsClient* aRightsClient = NULL); |
|
61 |
|
62 static TInt GetStringAttributeSet( |
|
63 CDcfCommon& aDcfFile, |
|
64 RStringAttributeSet& aStringAttributeSet, |
|
65 const TVirtualPathPtr& aVirtualPath, |
|
66 RDRMRightsClient* aRightsClient = NULL); |
|
67 }; |
|
68 |
|
69 #endif // __Oma2AGENTATTRIBUTES_H__ |