Moblin Applets: Network Proxy

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
  • /usr/share/moblin-applets/glade/network-proxy.glade
    • Glade XML file describing the dialog

Applet Design



Gconf Settings

FunctionKey PathTypeKey Value
Use Http Proxy/system/http_proxy/use_http_proxyBOOLTRUE/FALSE
Same Key for All/system/http_proxy/use_same_proxyBOOLTRUE/FALSE
HTTP Proxy Host/system/http_proxy/hostSTRINGip/url
HTTP Proxy Port/system/http_proxy/portINTport
Use Athentication/system/http_proxy/use_authenticationBOOLTRUE/FALSE
Proxy Username/system/http_proxy/authentication_userSTRINGusername
Proxy Password/system/http_proxy/authentication_passwordSTRINGpassword
Ignore Host List/system/http_proxy/ignore_hostsSTRINGdomain1, d2, ...
Proxy Mode/system/proxy/modeSTRINGnone, manual, or auto
HTTPS Proxy Host/system/proxy/secure_hostSTRINGip/url
Last HTTPS Proxy Host/system/proxy/old_secure_hostSTRINGip/url
HTTPS Proxy Port/system/proxy/secure_portINTport
Last HTTPS Proxy Port/system/proxy/old_secure_portINTport
FTP Proxy Host/system/proxy/ftp_hostSTRINGip/url
Last FTP Proxy Host/system/proxy/old_ftp_hostSTRINGip/url
FTP Proxy Port/system/proxy/ftp_portINTport
Last FTP Proxy Port/system/proxy/old_ftp_portINTport
SOCKS Proxy Host/system/proxy/socks_hostSTRINGip/url
Last SOCKS Proxy Host/system/proxy/old_socks_hostSTRINGip/url
SOCKS Proxy Port/system/proxy/socks_portINTport
Last SOCKS Proxy Port/system/proxy/old_socks_portINTport
Auto Proxy URL/system/proxy/autoconfig_urlSTRINGip/url

Code Reuse

This applet is based on gnome-control-center's network applet.