contentmgmt/referencedrmagent/RefTestAgent/streamingrefagent/inc/srakeystreamdecoder.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 14:32:46 +0300
changeset 66 8873e6835f7b
parent 8 35751d3474b7
permissions -rw-r--r--
Revision: 201021 Kit: 2010121

/*
* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
* Defines the key stream decoder object of the streaming reference agent.
*
*/


/**
 @file
 @internalComponent
 @released
*/

#ifndef SRAKEYSTREAMDECODER_H
#define SRAKEYSTREAMDECODER_H

#include <caf/streaming/streamagentinterface.h>
#include "sraclient.h"


class CSraKeyStreamDecoder : public CAgentKeyStreamDecoder
	{
public:
	static CSraKeyStreamDecoder* NewL(const CKeyStreamSink& aKeyStreamSink,
			    					  const CSdpMediaField& aSdpKeyStream,
			    					  const CSdpDocument& aSdpDoc);
	static CSraKeyStreamDecoder* NewLC(const CKeyStreamSink& aKeyStreamSink,
			    					   const CSdpMediaField& aSdpKeyStream,
			    					   const CSdpDocument& aSdpDoc);
	~CSraKeyStreamDecoder();
		
	//From CAgentKeyStreamDecoder
	void GetAttributeL(const TAttribute& aAttribute, TBool& aValue);
	HBufC* GetStringAttributeLC(const TStringAttribute& aAttribute);
	void GetPostDeliveryRightsL(RFile& aFile, TDes8& aCid, TDes8& aRightsMimeType, TDes8& aContentMimeType);
	
private:
	CSraKeyStreamDecoder();
	void ConstructL(const CKeyStreamSink& aKeyStreamSink,  const CSdpMediaField& aSdpKeyStream, const CSdpDocument& aSdpDoc);
		
private:
RSraClient iAgentClient;
	};

#endif /*SRAKEYSTREAMDECODER_H*/