You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NfcDevice.h 664B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // Created by robin on 7/22/16.
  3. //
  4. #ifndef MIFARE_TOOLS_NFCDEVICEBUSINESS_H
  5. #define MIFARE_TOOLS_NFCDEVICEBUSINESS_H
  6. #include <string>
  7. #include <memory>
  8. #include <libnfc_cpptools/Result.h>
  9. namespace LibNfc
  10. {
  11. namespace Core
  12. {
  13. class NfcDeviceInternal;
  14. class NfcDevice
  15. {
  16. public:
  17. NfcDevice(std::shared_ptr<NfcDeviceInternal> device);
  18. LibNfc::Utils::ResultBool open();
  19. void close();
  20. bool isOpened() const;
  21. const std::string & getConnStr() const;
  22. std::shared_ptr<NfcDeviceInternal> getDevice() const;
  23. protected:
  24. std::shared_ptr<NfcDeviceInternal> _device;
  25. };
  26. }; // Core
  27. }; // LibNfc
  28. #endif //MIFARE_TOOLS_NFCDEVICEBUSINESS_H