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.

NfcDeviceInternal.h 728B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // Created by robin on 6/19/16.
  3. //
  4. #ifndef MIFARE_TOOLS_NFCDEVICEDBO_H
  5. #define MIFARE_TOOLS_NFCDEVICEDBO_H
  6. #include <string>
  7. #include <nfc/nfc-types.h>
  8. #include "libnfc_cpptools/Result.h"
  9. #include "LibNfcInternal.h"
  10. namespace LibNfc
  11. {
  12. namespace Core
  13. {
  14. class LibNfcInternal;
  15. class NfcDeviceInternal
  16. {
  17. public:
  18. NfcDeviceInternal(const LibNfcInternal* libNfc, const std::string& connStr);
  19. ~NfcDeviceInternal();
  20. LibNfc::Utils::ResultBool open();
  21. void close();
  22. const std::string & getConnStr() const;
  23. nfc_device * getDevice() const;
  24. private:
  25. std::string _connStr;
  26. nfc_device* _device;
  27. const LibNfcInternal* _libNfc;
  28. };
  29. }; // Core
  30. }; // LibNfc
  31. #endif //MIFARE_TOOLS_NFCDEVICEDBO_H