Change terminal interface 26/18726/2 accepted/tizen_generic accepted/tizen/generic/20140409.233951 accepted/tizen/ivi/20140410.192451 submit/tizen/20140409.110505
authorWonkyu Kwon <wonkyu.kwon@samsung.com>
Wed, 16 Oct 2013 04:14:07 +0000 (13:14 +0900)
committerJi-hoon Jung <jh8801.jung@samsung.com>
Wed, 9 Apr 2014 06:06:23 +0000 (15:06 +0900)
 - add open/function/isClosed functions

Signed-off-by: Ji-hoon Jung <jh8801.jung@samsung.com>
Change-Id: I566e774e1cd258d5f4b890861f8b7d619e529638

common/include/Terminal.h
packaging/smartcard-service.spec

index 1b7d7b320da3ba2e44458d63a679bf48d8595084..0e3db4a533baaf6f352b380e1ac7a49c92275885 100644 (file)
@@ -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; }
 
index 69fda69dbd3ac6c5e1939274fe1b3d1699cc24aa..bf21ac6eeedc6c74c64619f961e263994138199c 100644 (file)
@@ -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