sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: #ifndef STREAMAGENTINTERFACE_H sl@0: #define STREAMAGENTINTERFACE_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #include sl@0: sl@0: namespace StreamAccess sl@0: { sl@0: sl@0: class CAgentKeyStreamDecoder : public CBase sl@0: { sl@0: public: sl@0: sl@0: /** Destructor. */ sl@0: IMPORT_C virtual ~CAgentKeyStreamDecoder(); sl@0: sl@0: /** sl@0: @see CKeyStreamDecoder::GetAttributeL sl@0: */ sl@0: virtual void GetAttributeL(const TAttribute& aAttribute, TBool& aValue) =0; sl@0: sl@0: /** sl@0: @see CKeyStreamDecoder::GetStringAttributeL sl@0: */ sl@0: virtual HBufC* GetStringAttributeLC(const TStringAttribute& aAttribute) =0; sl@0: sl@0: /** Gets information data about the post-delivery rights objects for the protected service/content. sl@0: Used when the content is imported into protected file storage for later viewing. sl@0: sl@0: @param aFile A reference to the rights object file handle. The file handle must be closed by the client application. sl@0: @param aCid The content Id of the post-acquisition rights object. sl@0: @param aRightsMimeType The mime type of the rights object file. sl@0: @param aContentMimeType The mime type of the content which is recorded. sl@0: @leave KErrCANotSupported if the protection scheme does not have or is not capable of exporting rights info. sl@0: @leave Otherwise one of the other system-wide error codes. sl@0: */ sl@0: virtual void GetPostDeliveryRightsL(RFile& aFile, TDes8& aCid, TDes8& aRightsMimeType, TDes8& aContentMimeType) =0; sl@0: sl@0: protected: sl@0: /** Constructor.*/ sl@0: IMPORT_C CAgentKeyStreamDecoder(); sl@0: }; sl@0: } // namespace StreamAccess sl@0: #endif // STREAMAGENTINTERFACE_H sl@0: