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 584B

123456789101112131415161718192021222324252627282930313233343536373839
  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 <DBO/Result.h>
  9. #include "LibNfc.h"
  10. class LibNfc;
  11. class NfcDevice
  12. {
  13. public:
  14. NfcDevice(const LibNfc* libNfc, const std::string& connStr);
  15. ~NfcDevice();
  16. ResultBool open();
  17. void close();
  18. const std::string & getConnStr() const;
  19. nfc_device * getDevice() const;
  20. private:
  21. std::string _connStr;
  22. nfc_device* _device;
  23. const LibNfc* _libNfc;
  24. };
  25. #endif //MIFARE_TOOLS_NFCDEVICEDBO_H