Snapshot
Overview
The proxy applet is designed to allow the user to setup a global proxy configuration for the system and store it in a series of gconf keys. These keys can be read or monitored by network accessible applications in order to be able to access the net properly. The following settings are supported
- Internet connection type (direct, manual, or autoproxy)
- Manual proxy config settings (HTTP, SHTTP, FTP, Socks proxy host and port settings)
- Autoproxy settings (config URL)
- Ignore host list (for hosts that don't need the proxy to access)
Files Needed
- /usr/lib/moblin-applets/libhcpcommon.so
- all control panel applets need this
- /usr/lib/hildon-control-panel/network-proxy.so
- The applet library
- /usr/share/applications/hildon-control-panel/network-proxy.desktop
- The applet descriptor, tells mobile-basic-flash to create a shortcut in "Settings"
- /usr/share/moblin-applets/glade/network-proxy.glade
- Glade XML file describing the dialog
Applet Design
Gconf Settings
| Function | Key Path | Type | Key Value |
|---|---|---|---|
| Use Http Proxy | /system/http_proxy/use_http_proxy | BOOL | TRUE/FALSE |
| Same Key for All | /system/http_proxy/use_same_proxy | BOOL | TRUE/FALSE |
| HTTP Proxy Host | /system/http_proxy/host | STRING | ip/url |
| HTTP Proxy Port | /system/http_proxy/port | INT | port |
| Use Athentication | /system/http_proxy/use_authentication | BOOL | TRUE/FALSE |
| Proxy Username | /system/http_proxy/authentication_user | STRING | username |
| Proxy Password | /system/http_proxy/authentication_password | STRING | password |
| Ignore Host List | /system/http_proxy/ignore_hosts | STRING | domain1, d2, ... |
| Proxy Mode | /system/proxy/mode | STRING | none, manual, or auto |
| HTTPS Proxy Host | /system/proxy/secure_host | STRING | ip/url |
| Last HTTPS Proxy Host | /system/proxy/old_secure_host | STRING | ip/url |
| HTTPS Proxy Port | /system/proxy/secure_port | INT | port |
| Last HTTPS Proxy Port | /system/proxy/old_secure_port | INT | port |
| FTP Proxy Host | /system/proxy/ftp_host | STRING | ip/url |
| Last FTP Proxy Host | /system/proxy/old_ftp_host | STRING | ip/url |
| FTP Proxy Port | /system/proxy/ftp_port | INT | port |
| Last FTP Proxy Port | /system/proxy/old_ftp_port | INT | port |
| SOCKS Proxy Host | /system/proxy/socks_host | STRING | ip/url |
| Last SOCKS Proxy Host | /system/proxy/old_socks_host | STRING | ip/url |
| SOCKS Proxy Port | /system/proxy/socks_port | INT | port |
| Last SOCKS Proxy Port | /system/proxy/old_socks_port | INT | port |
| Auto Proxy URL | /system/proxy/autoconfig_url | STRING | ip/url |
Code Reuse
This applet is based on gnome-control-center's network applet.- Gnome Control Center 1:2.18.1-0ubuntu2
- Download at: http://packages.ubuntu.com/feisty/gnome-control-center
