[Libreoffice-commits] .: Branch 'feature/remote' - sd/inc sd/source

Michael Meeks michael at kemper.freedesktop.org
Mon Jul 9 04:23:13 PDT 2012


 sd/inc/sddll.hxx                      |    1 +
 sd/source/ui/app/sddll.cxx            |    3 +++
 sd/source/ui/remotecontrol/Server.cxx |   12 +++++++++---
 3 files changed, 13 insertions(+), 3 deletions(-)

New commits:
commit 44a2e6d924cfa84ad40220b38ec18932f3e908c0
Author: Michael Meeks <michael.meeks at suse.com>
Date:   Mon Jul 9 12:20:45 2012 +0100

    add remote initialization hooks to impress init.
    
    Change-Id: I80b6e840ed6981a4ae600c5d9925e5df9610f8c6

diff --git a/sd/inc/sddll.hxx b/sd/inc/sddll.hxx
index 642d655..86fd0e9 100644
--- a/sd/inc/sddll.hxx
+++ b/sd/inc/sddll.hxx
@@ -51,6 +51,7 @@ class SfxFilter;
 class SdDLL
 {
 protected:
+    static void     RegisterRemotes();
     static void     RegisterFactorys();
     static void     RegisterInterfaces();
     static void     RegisterControllers();
diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx
index dad91d7..a5dec04 100644
--- a/sd/source/ui/app/sddll.cxx
+++ b/sd/source/ui/app/sddll.cxx
@@ -123,6 +123,9 @@ void SdDLL::Init()
 
     // Objekt-Factory eintragen
     SdrObjFactory::InsertMakeUserDataHdl(LINK(&aSdObjectFactory, SdObjectFactory, MakeUserData));
+
+    // register your exotic remote controlls here
+    RegisterRemotes();
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx
index e562809..ba0007a 100644
--- a/sd/source/ui/remotecontrol/Server.cxx
+++ b/sd/source/ui/remotecontrol/Server.cxx
@@ -4,12 +4,10 @@
 #include <netinet/in.h>
 #include <vector>
 
+#include "sddll.hxx"
 #include "Server.hxx"
 #include "Receiver.hxx"
 
-
-
-
 #include <boost/thread.hpp>
 using namespace std;
 using namespace sd::remotecontrol;
@@ -96,3 +94,11 @@ void Server::listenThread()
 //     delete this;
 //   }
 // }
+
+
+void SdDLL::RegisterRemotes()
+{
+  fprintf( stderr, "Register our remote control goodness\n" );
+  // FIXME: create a thread
+  // FIXME: convert the above socket code to use sal/inc/osl/socket.hxx etc.
+}


More information about the Libreoffice-commits mailing list