123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // Created by robin on 6/19/16.
- //
-
- #ifndef MIFARE_TOOLS_NFCDEVICEDBO_H
- #define MIFARE_TOOLS_NFCDEVICEDBO_H
-
-
- #include <string>
- #include <nfc/nfc-types.h>
- #include <DBO/Result.h>
- #include "LibNfc.h"
-
- class LibNfc;
-
- class NfcDevice
- {
- public:
- NfcDevice(const LibNfc* libNfc, const std::string& connStr);
- ~NfcDevice();
-
- ResultBool open();
-
- void close();
-
- const std::string & getConnStr() const;
-
- nfc_device * getDevice() const;
-
- private:
- std::string _connStr;
-
- nfc_device* _device;
-
- const LibNfc* _libNfc;
- };
-
-
- #endif //MIFARE_TOOLS_NFCDEVICEDBO_H
|