/* -*- 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_COMMUNICATOR_HXX #define _SD_IMPRESSREMOTE_COMMUNICATOR_HXX #include #include #include #include #include #include #include #include "IBluetoothSocket.hxx" #define CHARSET RTL_TEXTENCODING_UTF8 namespace sd { class Transmitter; class Listener; /** Class used for communication with one single client, dealing with all * tasks specific to this client. * * Needs to be created, then started using launch(), disposes itself. */ class Communicator : public salhelper::Thread { public: Communicator( IBluetoothSocket *pSocket ); ~Communicator(); void presentationStarted( const css::uno::Reference< css::presentation::XSlideShowController > &rController ); void informListenerDestroyed(); void disposeListener(); private: void execute(); IBluetoothSocket *mpSocket; Transmitter *pTransmitter; rtl::Reference mListener; }; } #endif // _SD_IMPRESSREMOTE_COMMUNICATOR_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */