×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    430

    Purpose of QOrientationReading::setOrientation?

    Hello,
    while browsing the documentation for the new sensor-framework, I found this:
    http://qt.nokia.com/doc/qtmobility-1...setOrientation

    What is the purpose of setting sensor data from an application? It sounds like future devices get motors so a device is able to rotate itself on the desk or in the hands of a user.

    I see that the API needs a way to actually generate such an object for returning but maybe it makes more sense to make the setter private or have only a constructor to accept the sensor value to not be able to alter returned values.

  2. #2
    Registered User
    Join Date
    Mar 2010
    Location
    Australia
    Posts
    2

    Re: Purpose of QOrientationReading::setOrientation?

    Hi,

    The setXXX methods are an artifact of the design that was chosen. A client of the API can call setXXX but nothing useful or harmful will happen (well, the value will be changed but the next update will change it back).

    There is a technical solution that could be employed to remove the setXXX methods from client use. However, this cannot be done in time for the 1.0 release and unless there's a way to do it without breaking binary compatibility it likely won't happen for some time.

    I have created an entry in our issue tracking system to keep track of this suggestion. If you have any information to add, feel free to comment on the issue.

    http://bugreports.qt.nokia.com/browse/QTMOBILITY-148

Similar Threads

  1. Certificat for Testing Purpose
    By prajapati.ajay in forum Mobile Java General
    Replies: 2
    Last Post: 2009-10-30, 09:24
  2. what is the purpose of a status pane?When to use it?
    By sandeep.mohapatra in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-03-22, 11:49
  3. how to sign a midlet for testing purpose
    By PriyankaChaurishia123 in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2006-02-21, 15:45
  4. Purpose of Eikmfne.h ?
    By amitaggarwal in forum Symbian
    Replies: 2
    Last Post: 2004-08-16, 07:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×