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.

LibNfcBusiness.h 679B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // Created by robin on 7/22/16.
  3. //
  4. #ifndef MIFARE_TOOLS_LIBNFCBUSINESS_H
  5. #define MIFARE_TOOLS_LIBNFCBUSINESS_H
  6. #include <DBO/Result.h>
  7. #include <DataAccess/LibNfc.h>
  8. #include "NfcDeviceBusiness.h"
  9. class LibNfcBusiness
  10. {
  11. public:
  12. LibNfcBusiness();
  13. virtual ~LibNfcBusiness();
  14. ResultBool init();
  15. void clean();
  16. bool isInitialized() const;
  17. Result<std::vector<std::shared_ptr<NfcDeviceBusiness>>> getDevices() const;
  18. std::shared_ptr<LibNfc> getLibNfc() const;
  19. static std::string getLibNfcVersion();
  20. static std::string getMifareToolsVersion();
  21. protected:
  22. std::shared_ptr<LibNfc> _libNfc;
  23. };
  24. #endif //MIFARE_TOOLS_LIBNFCBUSINESS_H