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
|
||||
The class is not thread safe
|
||||
*/
|
||||
@interface AppleRemote : HIDRemoteControlDevice {
|
||||
@interface AppleRemote : HIDRemoteControlDevice
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -33,23 +33,23 @@
|
||||
|
||||
#import <Carbon/Carbon.h>
|
||||
|
||||
|
||||
/*
|
||||
This class registers for a number of global keyboard shortcuts to simulate a remote control
|
||||
*/
|
||||
|
||||
@interface GlobalKeyboardDevice : RemoteControl {
|
||||
|
||||
@interface GlobalKeyboardDevice : RemoteControl
|
||||
{
|
||||
NSMutableDictionary* hotKeyRemoteEventMapping;
|
||||
EventHandlerRef eventHandlerRef;
|
||||
|
||||
}
|
||||
|
||||
- (void) mapRemoteButton: (RemoteControlEventIdentifier) remoteButtonIdentifier defaultKeycode: (unsigned int) defaultKeycode defaultModifiers: (unsigned int) defaultModifiers;
|
||||
|
||||
- (BOOL)registerHotKeyCode: (unsigned int) keycode modifiers: (unsigned int) modifiers remoteEventIdentifier: (RemoteControlEventIdentifier) identifier;
|
||||
|
||||
- (void)mapRemoteButton:(RemoteControlEventIdentifier)remoteButtonIdentifier
|
||||
defaultKeycode:(unsigned int)defaultKeycode
|
||||
defaultModifiers:(unsigned int)defaultModifiers;
|
||||
|
||||
- (BOOL)registerHotKeyCode:(unsigned int)keycode
|
||||
modifiers:(unsigned int)modifiers
|
||||
remoteEventIdentifier:(RemoteControlEventIdentifier)identifier;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -36,12 +36,13 @@
|
||||
/*
|
||||
Base class for HID based remote control devices
|
||||
*/
|
||||
@interface HIDRemoteControlDevice : RemoteControl {
|
||||
@interface HIDRemoteControlDevice : RemoteControl
|
||||
{
|
||||
IOHIDDeviceInterface** hidDeviceInterface; // see IOKit/hid/IOHIDLib.h
|
||||
IOHIDQueueInterface** queue; // IOKit/hid/IOHIDLib.h
|
||||
NSMutableArray* allCookies;
|
||||
NSMutableDictionary* cookieToButtonMapping;
|
||||
CFRunLoopSourceRef eventSource;
|
||||
IOHIDQueueInterface** queue; // IOKit/hid/IOHIDLib.h
|
||||
NSMutableArray* allCookies;
|
||||
NSMutableDictionary* cookieToButtonMapping;
|
||||
CFRunLoopSourceRef eventSource;
|
||||
|
||||
BOOL fixSecureEventInputBug;
|
||||
BOOL openInExclusiveMode;
|
||||
@ -54,15 +55,15 @@
|
||||
// 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.
|
||||
// Backlog processing is turned off by default.
|
||||
- (BOOL) processesBacklog;
|
||||
- (void) setProcessesBacklog: (BOOL) value;
|
||||
- (BOOL)processesBacklog;
|
||||
- (void)setProcessesBacklog:(BOOL)value;
|
||||
|
||||
// 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
|
||||
|
||||
|
@ -36,8 +36,8 @@
|
||||
/* Interacts with the Keyspan FrontRow Remote Control HID device
|
||||
The class is not thread safe
|
||||
*/
|
||||
@interface KeyspanFrontRowControl : HIDRemoteControlDevice {
|
||||
|
||||
@interface KeyspanFrontRowControl : HIDRemoteControlDevice
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -29,14 +29,14 @@
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#import <apple_remote/RemoteControl.h>
|
||||
|
||||
/**
|
||||
A behavior that adds multiclick and hold events on top of a device.
|
||||
Events are generated and send to a delegate
|
||||
*/
|
||||
@interface MultiClickRemoteBehavior : NSObject {
|
||||
@interface MultiClickRemoteBehavior : NSObject
|
||||
{
|
||||
id delegate;
|
||||
|
||||
// state for simulating plus/minus hold
|
||||
@ -53,17 +53,17 @@
|
||||
unsigned int eventClickCount;
|
||||
}
|
||||
|
||||
- (id) init;
|
||||
- (id)init;
|
||||
|
||||
// Delegates are not retained
|
||||
- (void) setDelegate: (id) delegate;
|
||||
- (id) delegate;
|
||||
- (void)setDelegate:(id)delegate;
|
||||
- (id)delegate;
|
||||
|
||||
// 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.
|
||||
// Simulation is activated only for those buttons and remote control that do not have a separate event already
|
||||
- (BOOL) simulateHoldEvent;
|
||||
- (void) setSimulateHoldEvent: (BOOL) value;
|
||||
- (BOOL)simulateHoldEvent;
|
||||
- (void)setSimulateHoldEvent:(BOOL)value;
|
||||
|
||||
// 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)
|
||||
@ -71,24 +71,26 @@
|
||||
// of the user and the call of your delegate method
|
||||
// click counting can be enabled individually for specific buttons. Use the property clickCountEnableButtons to
|
||||
// set the buttons for which click counting shall be enabled
|
||||
- (BOOL) clickCountingEnabled;
|
||||
- (void) setClickCountingEnabled: (BOOL) value;
|
||||
- (BOOL)clickCountingEnabled;
|
||||
- (void)setClickCountingEnabled:(BOOL)value;
|
||||
|
||||
- (unsigned int) clickCountEnabledButtons;
|
||||
- (void) setClickCountEnabledButtons: (unsigned int)value;
|
||||
- (unsigned int)clickCountEnabledButtons;
|
||||
- (void)setClickCountEnabledButtons:(unsigned int)value;
|
||||
|
||||
// the maximum time difference till which clicks are recognized as multi clicks
|
||||
- (NSTimeInterval) maximumClickCountTimeDifference;
|
||||
- (void) setMaximumClickCountTimeDifference: (NSTimeInterval) timeDiff;
|
||||
- (NSTimeInterval)maximumClickCountTimeDifference;
|
||||
- (void)setMaximumClickCountTimeDifference:(NSTimeInterval)timeDiff;
|
||||
|
||||
@end
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
||||
|
@ -31,12 +31,13 @@
|
||||
|
||||
#import <apple_remote/RemoteControl.h>
|
||||
|
||||
@interface RemoteControlContainer : RemoteControl {
|
||||
@interface RemoteControlContainer : RemoteControl
|
||||
{
|
||||
NSMutableArray* remoteControls;
|
||||
}
|
||||
|
||||
- (BOOL) instantiateAndAddRemoteControlDeviceWithClass: (Class) clazz;
|
||||
- (unsigned int) count;
|
||||
- (BOOL)instantiateAndAddRemoteControlDeviceWithClass:(Class)clazz;
|
||||
- (unsigned int)count;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -132,12 +132,6 @@ accessibility/source/standard/vclxaccessibletextfield.cxx
|
||||
accessibility/source/standard/vclxaccessibletoolbox.cxx
|
||||
accessibility/source/standard/vclxaccessibletoolboxitem.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/mediacontrol.hxx
|
||||
avmedia/source/avmediadummy.cxx
|
||||
|
Loading…
x
Reference in New Issue
Block a user