LibreOffice Module sd (master) 1
Public Member Functions | Private Attributes | List of all members
sd::OSXBluetoothWrapper Class Reference

#include <OSXBluetoothWrapper.hxx>

Inheritance diagram for sd::OSXBluetoothWrapper:
[legend]
Collaboration diagram for sd::OSXBluetoothWrapper:
[legend]

Public Member Functions

 OSXBluetoothWrapper (IOBluetoothRFCOMMChannel *channel)
 
virtual sal_Int32 readLine (OString &aLine) override
 Blocks until a line is read. More...
 
virtual sal_Int32 write (const void *pBuffer, sal_uInt32 len) override
 Write a number of bytes. More...
 
void appendData (void *pBuffer, size_t len)
 
void channelClosed ()
 
- Public Member Functions inherited from sd::IBluetoothSocket
 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 ()
 

Private Attributes

IOBluetoothRFCOMMChannel * mpChannel
 
int mnMTU
 
osl::Condition mHaveBytes
 
osl::Mutex mMutex
 
std::vector< char > mBuffer
 

Detailed Description

Definition at line 21 of file OSXBluetoothWrapper.hxx.

Constructor & Destructor Documentation

◆ OSXBluetoothWrapper()

sd::OSXBluetoothWrapper::OSXBluetoothWrapper ( IOBluetoothRFCOMMChannel *  channel)

Member Function Documentation

◆ appendData()

void sd::OSXBluetoothWrapper::appendData ( void *  pBuffer,
size_t  len 
)

◆ channelClosed()

void sd::OSXBluetoothWrapper::channelClosed ( )

◆ readLine()

virtual sal_Int32 sd::OSXBluetoothWrapper::readLine ( OString &  aLine)
overridevirtual

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.

Implements sd::IBluetoothSocket.

◆ write()

virtual sal_Int32 sd::OSXBluetoothWrapper::write ( const void *  pBuffer,
sal_uInt32  n 
)
overridevirtual

Write a number of bytes.

Returns
number of bytes actually written

Implements sd::IBluetoothSocket.

Member Data Documentation

◆ mBuffer

std::vector<char> sd::OSXBluetoothWrapper::mBuffer
private

Definition at line 27 of file OSXBluetoothWrapper.hxx.

◆ mHaveBytes

osl::Condition sd::OSXBluetoothWrapper::mHaveBytes
private

Definition at line 25 of file OSXBluetoothWrapper.hxx.

◆ mMutex

osl::Mutex sd::OSXBluetoothWrapper::mMutex
private

Definition at line 26 of file OSXBluetoothWrapper.hxx.

◆ mnMTU

int sd::OSXBluetoothWrapper::mnMTU
private

Definition at line 24 of file OSXBluetoothWrapper.hxx.

◆ mpChannel

IOBluetoothRFCOMMChannel* sd::OSXBluetoothWrapper::mpChannel
private

Definition at line 23 of file OSXBluetoothWrapper.hxx.


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