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.

FreeFareTag.h 733B

12345678910111213141516171819202122232425262728293031323334353637383940
  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, std::string key, int keyType);
  15. ResultString readSector(int sector, std::string key, int keyType);
  16. ResultString readBlock(int sector, int block, std::string key, int keyType);
  17. const freefare_tag * getTag() const;
  18. freefare_tag_type getType() const;
  19. const std::string & getUid() const;
  20. private:
  21. FreefareTag _tag;
  22. freefare_tag_type _type;
  23. std::string _uid;
  24. };
  25. #endif //MIFARE_TOOLS_FREEFARETAG_H