|
@@ -28,12 +28,6 @@ using namespace CardIssuerStand;
|
|
|
using namespace CardIssuerStore;
|
|
|
using namespace ContactlessCard;
|
|
|
|
|
|
-
|
|
|
-struct CtxInfo
|
|
|
-{
|
|
|
- int dataSize;
|
|
|
- LPVOID pCtx;
|
|
|
-};
|
|
|
enum EvtType
|
|
|
{
|
|
|
USER_EVT_TEST = EVT_USER + 1,
|
|
@@ -839,18 +833,7 @@ public:
|
|
|
int Test2(SpReqAnsContext<CardReadAdapterService_Test2_Req, CardReadAdapterService_Test2_Ans>::Pointer ctx);
|
|
|
void SelfTest(EntityTestEnum eTestType, CSmartPointer<ITransactionContext> pTransactionContext);
|
|
|
void SetReadCtx(SpReqAnsContext<CardReadAdapterService_Read_Req, CardReadAdapterService_Read_Ans>::Pointer ctx) { m_readCtx = ctx; }
|
|
|
- template <class TReq, class TAns>
|
|
|
- void SaveCtx(int methodID, CSmartPointer<SpReqAnsContext<TReq, TAns> > ctx)
|
|
|
- {
|
|
|
- m_mapCtx[methodID].pCtx = static_cast<void*>(ctx.GetRawPointer());
|
|
|
- }
|
|
|
- LPVOID GetCtx(int methodID)
|
|
|
- {
|
|
|
- if (m_mapCtx.find(methodID) != m_mapCtx.end())
|
|
|
- return m_mapCtx[methodID].pCtx;
|
|
|
- else
|
|
|
- return NULL;
|
|
|
- }
|
|
|
+
|
|
|
int LocalCallHeartBeat(int method, CBlob &bbSend, bool bTwoWay=false);
|
|
|
bool GetAttachedTerminal(CSimpleStringA &csTerm);
|
|
|
int CrossTermCall(SpReqAnsContext<CardReadAdapterService_CrossTermCall_Req, CardReadAdapterService_CrossTermCall_Ans>::Pointer ctx);
|
|
@@ -909,7 +892,6 @@ private:
|
|
|
|
|
|
char m_AuthCode[2];
|
|
|
bool m_bBTConnected;
|
|
|
- map<int, CtxInfo> m_mapCtx;
|
|
|
SpReqAnsContext<CardReadAdapterService_PreOnlineOnStore_Req, CardReadAdapterService_PreOnlineOnStore_Ans>::Pointer m_crossCtx;
|
|
|
ULONGLONG m_ullCrossStart;
|
|
|
|