LibreOffice Module sd (master) 1
Public Member Functions | List of all members
sd::IBluetoothSocket Struct Referenceabstract

Interface for bluetooth data io. More...

#include <IBluetoothSocket.hxx>

Inheritance diagram for sd::IBluetoothSocket:
[legend]

Public Member Functions

 IBluetoothSocket ()=default
 
virtual ~IBluetoothSocket ()
 
 IBluetoothSocket (const IBluetoothSocket &)=delete
 
IBluetoothSocketoperator= (const IBluetoothSocket &)=delete
 
virtual sal_Int32 readLine (OString &aLine)=0
 Blocks until a line is read. More...
 
virtual sal_Int32 write (const void *pBuffer, sal_uInt32 n)=0
 Write a number of bytes. More...
 
virtual void close ()
 

Detailed Description

Interface for bluetooth data io.

Definition at line 18 of file IBluetoothSocket.hxx.

Constructor & Destructor Documentation

◆ IBluetoothSocket() [1/2]

sd::IBluetoothSocket::IBluetoothSocket ( )
default

◆ ~IBluetoothSocket()

virtual sd::IBluetoothSocket::~IBluetoothSocket ( )
inlinevirtual

Definition at line 21 of file IBluetoothSocket.hxx.

◆ IBluetoothSocket() [2/2]

sd::IBluetoothSocket::IBluetoothSocket ( const IBluetoothSocket )
delete

Member Function Documentation

◆ close()

virtual void sd::IBluetoothSocket::close ( )
inlinevirtual

Reimplemented in sd::BufferedStreamSocket.

Definition at line 38 of file IBluetoothSocket.hxx.

◆ operator=()

IBluetoothSocket & sd::IBluetoothSocket::operator= ( const IBluetoothSocket )
delete

◆ readLine()

virtual sal_Int32 sd::IBluetoothSocket::readLine ( OString &  aLine)
pure virtual

Blocks until a line is read.

Returns
whatever the last call of recv returned, i.e. 0 or less if there was a problem in communications.

Implemented in sd::BufferedStreamSocket, and sd::OSXBluetoothWrapper.

◆ write()

virtual sal_Int32 sd::IBluetoothSocket::write ( const void *  pBuffer,
sal_uInt32  n 
)
pure virtual

Write a number of bytes.

Returns
number of bytes actually written

Implemented in sd::OSXBluetoothWrapper, and sd::BufferedStreamSocket.

Referenced by sd::Transmitter::run().


The documentation for this struct was generated from the following file: