tdf#123936 Formatting files in module apple_remote with clang-format
Change-Id: Ifd469bf8348c3f35222a2cfae13c66bc444ec1b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105489 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
This commit is contained in:
parent
cb0630df7f
commit
03e79e8ab5
@ -36,7 +36,8 @@
|
|||||||
/* Interacts with the Apple Remote Control HID device
|
/* Interacts with the Apple Remote Control HID device
|
||||||
The class is not thread safe
|
The class is not thread safe
|
||||||
*/
|
*/
|
||||||
@interface AppleRemote : HIDRemoteControlDevice {
|
@interface AppleRemote : HIDRemoteControlDevice
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -33,23 +33,23 @@
|
|||||||
|
|
||||||
#import <Carbon/Carbon.h>
|
#import <Carbon/Carbon.h>
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This class registers for a number of global keyboard shortcuts to simulate a remote control
|
This class registers for a number of global keyboard shortcuts to simulate a remote control
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface GlobalKeyboardDevice : RemoteControl {
|
@interface GlobalKeyboardDevice : RemoteControl
|
||||||
|
{
|
||||||
NSMutableDictionary* hotKeyRemoteEventMapping;
|
NSMutableDictionary* hotKeyRemoteEventMapping;
|
||||||
EventHandlerRef eventHandlerRef;
|
EventHandlerRef eventHandlerRef;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) mapRemoteButton: (RemoteControlEventIdentifier) remoteButtonIdentifier defaultKeycode: (unsigned int) defaultKeycode defaultModifiers: (unsigned int) defaultModifiers;
|
- (void)mapRemoteButton:(RemoteControlEventIdentifier)remoteButtonIdentifier
|
||||||
|
defaultKeycode:(unsigned int)defaultKeycode
|
||||||
- (BOOL)registerHotKeyCode: (unsigned int) keycode modifiers: (unsigned int) modifiers remoteEventIdentifier: (RemoteControlEventIdentifier) identifier;
|
defaultModifiers:(unsigned int)defaultModifiers;
|
||||||
|
|
||||||
|
|
||||||
|
- (BOOL)registerHotKeyCode:(unsigned int)keycode
|
||||||
|
modifiers:(unsigned int)modifiers
|
||||||
|
remoteEventIdentifier:(RemoteControlEventIdentifier)identifier;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -36,12 +36,13 @@
|
|||||||
/*
|
/*
|
||||||
Base class for HID based remote control devices
|
Base class for HID based remote control devices
|
||||||
*/
|
*/
|
||||||
@interface HIDRemoteControlDevice : RemoteControl {
|
@interface HIDRemoteControlDevice : RemoteControl
|
||||||
|
{
|
||||||
IOHIDDeviceInterface** hidDeviceInterface; // see IOKit/hid/IOHIDLib.h
|
IOHIDDeviceInterface** hidDeviceInterface; // see IOKit/hid/IOHIDLib.h
|
||||||
IOHIDQueueInterface** queue; // IOKit/hid/IOHIDLib.h
|
IOHIDQueueInterface** queue; // IOKit/hid/IOHIDLib.h
|
||||||
NSMutableArray* allCookies;
|
NSMutableArray* allCookies;
|
||||||
NSMutableDictionary* cookieToButtonMapping;
|
NSMutableDictionary* cookieToButtonMapping;
|
||||||
CFRunLoopSourceRef eventSource;
|
CFRunLoopSourceRef eventSource;
|
||||||
|
|
||||||
BOOL fixSecureEventInputBug;
|
BOOL fixSecureEventInputBug;
|
||||||
BOOL openInExclusiveMode;
|
BOOL openInExclusiveMode;
|
||||||
@ -54,15 +55,15 @@
|
|||||||
// may already be received which are put on a backlog. As soon as your main thread
|
// may already be received which are put on a backlog. As soon as your main thread
|
||||||
// has some spare time this backlog is processed and may flood your delegate with calls.
|
// has some spare time this backlog is processed and may flood your delegate with calls.
|
||||||
// Backlog processing is turned off by default.
|
// Backlog processing is turned off by default.
|
||||||
- (BOOL) processesBacklog;
|
- (BOOL)processesBacklog;
|
||||||
- (void) setProcessesBacklog: (BOOL) value;
|
- (void)setProcessesBacklog:(BOOL)value;
|
||||||
|
|
||||||
// methods that should be overwritten by subclasses
|
// methods that should be overwritten by subclasses
|
||||||
- (void) setCookieMappingInDictionary: (NSMutableDictionary*) cookieToButtonMapping;
|
- (void)setCookieMappingInDictionary:(NSMutableDictionary*)cookieToButtonMapping;
|
||||||
|
|
||||||
- (void) sendRemoteButtonEvent: (RemoteControlEventIdentifier) event pressedDown: (BOOL) pressedDown;
|
- (void)sendRemoteButtonEvent:(RemoteControlEventIdentifier)event pressedDown:(BOOL)pressedDown;
|
||||||
|
|
||||||
+ (BOOL) isRemoteAvailable;
|
+ (BOOL)isRemoteAvailable;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@
|
|||||||
/* Interacts with the Keyspan FrontRow Remote Control HID device
|
/* Interacts with the Keyspan FrontRow Remote Control HID device
|
||||||
The class is not thread safe
|
The class is not thread safe
|
||||||
*/
|
*/
|
||||||
@interface KeyspanFrontRowControl : HIDRemoteControlDevice {
|
@interface KeyspanFrontRowControl : HIDRemoteControlDevice
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -29,14 +29,14 @@
|
|||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#import <apple_remote/RemoteControl.h>
|
#import <apple_remote/RemoteControl.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
A behavior that adds multiclick and hold events on top of a device.
|
A behavior that adds multiclick and hold events on top of a device.
|
||||||
Events are generated and send to a delegate
|
Events are generated and send to a delegate
|
||||||
*/
|
*/
|
||||||
@interface MultiClickRemoteBehavior : NSObject {
|
@interface MultiClickRemoteBehavior : NSObject
|
||||||
|
{
|
||||||
id delegate;
|
id delegate;
|
||||||
|
|
||||||
// state for simulating plus/minus hold
|
// state for simulating plus/minus hold
|
||||||
@ -53,17 +53,17 @@
|
|||||||
unsigned int eventClickCount;
|
unsigned int eventClickCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) init;
|
- (id)init;
|
||||||
|
|
||||||
// Delegates are not retained
|
// Delegates are not retained
|
||||||
- (void) setDelegate: (id) delegate;
|
- (void)setDelegate:(id)delegate;
|
||||||
- (id) delegate;
|
- (id)delegate;
|
||||||
|
|
||||||
// Simulating hold events does deactivate sending of individual requests for pressed down/released.
|
// Simulating hold events does deactivate sending of individual requests for pressed down/released.
|
||||||
// Instead special hold events are being triggered when the user is pressing and holding a button for a small period.
|
// Instead special hold events are being triggered when the user is pressing and holding a button for a small period.
|
||||||
// Simulation is activated only for those buttons and remote control that do not have a separate event already
|
// Simulation is activated only for those buttons and remote control that do not have a separate event already
|
||||||
- (BOOL) simulateHoldEvent;
|
- (BOOL)simulateHoldEvent;
|
||||||
- (void) setSimulateHoldEvent: (BOOL) value;
|
- (void)setSimulateHoldEvent:(BOOL)value;
|
||||||
|
|
||||||
// click counting makes it possible to recognize if the user has pressed a button repeatedly
|
// click counting makes it possible to recognize if the user has pressed a button repeatedly
|
||||||
// click counting does delay each event as it has to wait if there is another event (second click)
|
// click counting does delay each event as it has to wait if there is another event (second click)
|
||||||
@ -71,24 +71,26 @@
|
|||||||
// of the user and the call of your delegate method
|
// of the user and the call of your delegate method
|
||||||
// click counting can be enabled individually for specific buttons. Use the property clickCountEnableButtons to
|
// click counting can be enabled individually for specific buttons. Use the property clickCountEnableButtons to
|
||||||
// set the buttons for which click counting shall be enabled
|
// set the buttons for which click counting shall be enabled
|
||||||
- (BOOL) clickCountingEnabled;
|
- (BOOL)clickCountingEnabled;
|
||||||
- (void) setClickCountingEnabled: (BOOL) value;
|
- (void)setClickCountingEnabled:(BOOL)value;
|
||||||
|
|
||||||
- (unsigned int) clickCountEnabledButtons;
|
- (unsigned int)clickCountEnabledButtons;
|
||||||
- (void) setClickCountEnabledButtons: (unsigned int)value;
|
- (void)setClickCountEnabledButtons:(unsigned int)value;
|
||||||
|
|
||||||
// the maximum time difference till which clicks are recognized as multi clicks
|
// the maximum time difference till which clicks are recognized as multi clicks
|
||||||
- (NSTimeInterval) maximumClickCountTimeDifference;
|
- (NSTimeInterval)maximumClickCountTimeDifference;
|
||||||
- (void) setMaximumClickCountTimeDifference: (NSTimeInterval) timeDiff;
|
- (void)setMaximumClickCountTimeDifference:(NSTimeInterval)timeDiff;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Method definitions for the delegate of the MultiClickRemoteBehavior class
|
* Method definitions for the delegate of the MultiClickRemoteBehavior class
|
||||||
*/
|
*/
|
||||||
@interface NSObject(MultiClickRemoteBehaviorDelegate)
|
@interface NSObject (MultiClickRemoteBehaviorDelegate)
|
||||||
|
|
||||||
- (void) remoteButton: (RemoteControlEventIdentifier)buttonIdentifier pressedDown: (BOOL) pressedDown clickCount: (unsigned int) count;
|
- (void)remoteButton:(RemoteControlEventIdentifier)buttonIdentifier
|
||||||
|
pressedDown:(BOOL)pressedDown
|
||||||
|
clickCount:(unsigned int)count;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -31,12 +31,13 @@
|
|||||||
|
|
||||||
#import <apple_remote/RemoteControl.h>
|
#import <apple_remote/RemoteControl.h>
|
||||||
|
|
||||||
@interface RemoteControlContainer : RemoteControl {
|
@interface RemoteControlContainer : RemoteControl
|
||||||
|
{
|
||||||
NSMutableArray* remoteControls;
|
NSMutableArray* remoteControls;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) instantiateAndAddRemoteControlDeviceWithClass: (Class) clazz;
|
- (BOOL)instantiateAndAddRemoteControlDeviceWithClass:(Class)clazz;
|
||||||
- (unsigned int) count;
|
- (unsigned int)count;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -132,12 +132,6 @@ accessibility/source/standard/vclxaccessibletextfield.cxx
|
|||||||
accessibility/source/standard/vclxaccessibletoolbox.cxx
|
accessibility/source/standard/vclxaccessibletoolbox.cxx
|
||||||
accessibility/source/standard/vclxaccessibletoolboxitem.cxx
|
accessibility/source/standard/vclxaccessibletoolboxitem.cxx
|
||||||
animations/source/animcore/animcore.cxx
|
animations/source/animcore/animcore.cxx
|
||||||
apple_remote/source/AppleRemote.h
|
|
||||||
apple_remote/source/GlobalKeyboardDevice.h
|
|
||||||
apple_remote/source/HIDRemoteControlDevice.h
|
|
||||||
apple_remote/source/KeyspanFrontRowControl.h
|
|
||||||
apple_remote/source/MultiClickRemoteBehavior.h
|
|
||||||
apple_remote/source/RemoteControlContainer.h
|
|
||||||
avmedia/inc/helpids.h
|
avmedia/inc/helpids.h
|
||||||
avmedia/inc/mediacontrol.hxx
|
avmedia/inc/mediacontrol.hxx
|
||||||
avmedia/source/avmediadummy.cxx
|
avmedia/source/avmediadummy.cxx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user