diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-08-10 13:27:40 +0200 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-08-10 13:28:45 +0200 |
commit | 2d63c4689a13599ec9389c370726005f01fea08c (patch) | |
tree | 4ea8b5c6b0d19f42c2eeeeb365bf346474855d33 /sd/source/ui/inc/RemoteServer.hxx | |
parent | 9495316659018427ac8d6bc0b6427600ba0ce01e (diff) |
Basic Impress Remote + linking of dialog and server.
Change-Id: Ifd69df9ccfb5b6a78044b002b6ec5bf1f12b6faa
Diffstat (limited to 'sd/source/ui/inc/RemoteServer.hxx')
-rw-r--r-- | sd/source/ui/inc/RemoteServer.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sd/source/ui/inc/RemoteServer.hxx b/sd/source/ui/inc/RemoteServer.hxx index e79d356bd51f..b614dd1a8f37 100644 --- a/sd/source/ui/inc/RemoteServer.hxx +++ b/sd/source/ui/inc/RemoteServer.hxx @@ -14,6 +14,7 @@ #include <stdlib.h> #include <unistd.h> #include <sys/types.h> +#include <vector> #include <osl/socket.hxx> #include <rtl/ref.hxx> @@ -21,6 +22,8 @@ #include <com/sun/star/presentation/XSlideShowController.hpp> +#include "sddllapi.h" + namespace css = ::com::sun::star; /** @@ -29,6 +32,7 @@ namespace css = ::com::sun::star; #define PORT 1599 #define CHARSET RTL_TEXTENCODING_UTF8 +namespace css = ::com::sun::star; namespace sd { @@ -37,6 +41,17 @@ namespace sd class Listener; class ImagePreparer; + struct ClientInfo + { + const rtl::OUString mName; + const rtl::OUString mAddress; + + enum PROTOCOL { NETWORK = 1, BLUETOOTH }; + ClientInfo( OUString rName, OUString rAddress) : + mName( rName ), + mAddress( rAddress ) {} + }; + class RemoteServer : public salhelper::Thread { public: @@ -45,6 +60,9 @@ namespace sd css::presentation::XSlideShowController > &rController ); static void presentationStopped(); void informListenerDestroyed(); + + SD_DLLPUBLIC static std::vector<ClientInfo> getClients(); + SD_DLLPUBLIC static void connectClient( ClientInfo aClient, rtl::OString aPin ); private: RemoteServer(); ~RemoteServer(); |