contentmgmt/cafstreamingsupport/test/streamingtestagent/inc/testkeyassociation.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 key association object for the streaming test agent.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21  @test
       
    22 */
       
    23 
       
    24 
       
    25 #ifndef TESTKEYASSOCIATION_H_
       
    26 #define TESTKEYASSOCIATION_H_
       
    27 
       
    28 #include <e32base.h>
       
    29 #include <s32strm.h>
       
    30 #include <caf/streaming/keyassociation.h>
       
    31 
       
    32 namespace StreamAccess
       
    33 	{
       
    34 	NONSHARABLE_CLASS(CTestKeyAssociation) : public CKeyAssociation
       
    35 	/**
       
    36 	 	A specific key association object for the streaming test agent.
       
    37 	 	The test key association is different from the key associations 
       
    38 	 	of IPSec, SRTP and ISMACryp.
       
    39 	 */
       
    40 		{
       
    41 	public:
       
    42 		IMPORT_C static CTestKeyAssociation* NewL(RReadStream& aStream);
       
    43 		IMPORT_C static CTestKeyAssociation* NewL(const TDesC8& aKey);
       
    44 		IMPORT_C const HBufC8* GetTestKey() const;
       
    45 		IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
       
    46 		IMPORT_C ~CTestKeyAssociation();
       
    47 	
       
    48 	private:
       
    49 		CTestKeyAssociation();
       
    50 		void ConstructL(const TDesC8& aKey);
       
    51 		void InternalizeL(RReadStream& aStream);
       
    52 		
       
    53 	private:
       
    54 		HBufC8* iKey;
       
    55 		};
       
    56 	}//End of the namespace StreamAccess
       
    57 
       
    58 #endif /*TESTKEYASSOCIATION_H_*/