163 other system-wide error codes for any other errors. |
163 other system-wide error codes for any other errors. |
164 @capability DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted |
164 @capability DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted |
165 */ |
165 */ |
166 IMPORT_C static CContent* NewL(RFile& aFile); |
166 IMPORT_C static CContent* NewL(RFile& aFile); |
167 |
167 |
|
168 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
169 /** |
|
170 Constructs a new CContent object. |
|
171 |
|
172 @param aHeaderData Header data of WMDRM file/stream content. |
|
173 @return CContent object. |
|
174 @leave KErrMissingHeaderData if the header data is NULL or one of the CAF error codes defined in caferr.h |
|
175 or one of the system-wide error codes for any other errors. |
|
176 @capability DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted |
|
177 */ |
|
178 IMPORT_C static CContent* NewL(const TDesC8& aHeaderData); |
|
179 |
|
180 /** |
|
181 Constructs a new CContent object. |
|
182 |
|
183 @param aHeaderData Header data of WMDRM file/stream content. |
|
184 @return CContent object. |
|
185 @leave KErrMissingHeaderData if the header data is NULL or one of the CAF error codes defined in caferr.h or one of the |
|
186 system-wide error codes for any other errors. |
|
187 @capability DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted |
|
188 */ |
|
189 IMPORT_C static CContent* NewLC(const TDesC8& aHeaderData); |
|
190 |
|
191 #endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
168 |
192 |
169 /** destructor */ |
193 /** destructor */ |
170 virtual ~CContent(); |
194 virtual ~CContent(); |
171 |
195 |
172 /** Open a Container object within the file. |
196 /** Open a Container object within the file. |
965 |
989 |
966 private: |
990 private: |
967 CContent(); |
991 CContent(); |
968 void ConstructL(RFile& aFile); |
992 void ConstructL(RFile& aFile); |
969 void ConstructL(const TDesC& aURI, TContentShareMode aShareMode); |
993 void ConstructL(const TDesC& aURI, TContentShareMode aShareMode); |
|
994 |
|
995 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
996 void ConstructL(const TDesC8& aHeaderData); |
|
997 |
|
998 /** |
|
999 Create a CData object for reading WMDRM content. |
|
1000 |
|
1001 @param aIntent The intended use of the content. |
|
1002 @param aHeaderData Header data of WMDRM file/stream content. |
|
1003 @return CData object. |
|
1004 @leave One of the CAF error codes defined in caferr.h or one of the system-wide error codes for any errors. |
|
1005 @capability DRM Access to DRM agents is not permitted for processes without DRM capability. |
|
1006 */ |
|
1007 |
|
1008 CData* OpenContentL(TIntent aIntent, const TDesC8& aHeaderData); |
|
1009 |
|
1010 /** |
|
1011 Create a CData object for reading WMDRM content. |
|
1012 |
|
1013 @param aIntent The intended use of the content. |
|
1014 @param aHeaderData Header data of WMDRM file/stream content. |
|
1015 @return CData object. |
|
1016 @leave One of the CAF error codes defined in caferr.h or one of the system-wide error codes for any errors. |
|
1017 @capability DRM Access to DRM agents is not permitted for processes without DRM capability. |
|
1018 */ |
|
1019 CData* OpenContentLC(TIntent aIntent, const TDesC8& aHeaderData); |
|
1020 |
|
1021 #endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
970 |
1022 |
971 private: |
1023 private: |
972 |
1024 |
973 /** CAgentFactory object is effectively the ECOM session handle */ |
1025 /** CAgentFactory object is effectively the ECOM session handle */ |
974 CAgentFactory* iAgentFactory; |
1026 CAgentFactory* iAgentFactory; |