Reply
Thread Tools
Posts: 7 | Thanked: 0 times | Joined on Mar 2010 @ Sheffield UK
#1
Hi,

I'm trying to make an app I've written in c for maemo prompt the user to connect to the internet when the device isn't connected. I found a page in the wiki with some example code but I couldn't get it to work:

http://wiki.maemo.org/Documentation/...y_UI_Interface

I've set connection as a pointer to a DBusConnection, reply is a pointer to a DBusMessage and error is a DBusError. I also ran dbus_bus_get to set up connection.

Anyone have any ideas where I'm going wrong? Or the 'proper' way to request a connection?
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#2
I dont use GTK myself, but how the connection pointer is initialized is on the same page.

connection = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error);

is that how you tried to do this. Maybe pasting the code might get you answers from GTK/dbus gurus.
I use QT, but I can try to help.
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2010 @ Sheffield UK
#3
Unfortunately I don't have the code with me at the moment, I'm at work. I'll post some in later when I get home though.
 
Posts: 7 | Thanked: 0 times | Joined on Mar 2010 @ Sheffield UK
#4
I've got this working now (almost) with conic. The only problem I have now is that I can't get the program to wait for the connection to come up after the user's chosen the connection before it tries to use it. I'll read the docs a bit more and see what I can find.
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:59.