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.

LibNfcInternal.h 683B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 "NfcDeviceInternal.h"
  9. #include "libnfc_cpptools/Result.h"
  10. namespace LibNfc
  11. {
  12. namespace Core
  13. {
  14. class NfcDeviceInternal;
  15. class LibNfcInternal
  16. {
  17. public:
  18. LibNfcInternal();
  19. virtual ~LibNfcInternal();
  20. LibNfc::Utils::ResultBool init();
  21. void clean();
  22. LibNfc::Utils::Result<std::vector<std::shared_ptr<NfcDeviceInternal>>> getDevices() const;
  23. static std::string getVersion();
  24. nfc_context* getContext() const;
  25. protected:
  26. nfc_context* _context;
  27. };
  28. }; // Core
  29. }; // LibNfc
  30. #endif //MIFARE_TOOLS_LIBNFC_H