|
@@ -187,45 +187,12 @@ public:
|
|
|
{
|
|
|
if (ctx != NULL)
|
|
|
{
|
|
|
- Dbg("card issue unhandled");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("card issue unhandled");
|
|
|
ctx->Answer(Error_InvalidState);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
-//class CardAcceptEvent : public FSMEvent
|
|
|
-//{
|
|
|
-//public:
|
|
|
-// CardAcceptEvent() : FSMEvent(USER_EVT_CARD_ACCEPT){}
|
|
|
-// ~CardAcceptEvent(){}
|
|
|
-// SpReqAnsContext<CardReadAdapterService_Read_Req, CardReadAdapterService_Read_Ans>::Pointer ctx;
|
|
|
-// virtual void OnUnhandled()
|
|
|
-// {
|
|
|
-// if (ctx != NULL)
|
|
|
-// {
|
|
|
-// Dbg("card accept unhandled");
|
|
|
-// ctx->Answer(Error_InvalidState);
|
|
|
-// }
|
|
|
-// }
|
|
|
-//protected:
|
|
|
-//private:
|
|
|
-//};
|
|
|
-//class CardAcceptFinishedEvent : public FSMEvent
|
|
|
-//{
|
|
|
-//public:
|
|
|
-// CardAcceptFinishedEvent() : FSMEvent(USER_EVT_CARD_ACCEPT_FINISHED){}
|
|
|
-// ~CardAcceptFinishedEvent(){}
|
|
|
-// SpReqAnsContext<CardReadAdapterService_Read_Req, CardReadAdapterService_Read_Ans>::Pointer ctx;
|
|
|
-// virtual void OnUnhandled()
|
|
|
-// {
|
|
|
-// if (ctx != NULL)
|
|
|
-// {
|
|
|
-// Dbg("card accept finished unhandled");
|
|
|
-// ctx->Answer(Error_InvalidState);
|
|
|
-// }
|
|
|
-// }
|
|
|
-//protected:
|
|
|
-//private:
|
|
|
-//};
|
|
|
+
|
|
|
class CancelReadEvent : public FSMEvent
|
|
|
{
|
|
|
public:
|
|
@@ -233,7 +200,7 @@ public:
|
|
|
~CancelReadEvent(){}
|
|
|
virtual void OnUnhandled()
|
|
|
{
|
|
|
- Dbg("card cancel accept unhandled");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("card cancel accept unhandled");
|
|
|
}
|
|
|
};
|
|
|
class ReadWaitMoreEvent : public FSMEvent
|
|
@@ -243,7 +210,7 @@ public:
|
|
|
~ReadWaitMoreEvent(){}
|
|
|
virtual void OnUnhandled()
|
|
|
{
|
|
|
- Dbg("ReadWaitMore unhandled");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("ReadWaitMore unhandled");
|
|
|
}
|
|
|
};
|
|
|
class CardReadEvent : public FSMEvent
|
|
@@ -256,7 +223,7 @@ public:
|
|
|
{
|
|
|
if (ctx != NULL)
|
|
|
{
|
|
|
- Dbg("card read unhandled");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("card read unhandled");
|
|
|
ctx->Answer(Error_InvalidState);
|
|
|
}
|
|
|
}
|
|
@@ -273,8 +240,7 @@ public:
|
|
|
{
|
|
|
if (ctx != NULL)
|
|
|
{
|
|
|
- Dbg("card read unhandled(new)");
|
|
|
- //ctx->Answer(Error_InvalidState);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("card read unhandled(new)");
|
|
|
}
|
|
|
}
|
|
|
protected:
|
|
@@ -365,7 +331,7 @@ public:
|
|
|
{
|
|
|
if (ctx != NULL)
|
|
|
{
|
|
|
- Dbg("card read unhandled");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("card read unhandled");
|
|
|
ctx->Answer(Error_InvalidState);
|
|
|
}
|
|
|
}
|
|
@@ -382,8 +348,7 @@ public:
|
|
|
{
|
|
|
if (ctx != NULL)
|
|
|
{
|
|
|
- Dbg("card read unhandled(new)");
|
|
|
- //ctx->Answer(Error_InvalidState);
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("card read unhandled(new)");
|
|
|
}
|
|
|
}
|
|
|
};
|
|
@@ -397,7 +362,7 @@ public:
|
|
|
{
|
|
|
if (ctx != NULL)
|
|
|
{
|
|
|
- Dbg("SetSomeFlag unhandled");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("SetSomeFlag unhandled");
|
|
|
ctx->Answer(Error_InvalidState);
|
|
|
}
|
|
|
}
|
|
@@ -412,7 +377,7 @@ public:
|
|
|
{
|
|
|
if (ctx != NULL)
|
|
|
{
|
|
|
- Dbg("QueryCardInfo unhandled");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("QueryCardInfo unhandled");
|
|
|
ctx->Answer(Error_InvalidState);
|
|
|
}
|
|
|
}
|
|
@@ -704,7 +669,7 @@ public:
|
|
|
{
|
|
|
if (ctx != NULL)
|
|
|
{
|
|
|
- Dbg("GetDevInfo unhandled");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM)("GetDevInfo unhandled");
|
|
|
ctx->Answer(Error_InvalidState);
|
|
|
}
|
|
|
}
|