|
1 /* |
|
2 * Copyright (c) 2002-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: Class definition for OMA DRM CAF Agent Rights Manager |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef OMA2AGENTRIGHTSMANAGER_H |
|
21 #define OMA2AGENTRIGHTSMANAGER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <caf/caf.h> |
|
25 #include <caf/agentinterface.h> |
|
26 |
|
27 // CONSTANTS |
|
28 //const ?type ?constant_var = ?constant; |
|
29 |
|
30 // MACROS |
|
31 //#define ?macro ?macro_def |
|
32 |
|
33 // DATA TYPES |
|
34 //enum ?declaration |
|
35 //typedef ?declaration |
|
36 //extern ?data_type; |
|
37 |
|
38 // FUNCTION PROTOTYPES |
|
39 //?type ?function_name(?arg_list); |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 //class ?FORWARD_CLASSNAME; |
|
43 |
|
44 namespace ContentAccess |
|
45 { |
|
46 |
|
47 // CLASS DECLARATION |
|
48 |
|
49 /** |
|
50 * ?one_line_short_description. |
|
51 * ?other_description_lines |
|
52 * |
|
53 * @lib ?library |
|
54 * @since Series ?XX ?SeriesXX_version |
|
55 */ |
|
56 class COma2AgentRightsManager : public CAgentRightsManager |
|
57 { |
|
58 public: // Constructors and destructor |
|
59 |
|
60 /** |
|
61 * Two-phased constructor. |
|
62 */ |
|
63 static COma2AgentRightsManager* NewL(); |
|
64 static COma2AgentRightsManager* NewLC(); |
|
65 |
|
66 /** |
|
67 * Destructor. |
|
68 */ |
|
69 ~COma2AgentRightsManager(); |
|
70 |
|
71 public: // New functions |
|
72 |
|
73 /** |
|
74 * ?member_description. |
|
75 * @since Series ?XX ?SeriesXX_version |
|
76 * @param ?arg1 ?description |
|
77 * @return ?description |
|
78 */ |
|
79 //?type ?member_function( ?type ?arg1 ); |
|
80 |
|
81 public: // Functions from base classes |
|
82 |
|
83 /** |
|
84 * From ?base_class ?member_description. |
|
85 * @since Series ?XX ?SeriesXX_version |
|
86 * @param ?arg1 ?description |
|
87 * @return ?description |
|
88 */ |
|
89 |
|
90 // From CAgentRightsManager |
|
91 void ListAllRightsL(RStreamablePtrArray<CRightsInfo>& aArray) const; |
|
92 void ListRightsL(RStreamablePtrArray<CRightsInfo>& aArray, const TDesC& aUri) const; |
|
93 void ListRightsL(RStreamablePtrArray<CRightsInfo>& aArray, TVirtualPathPtr& aVirtualPath) const; |
|
94 void ListContentL(RStreamablePtrArray<CVirtualPath>& aArray, CRightsInfo& aRightsInfo) const; |
|
95 MAgentRightsBase* GetRightsDataL(const CRightsInfo& aRightsInfo) const; |
|
96 TInt DeleteRightsObject(const CRightsInfo& aRightsInfo); |
|
97 TInt DeleteAllRightsObjects(const TVirtualPathPtr& aVirtualPath); |
|
98 TInt SetProperty(TAgentProperty aProperty, TInt aValue); |
|
99 |
|
100 private: |
|
101 |
|
102 protected: // New functions |
|
103 |
|
104 /** |
|
105 * ?member_description. |
|
106 * @since Series ?XX ?SeriesXX_version |
|
107 * @param ?arg1 ?description |
|
108 * @return ?description |
|
109 */ |
|
110 //?type ?member_function( ?type ?arg1 ); |
|
111 |
|
112 protected: // Functions from base classes |
|
113 |
|
114 /** |
|
115 * From ?base_class ?member_description |
|
116 */ |
|
117 //?type ?member_function(); |
|
118 |
|
119 private: |
|
120 |
|
121 /** |
|
122 * C++ default constructor. |
|
123 */ |
|
124 COma2AgentRightsManager(); |
|
125 |
|
126 /** |
|
127 * By default Symbian 2nd phase constructor is private. |
|
128 */ |
|
129 void ConstructL(); |
|
130 |
|
131 // Prohibit copy constructor if not deriving from CBase. |
|
132 // COma2AgentRightsManager( const COma2AgentRightsManager& ); |
|
133 // Prohibit assigment operator if not deriving from CBase. |
|
134 // COma2AgentRightsManager& operator=( const COma2AgentRightsManager& ); |
|
135 |
|
136 public: // Data |
|
137 // ?one_line_short_description_of_data |
|
138 //?data_declaration; |
|
139 |
|
140 protected: // Data |
|
141 // ?one_line_short_description_of_data |
|
142 |
|
143 private: // Data |
|
144 // ?one_line_short_description_of_data |
|
145 //?data_declaration; |
|
146 |
|
147 // Reserved pointer for future extension |
|
148 //TAny* iReserved; |
|
149 |
|
150 public: // Friend classes |
|
151 //?friend_class_declaration; |
|
152 protected: // Friend classes |
|
153 //?friend_class_declaration; |
|
154 private: // Friend classes |
|
155 //?friend_class_declaration; |
|
156 |
|
157 }; |
|
158 |
|
159 } |
|
160 |
|
161 #endif // OMA2AGENTRIGHTSMANAGER_H |
|
162 |
|
163 // End of File |