Added nfc_tag_type() and fixed some const qualifiers

pull/7822/head
Donatien Garnier 2018-08-03 17:39:21 +01:00
parent 8d03c557e2
commit 04304e0ec0
2 changed files with 15 additions and 5 deletions

View File

@ -36,11 +36,11 @@ namespace nfc {
protected:
void set_ndef_support(bool supported);
bool are_remote_ndef_reads_enabled();
bool are_remote_ndef_writes_enabled();
bool are_remote_ndef_reads_enabled() const;
bool are_remote_ndef_writes_enabled() const;
ndef::MessageParser* ndef_message_parser() const;
ndef::MessageBuilder* ndef_message_builder() const;
ndef::MessageParser* ndef_message_parser();
ndef::MessageBuilder* ndef_message_builder();
private:
ndef::MessageParser* _message_parser;

View File

@ -40,7 +40,17 @@ namespace nfc {
void set_delegate(Delegate* delegate);
bool is_iso7816_supported();
enum nfc_tag_type_t {
nfc_tag_type_1,
nfc_tag_type_2,
nfc_tag_type_3,
nfc_tag_type_4a,
nfc_tag_type_4b,
nfc_tag_type_5
};
nfc_tag_type_t nfc_tag_type() const;
bool is_iso7816_supported() const;
void add_iso7816_application(ISO7816App* application);
};