|
1 // Copyright (c) 2008-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 "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 // RTP Flowfactory definitions. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 |
|
24 #ifndef RTPFLOWFACTORY_H_ |
|
25 #define RTPFLOWFACTORY_H_ |
|
26 |
|
27 |
|
28 |
|
29 #include <e32def.h> |
|
30 #include <ecom/ecom.h> |
|
31 #include <ecom/implementationproxy.h> |
|
32 |
|
33 #include <comms-infras/ss_subconnflow.h> |
|
34 |
|
35 #include "rtp_uid.h" |
|
36 |
|
37 using namespace ESock; |
|
38 using namespace Factories; |
|
39 |
|
40 |
|
41 _LIT(KProtocolNameRtp, "RTP"); |
|
42 _LIT(KProtocolNameRtcp, "RTCP"); |
|
43 |
|
44 class CRtpFlowFactory : public CSubConnectionFlowFactoryBase |
|
45 /** |
|
46 Factory for creation RTP Flow objects. |
|
47 |
|
48 @internalComponent |
|
49 |
|
50 **/ |
|
51 { |
|
52 public: |
|
53 enum { iUid = KRtpFlowImplementationUid }; |
|
54 static CRtpFlowFactory* NewL(TAny* aConstructionParameters); |
|
55 //~CRtpFlowFactory(); |
|
56 protected: |
|
57 CRtpFlowFactory(TUid aFactoryId,CSubConnectionFlowFactoryContainer& aParentContainer); |
|
58 |
|
59 ACommsFactoryNodeId* DoFindOrCreateObjectL(TFactoryQueryBase& aQuery); |
|
60 |
|
61 CSubConnectionFlowBase* DoCreateFlowL(CProtocolIntfBase* aProtocolIntf, TFactoryQueryBase& aQuery); |
|
62 |
|
63 /* Create RTP PINT factory */ |
|
64 CProtocolIntfFactoryBase* CreateProtocolIntfFactoryL(CProtocolIntfFactoryContainer& aParentContainer); |
|
65 |
|
66 /* RTP Flow factory description */ |
|
67 virtual TServerProtocolDesc* DoCreateFlowDescriptionL(TInt aProtocol); |
|
68 }; |
|
69 |
|
70 #endif //RTPFLOWFACTORY_H |
|
71 |