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

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

Private Properties

Свойство Type Description
ConfirmFileOverwrite bool
ModAdder_TaskEnded void
ResumeQueued void

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat IBackgroundTask

AddModQueue() public méthode

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.
Résultat System

Dispose() public méthode

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

LoadQueuedMods() public méthode

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