C# Class SoundSwitch.Model.AppModel

Inheritance: IAppModel
Afficher le fichier Open project: Belphemur/SoundSwitch

Méthodes publiques

Méthode Description
CycleActiveDevice ( AudioDeviceType type ) : bool

Cycles the active device to the next device. Returns true if succesfully switched (at least as far as we can tell), returns false if could not successfully switch. Throws NoDevicesException if there are no devices configured.

InitializeMain ( ) : void

Initialize the Main class with Updater and Hotkeys

SelectDevice ( IAudioDevice device ) : bool

Add the device to the Selected device list

SetActiveDevice ( IAudioDevice device ) : bool

Attempts to set active device to the specified name

SetHotkeyCombination ( HotKeys hotkeys, AudioDeviceType deviceType ) : bool
UnselectDevice ( IAudioDevice device ) : bool

Add the device to the Selected device list

Private Methods

Méthode Description
AppModel ( ) : System
HandleHotkeyPress ( object sender, WindowsAPIAdapter e ) : void
InitUpdateChecker ( ) : void
MigrateSelectedDeviceLists ( ) : void
RegisterForRestart ( ) : void
RegisterRecovery ( ) : void
SaveState ( object state ) : int

Method Details

CycleActiveDevice() public méthode

Cycles the active device to the next device. Returns true if succesfully switched (at least as far as we can tell), returns false if could not successfully switch. Throws NoDevicesException if there are no devices configured.
public CycleActiveDevice ( AudioDeviceType type ) : bool
type AudioDeviceType
Résultat bool

InitializeMain() public méthode

Initialize the Main class with Updater and Hotkeys
public InitializeMain ( ) : void
Résultat void

SelectDevice() public méthode

Add the device to the Selected device list
public SelectDevice ( IAudioDevice device ) : bool
device IAudioDevice
Résultat bool

SetActiveDevice() public méthode

Attempts to set active device to the specified name
public SetActiveDevice ( IAudioDevice device ) : bool
device IAudioDevice
Résultat bool

SetHotkeyCombination() public méthode

public SetHotkeyCombination ( HotKeys hotkeys, AudioDeviceType deviceType ) : bool
hotkeys HotKeys
deviceType AudioDeviceType
Résultat bool

UnselectDevice() public méthode

Add the device to the Selected device list
public UnselectDevice ( IAudioDevice device ) : bool
device IAudioDevice
Résultat bool