2012-07-11 17:44:41 +01:00
|
|
|
/* -*- 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/.
|
|
|
|
*/
|
2013-10-23 22:38:46 +02:00
|
|
|
#ifndef INCLUDED_SD_SOURCE_UI_REMOTECONTROL_RECEIVER_HXX
|
|
|
|
#define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_RECEIVER_HXX
|
2012-07-09 10:57:32 +01:00
|
|
|
|
2012-07-11 17:44:41 +01:00
|
|
|
#include <com/sun/star/presentation/XSlideShowListener.hpp>
|
2012-07-09 10:57:32 +01:00
|
|
|
#include <com/sun/star/presentation/XSlideShowController.hpp>
|
2012-07-09 15:53:03 +01:00
|
|
|
#include <com/sun/star/presentation/XPresentationSupplier.hpp>
|
|
|
|
#include <com/sun/star/presentation/XPresentation.hpp>
|
|
|
|
#include <com/sun/star/presentation/XPresentation2.hpp>
|
2012-07-11 17:44:41 +01:00
|
|
|
#include <osl/socket.hxx>
|
2012-07-09 10:57:32 +01:00
|
|
|
#include <stdlib.h>
|
2013-01-28 20:03:20 +11:00
|
|
|
#include <vcl/timer.hxx>
|
|
|
|
#include <vcl/svapp.hxx>
|
2012-07-12 22:10:33 +01:00
|
|
|
|
|
|
|
#include <vector>
|
2012-07-09 10:57:32 +01:00
|
|
|
|
2012-07-13 17:34:49 +01:00
|
|
|
#include "Transmitter.hxx"
|
|
|
|
|
2012-07-09 10:57:32 +01:00
|
|
|
namespace sd
|
|
|
|
{
|
2012-07-09 11:52:22 +01:00
|
|
|
|
2013-01-28 20:03:20 +11:00
|
|
|
// Timer is protected by the solar mutex => so are we.
|
|
|
|
class Receiver : Timer
|
2012-07-09 10:57:32 +01:00
|
|
|
{
|
2013-04-07 12:06:47 +02:00
|
|
|
std::deque< std::vector< OString > > maExecQueue;
|
2012-07-09 10:57:32 +01:00
|
|
|
public:
|
2012-07-13 17:34:49 +01:00
|
|
|
Receiver( Transmitter *aTransmitter );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~Receiver();
|
2015-03-06 14:48:18 +01:00
|
|
|
virtual void Invoke() SAL_OVERRIDE;
|
2013-04-07 12:06:47 +02:00
|
|
|
void pushCommand( const std::vector<OString> &rCommand );
|
2015-04-29 09:55:11 +02:00
|
|
|
static void executeCommand( const std::vector<OString> &aCommand );
|
2012-07-09 11:52:22 +01:00
|
|
|
|
2012-07-09 10:57:32 +01:00
|
|
|
private:
|
2012-07-18 16:14:52 +02:00
|
|
|
Transmitter *pTransmitter;
|
2012-07-09 15:53:03 +01:00
|
|
|
};
|
2012-07-09 10:57:32 +01:00
|
|
|
|
|
|
|
}
|
2013-10-23 22:38:46 +02:00
|
|
|
#endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_RECEIVER_HXX
|