[maemo-developers] some more dev questions related to my libicd_policy_home_network.so project

From: Thomas Perl th.perl at gmail.com
Date: Wed Feb 9 17:57:22 EET 2011
Hi Jonathan,

2011/2/9 Jonathan Wilson <jfwfreo at tpgi.com.au>:
> 1.What is the best place to store configuration information on the N900? And
> where can I find documentation and examples of storing such configuration
> information for my plugin? (in this case I will have a control panel plugin
> which sets a value and the ICD policy plugin retrieves it)

I think GConf is a good place for that:

http://maemo.org/api_refs/5.0/5.0-final/gconf2/

> 2.Is there an example of how to produce a control panel plugin?

Yes, in the "Developing control panel applets" section:

http://maemo.org/development/sdks/maemo_5_examples/

> and 3.Is there an example of how to produce a dialog box and drop-down list
> similar to the dialog box that lists all the different available internet
> connections?

I believe this is a HildonTouchSelector widget:

http://maemo.org/api_refs/5.0/5.0-final/hildon/HildonTouchSelector.html

> I need to know how to create the dialog, how to set its title, how to create
> the dropdown list, how to add buttons to the dropdown list and how to
> respond to button presses/item selections (and then how to close the dialog
> after doing what I need with the button press)

Check out one of the Hildon 2.x tutorials. You might also want to go
the Qt route. I don't know if you can write a control panel applet
without any GTK+/Hildon code, though. I'm sure there are some
community control panel applets in the Extras-Devel repository. If you
want to go the Qt route, you can just make it a normal application
that appears in the application list, and not in the control panel. Or
you write a thin "wrapper" for the control panel that simply starts
your Qt application when activated.

HTH.
Thomas
More information about the maemo-developers mailing list