Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Mobility] Automatically launching NDEF message handlers
Forum Updated to NodeBB v4.3 + New Features

[Mobility] Automatically launching NDEF message handlers

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stukdev
    wrote on last edited by
    #1

    I'm trying to launch automatically an application via NFC on my Nokia C7. I follow the step in "this":http://doc.qt.nokia.com/qtmobility/qnearfieldmanager.html guide at the section Automatically launching NDEF message handlers.

    @
    nfcManager = new QNearFieldManager(this);
    nfcManager->registerNdefMessageHandler(this, SLOT(handleMessage(QNdefMessage,QNearFieldTarget)));
    @

    But when i run application i got:
    [Qt Message] Signatures do not match: y:/sf/mw/qtmobility/src/connectivity/nfc/qnearfieldmanager.cpp:408

    So i change and try to use this code:

    @
    nfcManager = new QNearFieldManager(this);

    QNdefFilter filter;
    filter.setOrderMatch(false);
    nfcManager->registerNdefMessageHandler(this, SLOT(handleMessage(QNdefMessage,QNearFieldTarget*)));
    @

    But now what i have to do for running automatically the application?

    Update:

    The problem is in this function, always return -1 and i don’t know why…

    @
    nfcManager->registerNdefMessageHandler(this,SLOT(handleMessage(QNdefMessage,QNearFieldTarget*)));
    @

    Nobody have try use nfc mobility class?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pritamghanghas
      wrote on last edited by
      #2

      are your sure your handle is actually a SLOT in this class.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stukdev
        wrote on last edited by
        #3

        Yes, its a private slots

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stukdev
          wrote on last edited by
          #4

          Solved i have to write without numbers and capitals letter in the customproperty of xml file

          <customproperty key="datatype">urn:nfc:ext:nokia.com:mytest</customproperty>

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved