C# Class Nexus.Client.ActivateModsMonitoring.ActivateModsMonitor

This monitors the status of activities.
Inheritance: INotifyPropertyChanged
ファイルを表示 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
ActivateModsMonitor ( ) : System

The default constructor.

AddActivity ( IBackgroundTaskSet p_bstTask ) : void

Adds a task to the monitor.

CanRemove ( ModInstaller p_tskTask ) : bool

Determines if the given BasicInstallTask can be removed from the monitor.

CanRemoveQueued ( ModInstaller p_tskTask ) : bool

Determines if the given BasicInstallTask queued can be removed from the monitor.

CanRemoveQueuedUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : bool

Determines if the given uninstalling BasicInstallTask queued can be removed from the monitor.

CanRemoveQueuedUpg ( ModUpgrader p_tskTask ) : bool

Determines if the given upgrading BasicInstallTask queued can be removed from the monitor.

CanRemoveSelected ( ModInstaller p_tskTask ) : bool

Determines if the given BasicInstallTask selected can be removed from the monitor.

CanRemoveSelectedUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : bool

Determines if the given uninstalling BasicInstallTask selected can be removed from the monitor.

CanRemoveSelectedUpg ( ModUpgrader p_tskTask ) : bool

Determines if the given upgrading BasicInstallTask selected can be removed from the monitor.

CanRemoveUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : bool

Determines if the given BasicInstallTask can be removed from the monitor.

CanRemoveUpg ( ModUpgrader p_tskTask ) : bool

Determines if the given BasicInstallTask can be removed from the monitor.

RemoveQueuedTask ( ModInstaller p_tskTask ) : void

Removes a task from the monitor.

Tasks can only be removed if they are not running.

RemoveQueuedTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void

Removes an uninstalling task from the monitor.

Tasks can only be removed if they are not running.

RemoveQueuedTaskUpg ( ModUpgrader p_tskTask ) : void

Removes an upgrading task from the monitor.

Tasks can only be removed if they are not running.

RemoveTask ( ModInstaller p_tskTask ) : void

Removes a task from the monitor.

Tasks can only be removed if they are not running.

RemoveTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void

Removes an uninstalling task from the monitor.

Tasks can only be removed if they are not running.

RemoveTaskUpg ( ModUpgrader p_tskTask ) : void

Removes an upgrading task from the monitor.

Tasks can only be removed if they are not running.

RemoveUselessTask ( ModInstaller p_tskTask ) : void

Removes a useless task (the task is already in queue or running).

RemoveUselessTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void

Removes a useless uninstalling task (the task is already in queue or running).

RemoveUselessTaskUpg ( ModUpgrader p_tskTask ) : void

Removes a useless upgrading task (the task is already in queue or running).

Protected Methods

Method Description
OnPropertyChanged ( string name ) : void

Raises the INotifyPropertyChanged.PropertyChanged event of the project.

Method Details

ActivateModsMonitor() public method

The default constructor.
public ActivateModsMonitor ( ) : System
return System

AddActivity() public method

Adds a task to the monitor.
public AddActivity ( IBackgroundTaskSet p_bstTask ) : void
p_bstTask IBackgroundTaskSet
return void

CanRemove() public method

Determines if the given BasicInstallTask can be removed from the monitor.
public CanRemove ( ModInstaller p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModInstaller The task for which it is to be determined /// if it can be removed from the monitor.
return bool

CanRemoveQueued() public method

Determines if the given BasicInstallTask queued can be removed from the monitor.
public CanRemoveQueued ( ModInstaller p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModInstaller The task for which it is to be determined /// if it can be removed from the monitor.
return bool

CanRemoveQueuedUn() public method

Determines if the given uninstalling BasicInstallTask queued can be removed from the monitor.
public CanRemoveQueuedUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModUninstaller The task for which it is to be determined /// if it can be removed from the monitor.
return bool

CanRemoveQueuedUpg() public method

Determines if the given upgrading BasicInstallTask queued can be removed from the monitor.
public CanRemoveQueuedUpg ( ModUpgrader p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModUpgrader The task for which it is to be determined /// if it can be removed from the monitor.
return bool

CanRemoveSelected() public method

Determines if the given BasicInstallTask selected can be removed from the monitor.
public CanRemoveSelected ( ModInstaller p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModInstaller The task for which it is to be determined /// if it can be removed from the monitor.
return bool

CanRemoveSelectedUn() public method

Determines if the given uninstalling BasicInstallTask selected can be removed from the monitor.
public CanRemoveSelectedUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModUninstaller The task for which it is to be determined /// if it can be removed from the monitor.
return bool

CanRemoveSelectedUpg() public method

Determines if the given upgrading BasicInstallTask selected can be removed from the monitor.
public CanRemoveSelectedUpg ( ModUpgrader p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModUpgrader The task for which it is to be determined /// if it can be removed from the monitor.
return bool

CanRemoveUn() public method

Determines if the given BasicInstallTask can be removed from the monitor.
public CanRemoveUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModUninstaller The task for which it is to be determined /// if it can be removed from the monitor.
return bool

CanRemoveUpg() public method

Determines if the given BasicInstallTask can be removed from the monitor.
public CanRemoveUpg ( ModUpgrader p_tskTask ) : bool
p_tskTask Nexus.Client.ModManagement.ModUpgrader The task for which it is to be determined /// if it can be removed from the monitor.
return bool

OnPropertyChanged() protected method

Raises the INotifyPropertyChanged.PropertyChanged event of the project.
protected OnPropertyChanged ( string name ) : void
name string The property name.
return void

RemoveQueuedTask() public method

Removes a task from the monitor.
Tasks can only be removed if they are not running.
public RemoveQueuedTask ( ModInstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModInstaller The task to remove.
return void

RemoveQueuedTaskUn() public method

Removes an uninstalling task from the monitor.
Tasks can only be removed if they are not running.
public RemoveQueuedTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUninstaller The task to remove.
return void

RemoveQueuedTaskUpg() public method

Removes an upgrading task from the monitor.
Tasks can only be removed if they are not running.
public RemoveQueuedTaskUpg ( ModUpgrader p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUpgrader The task to remove.
return void

RemoveTask() public method

Removes a task from the monitor.
Tasks can only be removed if they are not running.
public RemoveTask ( ModInstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModInstaller The task to remove.
return void

RemoveTaskUn() public method

Removes an uninstalling task from the monitor.
Tasks can only be removed if they are not running.
public RemoveTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUninstaller The task to remove.
return void

RemoveTaskUpg() public method

Removes an upgrading task from the monitor.
Tasks can only be removed if they are not running.
public RemoveTaskUpg ( ModUpgrader p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUpgrader The task to remove.
return void

RemoveUselessTask() public method

Removes a useless task (the task is already in queue or running).
public RemoveUselessTask ( ModInstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModInstaller
return void

RemoveUselessTaskUn() public method

Removes a useless uninstalling task (the task is already in queue or running).
public RemoveUselessTaskUn ( Nexus.Client.ModManagement.ModUninstaller p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUninstaller
return void

RemoveUselessTaskUpg() public method

Removes a useless upgrading task (the task is already in queue or running).
public RemoveUselessTaskUpg ( ModUpgrader p_tskTask ) : void
p_tskTask Nexus.Client.ModManagement.ModUpgrader
return void