eyeDrops  v2.3
A new approach to detecting eye blinks.
Instance Methods | Properties | List of all members
AppDelegate Class Reference

The App Delegate class. More...

#import <AppDelegate.h>

Inherits NSObject, and <NSApplicationDelegate>.

Instance Methods

(void) - updateMenuWithProfiles
 
(void) - updateMenuWithNewBluetoothStatus:
 
(void) - updateMenuWithFoundDevices:
 
(void) - updateMenuWithConnectionAttempt
 
(void) - updateMenuWithConnection:
 
(void) - updateMenuWithDisconnection:
 
(void) - updateToolTip
 
(void) - startBlur
 
(void) - stopBlur
 

Properties

NSMutableArray * windowControllers
 
NSStatusItem * statusItem
 
NSMenu * mainMenu
 
NSMenu * subMenuProfiles
 
NSMenu * subMenuDevices
 
NSMenuItem * menuItemProfiles
 
NSMenuItem * menuItemActiveProfile
 
NSMenuItem * menuItemDevices
 
NSMenuItem * menuItemActiveDevice
 
NSMenuItem * menuItemScan
 
NSRunningApplication * oldApp
 
NSString * appName
 
bool wantsBlurring
 
bool isBlurring
 

Detailed Description

The App Delegate class.

This class represents the application's delegate and takes cares of the initialization process. It also manages the menu and thus the actual application.

Author
Benjamin Thiemann
Date
2016/11/16

Method Documentation

◆ startBlur()

- (void) startBlur

This method starts the blurring.

◆ stopBlur()

- (void) stopBlur

This method stops the blurring.

◆ updateMenuWithConnection:()

- (void) updateMenuWithConnection: (CBPeripheral *)  device

This method updates the menu with a new connection.

Parameters
deviceThe connected device.

◆ updateMenuWithConnectionAttempt()

- (void) updateMenuWithConnectionAttempt

This method updates the menu with a connection attempt.

◆ updateMenuWithDisconnection:()

- (void) updateMenuWithDisconnection: (CBPeripheral *)  device

This method updates the menu with a disconnection.

Parameters
deviceThe disconnected device.

◆ updateMenuWithFoundDevices:()

- (void) updateMenuWithFoundDevices: (NSMutableArray *)  devices

This method updates the menu with new found devices.

Parameters
devicesThe new devices.

◆ updateMenuWithNewBluetoothStatus:()

- (void) updateMenuWithNewBluetoothStatus: (NSString *)  state

This method updates the menu with a new bluetooth status.

Parameters
stateThe new bluetooth state.

◆ updateMenuWithProfiles()

- (void) updateMenuWithProfiles

This method updates the menu with new profiles.

◆ updateToolTip()

- (void) updateToolTip

This method updates the application icon's tooltip.

Property Documentation

◆ appName

- (NSString*) appName
readwriteatomic

The application name.

◆ isBlurring

- (bool) isBlurring
readwriteatomic

Boolean value that indicates whether blurring currently activated.

◆ mainMenu

- (NSMenu*) mainMenu
readwritenonatomicstrong

The main menu.

◆ menuItemActiveDevice

- (NSMenuItem*) menuItemActiveDevice
readwritenonatomicstrong

The active device in the menu.

◆ menuItemActiveProfile

- (NSMenuItem*) menuItemActiveProfile
readwritenonatomicstrong

The active profile in the menu.

◆ menuItemDevices

- (NSMenuItem*) menuItemDevices
readwritenonatomicstrong

The menu item containing the submenu with all devices.

◆ menuItemProfiles

- (NSMenuItem*) menuItemProfiles
readwritenonatomicstrong

The menu item containing the submenu with all prpfiles.

◆ menuItemScan

- (NSMenuItem*) menuItemScan
readwritenonatomicstrong

The menu item containing the current scanning status.

◆ oldApp

- (NSRunningApplication*) oldApp
readwriteatomicweak

The last active application.

◆ statusItem

- (NSStatusItem*) statusItem
readwritenonatomicstrong

The menubar's status item.

◆ subMenuDevices

- (NSMenu*) subMenuDevices
readwritenonatomicstrong

The submenu containing all devices.

◆ subMenuProfiles

- (NSMenu*) subMenuProfiles
readwritenonatomicstrong

The submenu containing all profiles.

◆ wantsBlurring

- (bool) wantsBlurring
readwriteatomic

Boolean value that indicates whether blurring is desired.

◆ windowControllers

- (NSMutableArray*) windowControllers
readwriteatomicstrong

The array containing all window controllers (screens).


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