1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
13 #include <rtl/ref.hxx>
14 #include <salhelper/thread.hxx>
16 namespace com::sun::star::uno
{ template <typename
> class Reference
; }
17 namespace com::sun::star::presentation
{ class XSlideShowController
; }
18 namespace sd
{ struct IBluetoothSocket
; }
26 /** Class used for communication with one single client, dealing with all
27 * tasks specific to this client.
29 * Needs to be created, then started using launch(), disposes itself.
31 class Communicator
: public salhelper::Thread
34 explicit Communicator( std::unique_ptr
<IBluetoothSocket
> pSocket
);
35 virtual ~Communicator() override
;
37 void presentationStarted( const css::uno::Reference
<
38 css::presentation::XSlideShowController
> &rController
);
39 void informListenerDestroyed();
40 void disposeListener();
44 void execute() override
;
45 std::unique_ptr
<IBluetoothSocket
> mpSocket
;
47 std::unique_ptr
<Transmitter
> pTransmitter
;
48 rtl::Reference
<Listener
> mListener
;
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */