diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-07-30 08:34:41 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-08-06 10:23:06 +0100 |
commit | 4d14068cf7464478e25fbf9fabd31aa6233ea1b1 (patch) | |
tree | e16c2e05d8f1983e72ed81bc0f799bd6b7290d00 /sd/source/ui/inc/RemoteServer.hxx | |
parent | 31891189cbd1866fd745a47630b7dcc090d3942b (diff) |
Renamed Server to RemoteServer for obviousness.
Change-Id: Ia935a97fe57eb1259c3426f0414bec7362f2e8cf
Diffstat (limited to 'sd/source/ui/inc/RemoteServer.hxx')
-rw-r--r-- | sd/source/ui/inc/RemoteServer.hxx | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sd/source/ui/inc/RemoteServer.hxx b/sd/source/ui/inc/RemoteServer.hxx new file mode 100644 index 000000000000..37fba7552038 --- /dev/null +++ b/sd/source/ui/inc/RemoteServer.hxx @@ -0,0 +1,62 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +#ifndef _SD_IMPRESSREMOTE_SERVER_HXX +#define _SD_IMPRESSREMOTE_SERVER_HXX + +// SERVER +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <sys/types.h> + +#include <osl/socket.hxx> +#include <rtl/ref.hxx> +#include <salhelper/thread.hxx> + +#include <com/sun/star/presentation/XSlideShowController.hpp> + +namespace css = ::com::sun::star; + +/** +* The port for use for the main communication between LibO and remote control app. +*/ +#define PORT 1599 + +#define CHARSET RTL_TEXTENCODING_UTF8 + +namespace sd +{ + + class Transmitter; + class Listener; + class ImagePreparer; + + class RemoteServer : public salhelper::Thread + { + public: + static void setup(); + static void presentationStarted( const css::uno::Reference< + css::presentation::XSlideShowController > &rController ); + static void presentationStopped(); + void informListenerDestroyed(); + private: + RemoteServer(); + ~RemoteServer(); + static RemoteServer *spServer; + osl::AcceptorSocket mSocket; + osl::StreamSocket mStreamSocket; + void listenThread(); + void execute(); + static Transmitter *pTransmitter; + static rtl::Reference<Listener> mListener; + }; +} + +#endif // _SD_IMPRESSREMOTE_SERVER_HXX +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file |