687 @param aFileName The file to delete. |
687 @param aFileName The file to delete. |
688 @deprecated Use DeleteFile() instead. |
688 @deprecated Use DeleteFile() instead. |
689 */ |
689 */ |
690 IMPORT_C static void DeleteFileL (const TDesC &aFileName); |
690 IMPORT_C static void DeleteFileL (const TDesC &aFileName); |
691 #endif // REMOVE_CAF1 |
691 #endif // REMOVE_CAF1 |
|
692 |
|
693 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
694 |
|
695 /** Get an attribute from WMDRM content. |
|
696 |
|
697 @param aAttribute The attribute to retrieve, from ContentAccess::TAttribute. |
|
698 @param aValue Used to return the value of the attribute. |
|
699 @param aHeaderData Header data of WMDRM content. |
|
700 @return Whether the attribute value was updated. |
|
701 @return KErrNone if the attribute value was updated. |
|
702 @return KErrCANotSupported if the requested attribute is not supported for this content. |
|
703 @return Otherwise one of the other CAF error codes defined in \c caferr.h or one of the |
|
704 other system-wide error codes for any other errors. |
|
705 @capability DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted. |
|
706 */ |
|
707 IMPORT_C TInt GetAttribute(const TDesC8& aHeaderData, TInt aAttribute, TInt& aValue) const; |
|
708 |
|
709 /** Get a set of attributes from WMDRM content. |
|
710 |
|
711 @param aAttributeSet The set of attributes to query and update. |
|
712 @param aHeaderData Header data of WMDRM content. |
|
713 @return Whether the attribute set was updated. |
|
714 @return KErrNone if the attribute set was updated successfully. |
|
715 @return Otherwise one of the other CAF error codes defined in \c caferr.h or one of the |
|
716 other system-wide error codes for any other errors. |
|
717 @capability DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted. |
|
718 */ |
|
719 IMPORT_C TInt GetAttributeSet(const TDesC8& aHeaderData, RAttributeSet& aAttributeSet) const; |
|
720 |
|
721 |
|
722 /** Get text string attributes or meta-data from WMDRM content. |
|
723 |
|
724 @param aAttribute The attribute to retrieve, from ContentAccess::TStringAttribute. |
|
725 @param aValue Used to return the value of the attribute. |
|
726 @param aHeaderData Header data of WMDRM content. |
|
727 @return Whether the value was updated. |
|
728 @return KErrNone if the attribute was retrieved successfully. |
|
729 @return KErrNotFound if the content object does not exist. |
|
730 @return KErrCANotSupported if the requested attribute does not apply to this content object. |
|
731 @return KErrOverflow if the buffer was not large enough to return the result. |
|
732 @return Otherwise one of the other CAF error codes defined in \c caferr.h or one of the |
|
733 other system-wide error codes for any other errors. |
|
734 @capability DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted. |
|
735 */ |
|
736 IMPORT_C TInt GetStringAttribute(const TDesC8& aHeaderData, TInt aAttribute, TDes& aValue) const; |
|
737 |
|
738 /** Used to obtain a set of string attributes from WMDRM content. |
|
739 |
|
740 @param aStringAttributeSet The set of attributes to query and update. |
|
741 @param aHeaderData Header data of WMDRM content. |
|
742 @return Whether the string attribute set was updated. |
|
743 @return KErrNone if the attribute set was updated successfully. |
|
744 @return KErrNotFound if the object with the given virtual path was not found. |
|
745 @return Otherwise one of the other CAF error codes defined in \c caferr.h or one of the |
|
746 other system-wide error codes for any other errors. |
|
747 @capability DRM Access to DRM protected content is not permitted for processes without DRM capability. Access to unprotected content is unrestricted. |
|
748 */ |
|
749 IMPORT_C TInt GetStringAttributeSet(const TDesC8& aHeaderData, RStringAttributeSet& aStringAttributeSet) const; |
|
750 |
|
751 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
692 |
752 |
693 private: |
753 private: |
694 CManager(); |
754 CManager(); |
695 void ConstructL(); |
755 void ConstructL(); |
696 |
756 |
719 void DoGetStringAttributeL(TInt aAttribute, TDes& aValue, RFile& aFile, const TDesC& aUniqueId) const; |
779 void DoGetStringAttributeL(TInt aAttribute, TDes& aValue, RFile& aFile, const TDesC& aUniqueId) const; |
720 void DoGetStringAttributeSetL(RStringAttributeSet& aStringAttributeSet, const TVirtualPathPtr& aVirtualPath) const; |
780 void DoGetStringAttributeSetL(RStringAttributeSet& aStringAttributeSet, const TVirtualPathPtr& aVirtualPath) const; |
721 void DoGetStringAttributeSetL(RStringAttributeSet& aStringAttributeSet, RFile& aFile, const TDesC& aUniqueId) const; |
781 void DoGetStringAttributeSetL(RStringAttributeSet& aStringAttributeSet, RFile& aFile, const TDesC& aUniqueId) const; |
722 void DoNotifyStatusChangeL(const TDesC& aURI, TEventMask aMask, TRequestStatus& aStatus); |
782 void DoNotifyStatusChangeL(const TDesC& aURI, TEventMask aMask, TRequestStatus& aStatus); |
723 void DoCancelNotifyStatusChangeL(const TDesC& aURI, TRequestStatus& aStatus); |
783 void DoCancelNotifyStatusChangeL(const TDesC& aURI, TRequestStatus& aStatus); |
724 void DoSetPropertyL(TAgentProperty aProperty, TInt aValue); |
784 void DoSetPropertyL(TAgentProperty aProperty, TInt aValue); |
|
785 |
|
786 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
787 void DoGetAttributeL(const TDesC8& aHeaderData, TInt aAttribute, TInt& aValue) const; |
|
788 void DoGetAttributeSetL(const TDesC8& aHeaderData, RAttributeSet& aAttributeSet) const; |
|
789 void DoGetStringAttributeL(const TDesC8& aHeaderData, TInt aAttribute, TDes& aValue) const; |
|
790 void DoGetStringAttributeSetL(const TDesC8& aHeaderData, RStringAttributeSet& aStringAttributeSet) const; |
|
791 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
792 |
725 private: |
793 private: |
726 // Holds instances of all the agents |
794 // Holds instances of all the agents |
727 CAgentResolver* iResolver; |
795 CAgentResolver* iResolver; |
728 }; |
796 }; |
729 |
797 |
730 } // namespace ContentAccess |
798 } // namespace ContentAccess |
731 |
799 |
732 #endif /* __MANAGER_H__ */ |
800 #endif /* __MANAGER_H__ */ |
733 |
|
734 |
|