Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-90

Documentation: QContactAbstractRequest: Needs clear advice about how to delete the request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 1.0.1
    • 1.0.0
    • Contacts
    • None
    • 0d6cfeba199d4691811518e13748846e70164bb4 79bb6a6e90e5236b97940a21b19dff02aae2371b d619babc562c0e41653e4639ab2a82ff95792999.

      The QContactAbstractRequest documentation should give clear advice about when (and how) to delete the request. Existing code seems to do this
      if(self->isFinished())
      self->deleteLater();
      in a slot that handles the stateChanged signal:
      http://qt.nokia.com/doc/qtmobility-1.0-beta/qcontactabstractrequest.html#stateChanged

      That advice probably needs to say that you need to handle the stateChanged signal even if you are already handling the resultsAvailable signal. Otherwise you won't always have the chance to delete the request. That advice should then state if deleting in a stateChanged handler will prevent the resultsAvailable signal from being emitted.

      Of course, I'd prefer to just call a deleteWhenFinished() method, reducing the amount of code I have to write.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            murrayc Murray Cumming
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes