Dear Mark, Thank you for your reply, First, sorry because of providing lack of
information. Let me tell you a little about what I am doing now: I am
developing an application on Ubuntun, with C programming language, which behave
very similar to nm-applet, it manage all settings & connection state of an
HSPA USB Data Device (it means only manage wwan connection type, you know). So,
I decided to hack nm-applet source code. I have experienced with programming C
& C++ on windows platforms, and I feel quickly familiar with programming C
on linux. My problem is: I found few documentation of NetworkManager lib (libnm…)
and don’t know where to find API specifications also signals specifications. I did
modify nm-applet GUI and now I need to continually get connection state
(status, speed, description, …) to update my GUI forms ToanNC. From: Mark Renouf
[mailto:mark renouf gmail com] Having
just done such a thing I think I can help point you in the right direction. Of
course, the exact methods and effort required depend heavily on your choice of
language. If you are writing C, then I would recommend libnm-glib and
libnm-util. You can monitor device state via gobject signal handlers. Anyone
familiar with Glib can help you with that. Ping me off-list and I could share
some code snippets.
|