2012-08-20 11:18:35 +02: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/.
|
|
|
|
*/
|
|
|
|
#ifndef _SD_IMPRESSREMOTE_BLUETOOTHSERVER_HXX
|
|
|
|
#define _SD_IMPRESSREMOTE_BLUETOOTHSERVER_HXX
|
|
|
|
|
|
|
|
#include <salhelper/thread.hxx>
|
2012-08-22 12:44:42 +02:00
|
|
|
#include <vector>
|
2012-08-20 11:18:35 +02:00
|
|
|
|
|
|
|
namespace sd
|
|
|
|
{
|
2012-08-22 12:44:42 +02:00
|
|
|
class Communicator;
|
|
|
|
|
2012-08-20 11:18:35 +02:00
|
|
|
class BluetoothServer:
|
|
|
|
public salhelper::Thread
|
|
|
|
{
|
|
|
|
public:
|
2012-08-22 12:44:42 +02:00
|
|
|
static void setup( std::vector<Communicator*>* pCommunicators );
|
2012-09-18 11:16:45 +02:00
|
|
|
|
|
|
|
bool isDiscoverable();
|
|
|
|
void setDiscoverable( bool aDiscoverable );
|
2012-08-20 11:18:35 +02:00
|
|
|
private:
|
2012-08-22 12:44:42 +02:00
|
|
|
BluetoothServer( std::vector<Communicator*>* pCommunicators );
|
2012-08-20 11:18:35 +02:00
|
|
|
~BluetoothServer();
|
|
|
|
static BluetoothServer *spServer;
|
|
|
|
|
2012-09-05 11:50:54 +02:00
|
|
|
void execute(); // salhelper::Thread
|
2012-08-22 12:44:42 +02:00
|
|
|
std::vector<Communicator*>* mpCommunicators;
|
2012-09-05 11:50:54 +02:00
|
|
|
|
2012-08-20 11:18:35 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _SD_IMPRESSREMOTE_BLUETOOTHSERVER_HXX
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|