123456789101112131415161718192021222324252627282930313233343536 |
- //
- // Created by robin on 6/19/16.
- //
-
- #ifndef MIFARE_TOOLS_LIBNFC_H
- #define MIFARE_TOOLS_LIBNFC_H
-
- #include <memory>
- #include <nfc/nfc.h>
- #include "NfcDevice.h"
- #include "DBO/Result.h"
-
- class NfcDevice;
-
- class LibNfc
- {
- public:
- LibNfc();
- virtual ~LibNfc();
-
- ResultBool init();
-
- void clean();
-
- Result<std::vector<std::shared_ptr<NfcDevice>>> getDevices() const;
-
- static std::string getVersion();
-
- nfc_context* getContext() const;
-
- protected:
- nfc_context* _context;
- };
-
-
- #endif //MIFARE_TOOLS_LIBNFC_H
|