Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

FreeFareTag.h 672B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // Created by robin on 6/19/16.
  3. //
  4. #ifndef MIFARE_TOOLS_FREEFARETAG_H
  5. #define MIFARE_TOOLS_FREEFARETAG_H
  6. #include <freefare.h>
  7. #include <string>
  8. #include <DBO/Result.h>
  9. class FreeFareTag
  10. {
  11. public:
  12. FreeFareTag(FreefareTag tag);
  13. ~FreeFareTag();
  14. ResultBool authenticate(int sector, int block, std::string key, int keyType);
  15. ResultString readBlock(int sector, int block, std::string key, int keyType);
  16. const freefare_tag * getTag() const;
  17. freefare_tag_type getType() const;
  18. const std::string & getUid() const;
  19. private:
  20. FreefareTag _tag;
  21. freefare_tag_type _type;
  22. std::string _uid;
  23. };
  24. #endif //MIFARE_TOOLS_FREEFARETAG_H