tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sd / source / ui / remotecontrol / Receiver.hxx
blobd3fadf0da2c3139d5bfdebc55c0f0c7c76f782a3
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 <rtl/string.hxx>
12 #include <vcl/timer.hxx>
14 #include <vector>
15 #include <deque>
17 namespace sd { class Transmitter; }
19 namespace sd
22 // Timer is protected by the solar mutex => so are we.
23 class Receiver : private Timer
25 std::deque< std::vector< OString > > maExecQueue;
26 public:
27 explicit Receiver( Transmitter *aTransmitter );
28 virtual ~Receiver() override;
29 virtual void Invoke() override;
30 void pushCommand( const std::vector<OString> &rCommand );
31 static void executeCommand( const std::vector<OString> &aCommand );
33 private:
34 Transmitter *pTransmitter;