30 #include <comms-infras/ss_connprov.h> |
30 #include <comms-infras/ss_connprov.h> |
31 #include <comms-infras/ss_tiermanager.h> |
31 #include <comms-infras/ss_tiermanager.h> |
32 #include <comms-infras/ss_nodemessages.h> |
32 #include <comms-infras/ss_nodemessages.h> |
33 |
33 |
34 using namespace ESock; |
34 using namespace ESock; |
|
35 |
|
36 _LIT(KDummyProtocolName, "dummy"); |
|
37 _LIT(KDumberProtocolName, "dumber"); |
35 |
38 |
36 //-========================================================= |
39 //-========================================================= |
37 // |
40 // |
38 // CDummyTierManagerFactory |
41 // CDummyTierManagerFactory |
39 // |
42 // |
155 |
158 |
156 |
159 |
157 |
160 |
158 //-========================================================= |
161 //-========================================================= |
159 // |
162 // |
160 // CDummyNetworkFlowFactory |
163 // CDummyFlowFactory |
161 // |
164 // |
162 //-========================================================= |
165 //-========================================================= |
163 class CDummyNetworkFlowFactory : public ESock::CSubConnectionFlowFactoryBase |
166 class CDummyFlowFactory : public ESock::CSubConnectionFlowFactoryBase |
164 { |
167 { |
165 public: |
168 public: |
166 enum { iUid = 0x10285D8F }; |
169 enum { iUid = 0x10285D8F }; |
167 static CDummyNetworkFlowFactory* NewL(TAny* aConstructionParameters); |
170 static CDummyFlowFactory* NewL(TAny* aConstructionParameters); |
168 ~CDummyNetworkFlowFactory(); |
171 ~CDummyFlowFactory(); |
169 |
172 |
170 protected: |
173 protected: |
171 CDummyNetworkFlowFactory(TUid aFactoryId, ESock::CSubConnectionFlowFactoryContainer& aParentContainer); |
174 CDummyFlowFactory(TUid aFactoryId, ESock::CSubConnectionFlowFactoryContainer& aParentContainer); |
172 |
175 |
173 // from CSubConnectionFlowFactoryBase |
176 // from CSubConnectionFlowFactoryBase |
174 virtual ESock::CSubConnectionFlowBase* DoCreateFlowL(CProtocolIntfBase* aProtocolIntf, ESock::TFactoryQueryBase& aQuery); |
177 virtual ESock::CSubConnectionFlowBase* DoCreateFlowL(CProtocolIntfBase* aProtocolIntf, ESock::TFactoryQueryBase& aQuery); |
175 virtual ESock::ACommsFactoryNodeId* DoFindOrCreateObjectL(ESock::TFactoryQueryBase& aQuery); |
178 virtual ESock::ACommsFactoryNodeId* DoFindOrCreateObjectL(ESock::TFactoryQueryBase& aQuery); |
176 virtual TServerProtocolDesc* DoCreateFlowDescriptionL(TInt aProtocol); |
179 virtual TServerProtocolDesc* DoCreateFlowDescriptionL(TInt aProtocol); |