tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sd / source / ui / remotecontrol / Communicator.hxx
blobf8f23c58c02ac13e2778b80f90225ded1feb6514
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
9 #pragma once
11 #include <memory>
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; }
20 namespace sd
23 class Transmitter;
24 class Listener;
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
33 public:
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();
41 void forceClose();
43 private:
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: */