OSDN Git Service

Introduce uri opener.
[fukui-no-namari/fukui-no-namari.git] / src / Hage1 / dbus_object.py
index 0860638..b6038e9 100644 (file)
@@ -20,9 +20,7 @@ import dbus.service
 if getattr(dbus, 'version', (0,0,0)) >= (0,41,0):
     import dbus.glib
 
-import board_window
-import thread_window
-import brdlist_window
+import uri_opener
 
 dbus_interface_name = "tk.tetteke.Hage1"
 
@@ -32,13 +30,5 @@ class DBusHage1Object(dbus.service.Object):
         dbus.service.Object.__init__(self, bus_name, object_path)
 
     @dbus.service.method(dbus_interface_name)
-    def open_board(self, bbs, board):
-        board_window.open_board(bbs, board)
-
-    @dbus.service.method(dbus_interface_name)
-    def open_thread(self, bbs, board, thread):
-        thread_window.open_thread(bbs, board, thread)
-
-    @dbus.service.method(dbus_interface_name)
-    def open_brdlist(self, bbs):
-        brdlist_window.open_brdlist(bbs)
+    def open_uri(self, uri):
+        uri_opener.open_uri(uri)