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/.
10 #ifndef INCLUDED_SD_SOURCE_UI_REMOTECONTROL_OSXBLUETOOTH_H
11 #define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_OSXBLUETOOTH_H
13 #import <IOBluetooth/objc/IOBluetoothRFCOMMChannel.h>
15 #include "IBluetoothSocket.hxx"
16 #include "Communicator.hxx"
17 #include "OSXBluetoothWrapper.hxx"
19 @interface ChannelDelegate
: NSObject
<IOBluetoothRFCOMMChannelDelegate
>
21 sd::Communicator
* pCommunicator
;
22 sd::OSXBluetoothWrapper
* pSocket
;
25 - (id
) initWithCommunicatorAndSocket
:(sd::Communicator
*)communicator socket
:(sd::OSXBluetoothWrapper
*)socket
;
26 - (void) rfcommChannelData
:(IOBluetoothRFCOMMChannel
*)rfcommChannel data
:(void *)dataPointer length
:(size_t)dataLength
;
27 - (void) rfcommChannelClosed
:(IOBluetoothRFCOMMChannel
*)rfcommChannel
;
31 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_OSXBLUETOOTH_H
33 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */