|
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 SubConnection Provider class definition. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef SYMBIAN_RTPSCPR_H |
|
24 #define SYMBIAN_RTPSCPR_H |
|
25 |
|
26 #include <comms-infras/ss_subconnprov.h> |
|
27 #include <comms-infras/corescpr.h> |
|
28 #include <comms-infras/corescprstates.h> |
|
29 |
|
30 #include <cs_subconevents.h> |
|
31 #include <cs_subconparams.h> |
|
32 |
|
33 |
|
34 #if defined(_DEBUG) || defined(__RTP_LOG_ACTIVE) |
|
35 #define KRTPSCprTag KESockSubConnectionTag |
|
36 _LIT8(KRTPSCprSubTag, "RtpScpr"); |
|
37 #endif |
|
38 |
|
39 _LIT(KRtpScprPanic, "RtpScprPanic"); |
|
40 |
|
41 namespace RtpSCprStates |
|
42 { |
|
43 class TNoTagOrErrorTag; |
|
44 class TCreateDataClient; |
|
45 class TSetParameters; |
|
46 class TRequestCommsBinder; |
|
47 class TAwaitingBinderRequest; |
|
48 } |
|
49 |
|
50 NONSHARABLE_CLASS(CRtpSubConnectionProvider) : public CCoreSubConnectionProvider |
|
51 /** RTP Subconnection provider. Created as a result of CSubConRTPGenericParamSet |
|
52 parameter setting on subconnection. |
|
53 |
|
54 @internalTechnology |
|
55 */ |
|
56 { |
|
57 friend class CRtpSubConnectionProviderFactory; |
|
58 friend class RtpSCprStates::TNoTagOrErrorTag; |
|
59 friend class RtpSCprStates::TCreateDataClient; |
|
60 friend class RtpSCprStates::TSetParameters; |
|
61 friend class RtpSCprStates::TRequestCommsBinder; |
|
62 friend class RtpSCprStates::TAwaitingBinderRequest; |
|
63 |
|
64 public: |
|
65 virtual ~CRtpSubConnectionProvider(); |
|
66 inline ESock::RCFParameterFamilyBundle_const& GetLocalParameterBundle() |
|
67 { |
|
68 return iLocalParameterBundle; |
|
69 } |
|
70 ESock::RCFParameterFamilyBundle& GetOrCreateLocalParameterBundleL(); |
|
71 protected: |
|
72 //-==================================== |
|
73 //Construction methods bundle - accessible thru the factory only |
|
74 //-==================================== |
|
75 CRtpSubConnectionProvider(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
76 static CRtpSubConnectionProvider* NewL(ESock::CSubConnectionProviderFactoryBase& aFactory); |
|
77 void ConstructL(); |
|
78 |
|
79 //-==================================== |
|
80 //ACFNode overrides |
|
81 //-==================================== |
|
82 void Received(MeshMachine::TNodeContextBase& aContext); |
|
83 void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage); |
|
84 |
|
85 private: |
|
86 //RTP param stored here |
|
87 TInt iRTPProtocolID; |
|
88 TUid iRTPProtocolUiD; |
|
89 TInt iServiceProtocolID; |
|
90 RSubConnection::TSubConnType iSubConnType; |
|
91 ESock::RCFParameterFamilyBundle iLocalParameterBundle; |
|
92 }; |
|
93 |
|
94 |
|
95 #endif //SYMBIAN_RTPSCPR_H |