40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
/* -*- 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 <osl/thread.hxx>
|
|
#include <vector>
|
|
|
|
namespace sd
|
|
{
|
|
class Communicator;
|
|
|
|
class BluetoothServer:
|
|
public osl::Thread
|
|
{
|
|
public:
|
|
static void setup( std::vector<Communicator*>* pCommunicators );
|
|
|
|
static bool isDiscoverable();
|
|
static void setDiscoverable( bool aDiscoverable );
|
|
private:
|
|
BluetoothServer( std::vector<Communicator*>* pCommunicators );
|
|
~BluetoothServer();
|
|
static BluetoothServer *spServer;
|
|
|
|
virtual void SAL_CALL run();
|
|
std::vector<Communicator*>* mpCommunicators;
|
|
|
|
};
|
|
}
|
|
|
|
#endif // _SD_IMPRESSREMOTE_BLUETOOTHSERVER_HXX
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|