summaryrefslogtreecommitdiffstats
path: root/examples/nfc/poster
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2015-03-24 15:46:55 +0100
committerStephan Binner <stephan.binner@basyskom.com>2015-04-02 11:58:09 +0000
commita6eada4aec4f029bce178845755fc64f74370c0c (patch)
tree192dd8ccbce07317e5b1b5ad19efb8f682ced79b /examples/nfc/poster
parent920542ffbb1b97c8ac22abb372d0ae042066ebd2 (diff)
Fix implementation of and improve NdefFilter usage
Updated QML docu: describe typeNameFormat, defaults of min/max/orderMatch Removed mention of "both minimum and maximum -1 means matches any numbers": it is unimplemented and QNdefFilter::Record uses unsigned int for min/max Adapt filter logic from QNearFieldManagerPrivateVirtualBase for Android and QNX backends to add support for orderMatch, minimum and maximum properties Adapt filters and examples to use empty type as wildcard (eg Mime records) Change-Id: Id9d51514bb593bd38c3fed89b612af54dffceff0 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/nfc/poster')
-rw-r--r--examples/nfc/poster/poster.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/nfc/poster/poster.qml b/examples/nfc/poster/poster.qml
index 89e6af19..a70a998b 100644
--- a/examples/nfc/poster/poster.qml
+++ b/examples/nfc/poster/poster.qml
@@ -63,8 +63,9 @@ Rectangle {
}
filter: [
- NdefFilter { type: "U"; typeNameFormat: NdefRecord.NfcRtd; minimum: 1; maximum: 1 },
- NdefFilter { type: "T"; typeNameFormat: NdefRecord.NfcRtd; minimum: 1 }
+ NdefFilter { type: "U"; typeNameFormat: NdefRecord.NfcRtd; maximum: 1 },
+ NdefFilter { type: "T"; typeNameFormat: NdefRecord.NfcRtd },
+ NdefFilter { typeNameFormat: NdefRecord.Mime; minimum: 0; maximum: 1 }
]
onMessageRecordsChanged: {