1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <rtl/string.hxx>
13 #include <osl/conditn.hxx>
14 #include <osl/mutex.hxx>
17 #include "IBluetoothSocket.hxx"
21 class OSXBluetoothWrapper
: public IBluetoothSocket
23 IOBluetoothRFCOMMChannel
* mpChannel
;
25 osl::Condition mHaveBytes
;
27 std::vector
<char> mBuffer
;
30 OSXBluetoothWrapper( IOBluetoothRFCOMMChannel
* channel
);
31 virtual sal_Int32
readLine( OString
& aLine
) override
;
32 virtual sal_Int32
write( const void* pBuffer
, sal_uInt32 len
) override
;
33 void appendData(void* pBuffer
, size_t len
);
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */