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

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