1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/contentmgmt/cafstreamingsupport/inc/streamagentinterface.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,69 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @publishedPartner
1.22 + @released
1.23 +*/
1.24 +
1.25 +#ifndef STREAMAGENTINTERFACE_H
1.26 +#define STREAMAGENTINTERFACE_H
1.27 +
1.28 +#include <e32base.h>
1.29 +#include <f32file.h>
1.30 +#include <caf/streaming/streamcaftypes.h>
1.31 +
1.32 +#include <caf/rightsinfo.h>
1.33 +
1.34 +namespace StreamAccess
1.35 + {
1.36 +
1.37 + class CAgentKeyStreamDecoder : public CBase
1.38 + {
1.39 + public:
1.40 +
1.41 + /** Destructor. */
1.42 + IMPORT_C virtual ~CAgentKeyStreamDecoder();
1.43 +
1.44 + /**
1.45 + @see CKeyStreamDecoder::GetAttributeL
1.46 + */
1.47 + virtual void GetAttributeL(const TAttribute& aAttribute, TBool& aValue) =0;
1.48 +
1.49 + /**
1.50 + @see CKeyStreamDecoder::GetStringAttributeL
1.51 + */
1.52 + virtual HBufC* GetStringAttributeLC(const TStringAttribute& aAttribute) =0;
1.53 +
1.54 + /** Gets information data about the post-delivery rights objects for the protected service/content.
1.55 + Used when the content is imported into protected file storage for later viewing.
1.56 +
1.57 + @param aFile A reference to the rights object file handle. The file handle must be closed by the client application.
1.58 + @param aCid The content Id of the post-acquisition rights object.
1.59 + @param aRightsMimeType The mime type of the rights object file.
1.60 + @param aContentMimeType The mime type of the content which is recorded.
1.61 + @leave KErrCANotSupported if the protection scheme does not have or is not capable of exporting rights info.
1.62 + @leave Otherwise one of the other system-wide error codes.
1.63 + */
1.64 + virtual void GetPostDeliveryRightsL(RFile& aFile, TDes8& aCid, TDes8& aRightsMimeType, TDes8& aContentMimeType) =0;
1.65 +
1.66 +protected:
1.67 + /** Constructor.*/
1.68 + IMPORT_C CAgentKeyStreamDecoder();
1.69 + };
1.70 + } // namespace StreamAccess
1.71 +#endif // STREAMAGENTINTERFACE_H
1.72 +