[the-board] [ui] Export Application DBus json methods via HTTP



commit 1eb8909742f14054f183b78eb1cce07ee0cffb92
Author: Lucas Rocha <lucasr gnome org>
Date:   Tue Nov 23 01:29:24 2010 +0000

    [ui] Export Application DBus json methods via HTTP
    
    This is to allow browser extensions to communicate with The Board.

 src/js/ui/application.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/application.js b/src/js/ui/application.js
index 996438c..d7d613f 100644
--- a/src/js/ui/application.js
+++ b/src/js/ui/application.js
@@ -23,6 +23,7 @@ if (Features.HAVE_LIBNOTIFY) {
 const MainWindow = imports.ui.mainWindow;
 
 const _THE_BOARD_DBUS_PATH = "/org/gnome/TheBoard";
+const _THE_BOARD_HTTP_PORT = 2010;
 
 const TheBoardIface = {
     name: "org.gnome.TheBoard",
@@ -115,6 +116,10 @@ Application.prototype = {
 
         DBus.session.exportObject(_THE_BOARD_DBUS_PATH, this);
 
+        if (Features.HAVE_LIBSOUP) {
+            Http.exportObject(_THE_BOARD_HTTP_PORT, TheBoardIface, this);
+        }
+
         this._defineStyleAndThemes();
         this._notifyInit();
         this._createMainWindow();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]