Posts: 64 | Thanked: 13 times | Joined on Apr 2010
#1
hello,
Dear All,
How can i check if N900 is in offline mode or normal mode?

C or c++ not QT


kindly advice
Regards
Wael
 
Banned | Posts: 779 | Thanked: 337 times | Joined on Jun 2010
#2
Originally Posted by waelfarouk0 View Post
hello,
Dear All,
How can i check if N900 is in offline mode or normal mode?

C or c++ not QT


kindly advice
Regards
Wael
you will need to open your device which is highly not recommended
 
Posts: 1,461 | Thanked: 1,889 times | Joined on Feb 2008 @ Edmonton, AB
#3
if you want to do it properly, use dbus libraries

http://wiki.maemo.org/Documentation/...per_Guide/DBus

this will work from the command line, but you should figure out which part is which and just send it directly.

/usr/bin/dbus-send --system --type=signal /com/nokia/mce/signal
com.nokia.mce.signal.sig_device_mode_ind string:"flight"
 
Posts: 1,461 | Thanked: 1,889 times | Joined on Feb 2008 @ Edmonton, AB
#4
oh i guess you wanted to check, not change, hmmm...
i'll try to find it

http://maemo.org/api_refs/5.0/beta/m...-names_8h.html

i think flight and offline is the same thing

Last edited by Creamy Goodness; 2011-02-08 at 18:38.
 
Posts: 1,678 | Thanked: 3,662 times | Joined on Jan 2011
#5
check wiki for 'phone control', there is a script that returns the current profile.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 
Posts: 1,461 | Thanked: 1,889 times | Joined on Feb 2008 @ Edmonton, AB
#6
script <> programming
he said c or c++
if someone writes a c++ program that uses the shell to run dbus commands, they should not write any apps... lol
 
Posts: 64 | Thanked: 13 times | Joined on Apr 2010
#7
Dear All,
Thank you for reply

This sample contain what i need

http://maemo.org/development/trainin...n_html/node12/


Regards
Wael
 

The Following 2 Users Say Thank You to waelfarouk0 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:06.