bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / remotecontrol / IBluetoothSocket.hxx
blobc229f92486377f9915c06c0418f7760f4e0945ac
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_IBLUETOOTHSOCKET_HXX
11 #define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_IBLUETOOTHSOCKET_HXX
13 #include <rtl/string.hxx>
14 #include <boost/noncopyable.hpp>
16 namespace sd
18 /** Interface for bluetooth data io
20 struct IBluetoothSocket : private boost::noncopyable
22 virtual ~IBluetoothSocket() {}
24 /** Blocks until a line is read.
26 @return whatever the last call of recv returned, i.e. 0 or less
27 if there was a problem in communications.
29 virtual sal_Int32 readLine(OString& aLine) = 0;
31 /** Write a number of bytes
33 @return number of bytes actually written
35 virtual sal_Int32 write( const void* pBuffer, sal_uInt32 n ) = 0;
37 virtual void close() {};
41 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_IBLUETOOTHSOCKET_HXX
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */