contentmgmt/cafstreamingsupport/test/streamingtestagent/inc/testagentkeystreamdecoder.h
branchRCL_3
changeset 43 2f10d260163b
equal deleted inserted replaced
42:eb9b28acd381 43:2f10d260163b
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Defines the test agent key stream decoder object.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21  @test
       
    22 */
       
    23 
       
    24 #ifndef TESTAGENTKEYSTREAMDECODER_H
       
    25 #define TESTAGENTKEYSTREAMDECODER_H
       
    26 
       
    27 #include "testkeystreamdecoderbase.h"
       
    28 #include "staclient.h"
       
    29 
       
    30 namespace StreamAccess
       
    31 	{
       
    32 	NONSHARABLE_CLASS(CTestAgentKeyStreamDecoder) : public CTestKeyStreamDecoderBase
       
    33 		{
       
    34 	public:
       
    35 		IMPORT_C static CTestAgentKeyStreamDecoder* NewL(const CKeyStreamSink& aKeyStreamSink,
       
    36 			    										 const CSdpMediaField& aSdpKeyStream,
       
    37 			    										 const CSdpDocument& aSdpDoc);
       
    38 		IMPORT_C static CTestAgentKeyStreamDecoder* NewLC(const CKeyStreamSink& aKeyStreamSink,
       
    39 			    										 const CSdpMediaField& aSdpKeyStream,
       
    40 			    										 const CSdpDocument& aSdpDoc);
       
    41 		~CTestAgentKeyStreamDecoder();
       
    42 		
       
    43 		//From CAgentKeyStreamDecoder
       
    44 		IMPORT_C void GetAttributeL(const TAttribute& aAttribute, TBool& aValue);
       
    45 		IMPORT_C HBufC* GetStringAttributeLC(const TStringAttribute& aAttribute);
       
    46 		IMPORT_C void GetPostDeliveryRightsL(RFile& aFile, TDes8& aCid, TDes8& aRightsMimeType, TDes8& aContentMimeType);
       
    47 		
       
    48 		//From CTestKeyStreamDecoderBase
       
    49 		IMPORT_C void SendKeyStreamL(const TDesC8& aKey) const;
       
    50 		IMPORT_C void SendIpSecAssociationL(TInt32 aSpi, HBufC8* aEncryptionKey, HBufC8* aAuthenticationKey) const;
       
    51 	
       
    52 	private:
       
    53 		CTestAgentKeyStreamDecoder();
       
    54 		void ConstructL(const CKeyStreamSink& aKeyStreamSink,  const CSdpMediaField& aSdpKeyStream, const CSdpDocument& aSdpDoc);
       
    55 		
       
    56 	private:
       
    57 		RStaClient iAgentClient;
       
    58 		};
       
    59 	}//End of the namespace StreamAccess
       
    60 #endif /*TESTAGENTKEYSTREAMDECODER_H*/