[maemo-developers] Starting a 3G traffic monitoring application for N900: some questions

From: a.grandi at gmail.com a.grandi at gmail.com
Date: Mon Nov 29 16:04:29 EET 2010
Hi all,

I'd like to write an application that allows me to monitor the 3G data
traffic on my N900.
I've an option called "SuperInternet" with Tre Italy that gives you
100Mb/day Internet traffic.

It's not easy to keep track of transfered data, so I'd like to write a
desktop applet that monitor traffic and keep the amount updated.
I'm going to write this in Qt/C++.

I've some question before starting:

1) How can I detect, from a Qt/C++ application, if a 3G connection is
estabilished and when it disconnects?

2) Is it ok if I monitor the trasmitted/received data using ifconfig?
If yes, how can I execute ifconfig from an application running as
user? (Usually you can only execute ifconfig if you "sudo gainroot"
before).

Thanks for your help!

-- 
Andrea Grandi - Nokia Qt Ambassador
Maemo Community Council member
website: http://www.andreagrandi.it
More information about the maemo-developers mailing list