1 /* -*- Mode: ObjC; 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/.
9 #include <osl/conditn.hxx>
12 #import <IOBluetooth/objc/IOBluetoothRFCOMMChannel.h>
15 #include "OSXBluetooth.h"
17 @implementation ChannelDelegate
19 - (id) initWithCommunicatorAndSocket:(sd::Communicator*)communicator socket:(sd::OSXBluetoothWrapper*)socket
21 pCommunicator = communicator;
26 - (void) rfcommChannelData:(IOBluetoothRFCOMMChannel*)rfcommChannel data:(void *)dataPointer length:(size_t)dataLength
32 pSocket->appendData(dataPointer, dataLength);
36 - (void) rfcommChannelClosed:(IOBluetoothRFCOMMChannel*)rfcommChannel
40 SAL_INFO( "sdremote.bluetooth", "ChannelDelegate::rfcommChannelClosed()\n");
44 pSocket->channelClosed();
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */