LibreOffice Module sd (master) 1
IBluetoothSocket.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#pragma once
11
12#include <rtl/string.hxx>
13
14namespace sd
15{
19 {
20 IBluetoothSocket() = default;
21 virtual ~IBluetoothSocket() {}
24
30 virtual sal_Int32 readLine(OString& aLine) = 0;
31
36 virtual sal_Int32 write( const void* pBuffer, sal_uInt32 n ) = 0;
37
38 virtual void close() {};
39 };
40}
41
42/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Interface for bluetooth data io.
IBluetoothSocket()=default
virtual sal_Int32 write(const void *pBuffer, sal_uInt32 n)=0
Write a number of bytes.
virtual sal_Int32 readLine(OString &aLine)=0
Blocks until a line is read.
IBluetoothSocket(const IBluetoothSocket &)=delete
IBluetoothSocket & operator=(const IBluetoothSocket &)=delete