refactored for reuse and enable testing - tests are currently broken
[wifi-assistant] / package / src / wifi_assistant / launcher.py
1 #!/usr/bin/python2.5
2 from gnome import gconf
3 import osso
4
5 class Launcher():
6     
7     """Opens a URL in a browser."""
8     
9     def __init__(self):
10         pass
11     
12     # ---- public API __________________________________________________________
13
14     def openUrl(self, url):
15         osso_context = osso.Context("org.maemo.touchsearch", "1.1", False)
16         osso_rpc = osso.Rpc(osso_context)
17         osso_rpc.rpc_run_with_defaults("osso_browser", "open_new_window", (url,))
18