datacommsserver/esockserver/test/providers/dummy/inc/dummypr_factory.h
branchRCL_3
changeset 17 9ddb1d67ebaf
parent 0 dfb7c4ff071f
child 18 9644881fedd0
equal deleted inserted replaced
15:51722b10598b 17:9ddb1d67ebaf
    28 #include <comms-infras/ss_subconnprov.h>
    28 #include <comms-infras/ss_subconnprov.h>
    29 #include <comms-infras/ss_metaconnprov.h>
    29 #include <comms-infras/ss_metaconnprov.h>
    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 
       
    34 using namespace ESock;
       
    35 
    33 //-=========================================================
    36 //-=========================================================
    34 //
    37 //
    35 // CDummyTierManagerFactory
    38 // CDummyTierManagerFactory
    36 //
    39 //
    37 //-=========================================================
    40 //-=========================================================
    86 
    89 
    87 protected:
    90 protected:
    88 	CDummyHangingConnectionProviderFactory(TUid aFactoryId, ESock::CConnectionFactoryContainer& aParentContainer);
    91 	CDummyHangingConnectionProviderFactory(TUid aFactoryId, ESock::CConnectionFactoryContainer& aParentContainer);
    89 	virtual ESock::ACommsFactoryNodeId* DoCreateObjectL(ESock::TFactoryQueryBase& aQuery);
    92 	virtual ESock::ACommsFactoryNodeId* DoCreateObjectL(ESock::TFactoryQueryBase& aQuery);
    90 	};
    93 	};
       
    94 
       
    95 class CDummyVanillaConnectionProviderFactory : public ESock::CConnectionProviderFactoryBase
       
    96     {
       
    97 public:
       
    98     enum { iUid = 0x10283030 };
       
    99     static CDummyVanillaConnectionProviderFactory* NewL(TAny* aParentContainer);
       
   100 
       
   101 protected:
       
   102     CDummyVanillaConnectionProviderFactory(TUid aFactoryId, ESock::CConnectionFactoryContainer& aParentContainer);
       
   103     virtual ESock::ACommsFactoryNodeId* DoCreateObjectL(ESock::TFactoryQueryBase& aQuery);
       
   104     };
    91 	
   105 	
    92 //-=========================================================
   106 //-=========================================================
    93 //
   107 //
    94 // CDummySubConnectionProviderFactory
   108 // CDummySubConnectionProviderFactory
    95 //
   109 //
   109 //-=========================================================
   123 //-=========================================================
   110 //
   124 //
   111 // CDummyExtendedSubConnectionProviderFactory
   125 // CDummyExtendedSubConnectionProviderFactory
   112 //
   126 //
   113 //-=========================================================
   127 //-=========================================================
   114 namespace ESock
       
   115 {
       
   116 class CDummyExtendedSubConnectionProviderFactory : public ESock::CSubConnectionProviderFactoryBase
   128 class CDummyExtendedSubConnectionProviderFactory : public ESock::CSubConnectionProviderFactoryBase
   117 	{
   129 	{
   118 public:
   130 public:
   119     enum { iUid = 0x10285D8D };
   131     enum { iUid = 0x10285D8D };
   120 	static CDummyExtendedSubConnectionProviderFactory* NewL(TAny* aParentContainer);
   132 	static CDummyExtendedSubConnectionProviderFactory* NewL(TAny* aParentContainer);
   121 
   133 
   122 protected:
   134 protected:
   123 	CDummyExtendedSubConnectionProviderFactory(TUid aFactoryId, ESock::CSubConnectionFactoryContainer& aParentContainer);
   135 	CDummyExtendedSubConnectionProviderFactory(TUid aFactoryId, ESock::CSubConnectionFactoryContainer& aParentContainer);
   124 	virtual ESock::ACommsFactoryNodeId* DoCreateObjectL(ESock::TFactoryQueryBase& aQuery);
   136 	virtual ESock::ACommsFactoryNodeId* DoCreateObjectL(ESock::TFactoryQueryBase& aQuery);
   125 	};
   137 	};
   126 }
   138 
       
   139 
       
   140 //-=========================================================
       
   141 //
       
   142 // CDummyVanillaSubConnectionProviderFactory
       
   143 //
       
   144 //-=========================================================
       
   145 class CDummyVanillaSubConnectionProviderFactory : public ESock::CSubConnectionProviderFactoryBase
       
   146     {
       
   147 public:
       
   148     enum { iUid = 0x10283031 };
       
   149     static CDummyVanillaSubConnectionProviderFactory* NewL(TAny* aParentContainer);
       
   150 
       
   151 protected:
       
   152     CDummyVanillaSubConnectionProviderFactory(TUid aFactoryId, ESock::CSubConnectionFactoryContainer& aParentContainer);
       
   153     virtual ESock::ACommsFactoryNodeId* DoCreateObjectL(ESock::TFactoryQueryBase& aQuery);
       
   154     };
       
   155 
       
   156 
   127 
   157 
   128 //-=========================================================
   158 //-=========================================================
   129 //
   159 //
   130 // CDummyNetworkFlowFactory
   160 // CDummyNetworkFlowFactory
   131 //
   161 //
   132 //-=========================================================
   162 //-=========================================================
   133 namespace ESock
       
   134 {
       
   135 class CDummyNetworkFlowFactory : public ESock::CSubConnectionFlowFactoryBase
   163 class CDummyNetworkFlowFactory : public ESock::CSubConnectionFlowFactoryBase
   136 	{
   164 	{
   137 public:
   165 public:
   138 	enum { iUid = 0x10285D8F };
   166 	enum { iUid = 0x10285D8F };
   139 	static CDummyNetworkFlowFactory* NewL(TAny* aConstructionParameters);
   167 	static CDummyNetworkFlowFactory* NewL(TAny* aConstructionParameters);
   145 	// from CSubConnectionFlowFactoryBase
   173 	// from CSubConnectionFlowFactoryBase
   146 	virtual ESock::CSubConnectionFlowBase* DoCreateFlowL(CProtocolIntfBase* aProtocolIntf, ESock::TFactoryQueryBase& aQuery);
   174 	virtual ESock::CSubConnectionFlowBase* DoCreateFlowL(CProtocolIntfBase* aProtocolIntf, ESock::TFactoryQueryBase& aQuery);
   147 	virtual ESock::ACommsFactoryNodeId* DoFindOrCreateObjectL(ESock::TFactoryQueryBase& aQuery);
   175 	virtual ESock::ACommsFactoryNodeId* DoFindOrCreateObjectL(ESock::TFactoryQueryBase& aQuery);
   148 	virtual TServerProtocolDesc* DoCreateFlowDescriptionL(TInt aProtocol);
   176 	virtual TServerProtocolDesc* DoCreateFlowDescriptionL(TInt aProtocol);
   149 	};
   177 	};
   150 }
       
   151 
   178 
   152 
   179 
   153 #endif	// __DummyPR_FACTORY_H__
   180 #endif	// __DummyPR_FACTORY_H__
   154 
   181