X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2FNFCTerminal.h;h=7362258cb3c4a768625624cc815f35cb13cd1e33;hb=refs%2Ftags%2Faccepted%2Ftizen%2Ftv%2F20150617.082157;hp=a2209d8c0cec95f989b732dcdb6672025eb00fa1;hpb=aa26b3c381eb1126e23f89130c1be565612335eb;p=platform%2Fcore%2Fconnectivity%2Fsmartcard-plugin-nfc.git diff --git a/include/NFCTerminal.h b/include/NFCTerminal.h index a2209d8..7362258 100644 --- a/include/NFCTerminal.h +++ b/include/NFCTerminal.h @@ -20,6 +20,7 @@ /* Tizen library header */ #include "nfc.h" +#include "nfc_internal.h" /* local header */ #include "Terminal.h" @@ -32,14 +33,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 +46,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_ */