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.

123456789101112131415161718192021222324252627282930313233343536
  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. virtual ~LibNfc();
  16. ResultBool init();
  17. void clean();
  18. Result<std::vector<std::shared_ptr<NfcDevice>>> getDevices() const;
  19. static std::string getVersion();
  20. nfc_context* getContext() const;
  21. protected:
  22. nfc_context* _context;
  23. };
  24. #endif //MIFARE_TOOLS_LIBNFC_H