C# Class Nexus.Client.ModManagement.ModManager.AddModQueue

A list of mods that are to be added to the mod manager.
Inheritance: IDisposable
Datei anzeigen Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
ConfirmFileOverwrite bool
ModAdder_TaskEnded void
ResumeQueued void

Public Methods

Method Description
AddMod ( Uri p_uriPath, ConfirmOverwriteCallback p_cocConfirmOverwrite ) : IBackgroundTask

Adds the specified mod to the queue.

The specified mod is downloaded, and then added to the mod manager.

AddModQueue ( IEnvironmentInfo p_eifEnvironmentInfo, ModManager p_mmgModManager ) : System

A sipmle constructor that initializes that object with the required dependencies.

Dispose ( ) : void

Terminates all running tasks.

After being disposed, further interaction with the object is undefined.

LoadQueuedMods ( ) : void

Loads the list of mods that are queued to be added to the mod manager.

Private Methods

Method Description
ConfirmFileOverwrite ( string p_strOldFilePath, string &p_strNewFilePath ) : bool

The callback that confirms a file overwrite.

ModAdder_TaskEnded ( object sender, TaskEndedEventArgs e ) : void

Handles the IBackgroundTask.TaskEnded event of the mod adding task.

This retrieves the paths of the added mods.

ResumeQueued ( ) : void

Resumes the queued running tasks.

Resumes the queued running tasks.

Method Details

AddMod() public method

Adds the specified mod to the queue.
The specified mod is downloaded, and then added to the mod manager.
public AddMod ( Uri p_uriPath, ConfirmOverwriteCallback p_cocConfirmOverwrite ) : IBackgroundTask
p_uriPath System.Uri The URL of the mod to add to the manager.
p_cocConfirmOverwrite ConfirmOverwriteCallback The delegate to call to resolve conflicts with existing files.
return IBackgroundTask

AddModQueue() public method

A sipmle constructor that initializes that object with the required dependencies.
public AddModQueue ( IEnvironmentInfo p_eifEnvironmentInfo, ModManager p_mmgModManager ) : System
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
p_mmgModManager ModManager The mod manager for which we are queing mods to be added.
return System

Dispose() public method

Terminates all running tasks.
After being disposed, further interaction with the object is undefined.
public Dispose ( ) : void
return void

LoadQueuedMods() public method

Loads the list of mods that are queued to be added to the mod manager.
public LoadQueuedMods ( ) : void
return void