|
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 // Implements the base test stream agent factory plug-in. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 @test |
|
22 */ |
|
23 |
|
24 #ifndef TESTSTREAMAGENTFACTORY_H_ |
|
25 #define TESTSTREAMAGENTFACTORY_H_ |
|
26 |
|
27 #include <caf/streaming/streamagentfactory.h> |
|
28 #include "testagentkeystreamdecoder.h" |
|
29 #include "tscaf_streamagentdefs.h" |
|
30 |
|
31 namespace StreamAccess |
|
32 { |
|
33 NONSHARABLE_CLASS(CTestStreamAgentFactory) : public CStreamAgentFactory |
|
34 { |
|
35 public: |
|
36 static CStreamAgentFactory* CreateTestAgentL(); |
|
37 CAgentKeyStreamDecoder* GetKeyStreamDecoderL(const CKeyStreamSink& aKeyStreamSink, |
|
38 const CSdpMediaField& aSdpKeyStream, |
|
39 const CSdpDocument& aSdpDoc); |
|
40 TBool IsKeyStreamSupportedL(const CSdpMediaField& aSdpKeyStream); |
|
41 protected: |
|
42 ~CTestStreamAgentFactory(); |
|
43 |
|
44 private: |
|
45 CTestStreamAgentFactory(); |
|
46 HBufC8* ExtractKmsIdLC(const TDesC8& aValue); |
|
47 }; |
|
48 |
|
49 }//End of the namespace StreamAccess |
|
50 |
|
51 #endif /*TESTSTREAMAGENTFACTORY_H_*/ |