fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / remotecontrol / OSXBluetoothWrapper.hxx
blobd744a60cff814fd2401748965ac9750f66de55bf
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 */
10 #ifndef _SD_IMPRESSREMOTE_OSXBLUETOOTHWRAPPER_HXX
11 #define _SD_IMPRESSREMOTE_OSXBLUETOOTHWRAPPER_HXX
13 #include <rtl/string.hxx>
14 #include <osl/conditn.hxx>
15 #include <osl/mutex.hxx>
16 #include <vector>
18 #include "IBluetoothSocket.hxx"
20 namespace sd
22 class OSXBluetoothWrapper : public IBluetoothSocket
24 IOBluetoothRFCOMMChannel* mpChannel;
25 int mnMTU;
26 osl::Condition mHaveBytes;
27 osl::Mutex mMutex;
28 std::vector<char> mBuffer;
30 public:
31 OSXBluetoothWrapper( IOBluetoothRFCOMMChannel* channel );
32 virtual sal_Int32 readLine( OString& aLine );
33 virtual sal_Int32 write( const void* pBuffer, sal_uInt32 len );
34 void appendData(void* pBuffer, size_t len );
35 void channelClosed();
39 #endif // _SD_IMPRESSREMOTE_OSXBLUETOOTHWRAPPER_HXX
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */