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.

LibNfc.h 509B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // Created by robin on 6/19/16.
  3. //
  4. #ifndef MIFARE_TOOLS_LIBNFC_H
  5. #define MIFARE_TOOLS_LIBNFC_H
  6. #include <nfc/nfc.h>
  7. #include "NfcDevice.h"
  8. #include "DBO/Result.h"
  9. class NfcDevice;
  10. class LibNfc
  11. {
  12. public:
  13. LibNfc();
  14. ~LibNfc();
  15. ResultBool init();
  16. void clean();
  17. bool isInitialized();
  18. Result<std::vector<NfcDevice*>> getDevices();
  19. static std::string getVersion();
  20. nfc_context* getContext() const;
  21. private:
  22. nfc_context* _context;
  23. };
  24. #endif //MIFARE_TOOLS_LIBNFC_H