Thread
:
Determine Device orientation
View Single Post
tommiasp
2010-08-02 , 09:20
Posts: 13 | Thanked: 12 times | Joined on Apr 2010 @ Finland
#
3
Using mce from dbus:
http://maemo.org/api_refs/5.0/5.0-fi...928a6ae2fc0c9e
Example for Qt:
QDBusMessage getOrientationMsg = QDBusMessage::createMethodCall(MCE_SERVICE, MCE_REQUEST_PATH, MCE_REQUEST_IF, MCE_DEVICE_ORIENTATION_GET);
QDBusConnection::systemBus().callWithCallback(getO rientationMsg, this, SLOT(updateOrientation(QString, QString, QString, int, int, int)));
this sends orientation data to updateOrientation slot:
updateOrientation(QString orientation, QString stand, QString face, int x, int y, int z)
Quote & Reply
|
The Following User Says Thank You to tommiasp For This Useful Post:
Grinchman
tommiasp
View Public Profile
Send a private message to tommiasp
Find all posts by tommiasp