bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / remotecontrol / OSXBluetoothWrapper.hxx
blob1ccc24298ef315c1e0153fd6124aa90101635016
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 INCLUDED_SD_SOURCE_UI_REMOTECONTROL_OSXBLUETOOTHWRAPPER_HXX
11 #define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_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 ) SAL_OVERRIDE;
33 virtual sal_Int32 write( const void* pBuffer, sal_uInt32 len ) SAL_OVERRIDE;
34 void appendData(void* pBuffer, size_t len );
35 void channelClosed();
39 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_OSXBLUETOOTHWRAPPER_HXX
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */