From e45ae0bdfb3f5fe3a8c1d2fa5856703a6159132a Mon Sep 17 00:00:00 2001 From: Wonkyu Kwon Date: Wed, 16 Oct 2013 13:14:07 +0900 Subject: [PATCH] Change terminal interface - add open/function/isClosed functions Signed-off-by: Ji-hoon Jung Change-Id: I566e774e1cd258d5f4b890861f8b7d619e529638 --- common/include/Terminal.h | 9 +++++++-- packaging/smartcard-service.spec | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/common/include/Terminal.h b/common/include/Terminal.h index 1b7d7b3..0e3db4a 100644 --- a/common/include/Terminal.h +++ b/common/include/Terminal.h @@ -33,14 +33,15 @@ namespace smartcard_service_api protected: terminalNotificationCallback statusCallback; bool initialized; + bool closed; char *name; public: static const int NOTIFY_SE_AVAILABLE = 1; static const int NOTIFY_SE_NOT_AVAILABLE = -1; - Terminal() : statusCallback(NULL), - initialized(false), name(NULL) {} + Terminal() : statusCallback(NULL), initialized(false), + closed(true), name(NULL) {} virtual ~Terminal() {} @@ -48,6 +49,10 @@ namespace smartcard_service_api virtual void finalize() = 0; inline bool isInitialized() const { return initialized; } + virtual bool open() = 0; + virtual void close() = 0; + inline bool isClosed() const { return closed; } + inline const char *getName() const { return name; } inline void setStatusCallback(terminalNotificationCallback callback) { statusCallback = callback; } diff --git a/packaging/smartcard-service.spec b/packaging/smartcard-service.spec index 69fda69..bf21ac6 100644 --- a/packaging/smartcard-service.spec +++ b/packaging/smartcard-service.spec @@ -4,7 +4,7 @@ Name: smartcard-service Summary: Smartcard Service -Version: 0.1.28 +Version: 0.1.29 Release: 0 Group: Network & Connectivity/Service License: Apache-2.0 -- 2.7.4