contentmgmt/contentaccessfwfordrm/inc/content.h
branchRCL_3
changeset 96 a71299154b21
parent 95 641f389e9157
equal deleted inserted replaced
95:641f389e9157 96:a71299154b21
   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
       
   192 
   168 
   193 		/** destructor */
   169 		/** destructor */
   194 		virtual ~CContent();
   170 		virtual ~CContent();
   195 
   171 
   196  		/** Open a Container object within the file.
   172  		/** Open a Container object within the file.
   989 		
   965 		
   990 	private:
   966 	private:
   991 		CContent(); 
   967 		CContent(); 
   992 		void ConstructL(RFile& aFile); 
   968 		void ConstructL(RFile& aFile); 
   993 		void ConstructL(const TDesC& aURI, TContentShareMode aShareMode); 
   969 		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
       
  1022 
   970 
  1023 	private:	
   971 	private:	
  1024 	
   972 	
  1025 		/** CAgentFactory object is effectively the	ECOM session handle */
   973 		/** CAgentFactory object is effectively the	ECOM session handle */
  1026 		CAgentFactory* iAgentFactory;
   974 		CAgentFactory* iAgentFactory;
  1050 		RFile64 iFile;
   998 		RFile64 iFile;
  1051 #else
   999 #else
  1052 		RFile iFile;
  1000 		RFile iFile;
  1053 #endif //SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
  1001 #endif //SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
  1054 
  1002 
  1055 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
  1056 		HBufC8* iHeaderData;
       
  1057 #endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
  1058 
       
  1059 		};
  1003 		};
  1060 
  1004 
  1061 #include <caf/content.inl>
  1005 #include <caf/content.inl>
  1062 	} // namespace ContentAccess
  1006 	} // namespace ContentAccess
  1063 
  1007