LibreOffice Module sd (master) 1
Receiver.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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
10
11#include <rtl/string.hxx>
12#include <vcl/timer.hxx>
13
14#include <vector>
15#include <deque>
16
17namespace sd { class Transmitter; }
18
19namespace sd
20{
21
22// Timer is protected by the solar mutex => so are we.
23class Receiver : private Timer
24{
25 std::deque< std::vector< OString > > maExecQueue;
26public:
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 );
32
33private:
35};
36
37}
virtual ~Receiver() override
Definition: Receiver.cxx:36
void pushCommand(const std::vector< OString > &rCommand)
Definition: Receiver.cxx:41
std::deque< std::vector< OString > > maExecQueue
Definition: Receiver.hxx:25
Receiver(Transmitter *aTransmitter)
Definition: Receiver.cxx:30
static void executeCommand(const std::vector< OString > &aCommand)
Definition: Receiver.cxx:62
Transmitter * pTransmitter
Definition: Receiver.hxx:34
virtual void Invoke() override
Definition: Receiver.cxx:48