X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2FNFCTerminal.h;h=d61b5e66b4c3aeb8a2a60ac1a5dd80f144f7234a;hb=refs%2Fheads%2Faccepted%2Ftizen_generic;hp=a2209d8c0cec95f989b732dcdb6672025eb00fa1;hpb=3f02331f47221eb11d43f686feabf0eb88446edd;p=platform%2Fcore%2Fconnectivity%2Fsmartcard-plugin-nfc.git diff --git a/include/NFCTerminal.h b/include/NFCTerminal.h index a2209d8..d61b5e6 100644 --- a/include/NFCTerminal.h +++ b/include/NFCTerminal.h @@ -32,14 +32,12 @@ namespace smartcard_service_api private: PMutex mutex; nfc_se_h seHandle; - bool opening; - bool closed; + bool present; + int referred; NFCTerminal(); ~NFCTerminal(); - bool checkClosed(); - public: static NFCTerminal *getInstance(); @@ -47,16 +45,15 @@ namespace smartcard_service_api void finalize(); bool open(); - bool isClosed() const; void close(); - bool isSecureElementPresence() const; + bool isSecureElementPresence() const { return present; } int transmitSync(const ByteArray &command, ByteArray &response); int getATRSync(ByteArray &atr); - int transmit(const ByteArray &command, terminalTransmitCallback callback, void *userParam) { return -1; }; - int getATR(terminalGetATRCallback callback, void *userParam) { return -1; } + int transmit(const ByteArray &command, terminalTransmitCallback callback, void *userParam) { return SCARD_ERROR_NOT_SUPPORTED; }; + int getATR(terminalGetATRCallback callback, void *userParam) { return SCARD_ERROR_NOT_SUPPORTED; } }; } /* namespace smartcard_service_api */ #endif /* NFCTERMINAL_H_ */