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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // Created by robin on 7/22/16.
  3. //
  4. #ifndef MIFARE_TOOLS_LIBNFCBUSINESS_H
  5. #define MIFARE_TOOLS_LIBNFCBUSINESS_H
  6. #include <libnfc_cpptools/Result.h>
  7. #include <libnfc_cpptools/NfcDevice.h>
  8. namespace LibNfc
  9. {
  10. namespace Core
  11. {
  12. class LibNfcInternal;
  13. class LibNfcContext
  14. {
  15. public:
  16. LibNfcContext();
  17. virtual ~LibNfcContext();
  18. LibNfc::Utils::ResultBool init();
  19. void clean();
  20. bool isInitialized() const;
  21. LibNfc::Utils::Result<std::vector<std::shared_ptr<NfcDevice>>> getDevices() const;
  22. static std::string getLibNfcVersion();
  23. static std::string getMifareToolsVersion();
  24. protected:
  25. std::shared_ptr<LibNfcInternal> _libNfc;
  26. };
  27. }; // Core
  28. }; // LibNfc
  29. #endif //MIFARE_TOOLS_LIBNFCBUSINESS_H