C# Class Notpod.StandardSynchronizer

Standard Synchronizer. Implementation of ISynchronizer. Has a simple progressbar UI.
Inheritance: ISynchronizer
Datei anzeigen Open project: notpod/Notpod-1.x Class Usage Examples

Public Methods

Method Description
StandardSynchronizer ( ) : System

Create a new instance of StandardSynchronizer.

SynchronizeDevice ( IITUserPlaylist playlist, string drive, Notpod.Configuration12.Device device ) : void

Notpod.ISynchronizer#SynchronizeDevice(IITUserPlaylist, string, Device)

Protected Methods

Method Description
OnSynchronizeCancelled ( ) : void

Event dispatcher for SynchronizeCancelled.

OnSynchronizeComplete ( ) : void

Event dispatcher for SynchronizeComplete.

OnSynchronizeError ( Notpod.Configuration12.Device device, string message ) : void

Event dispatcher for SynchronizeError events.

Private Methods

Method Description
CheckAndCreateFolders ( string trackPath, string drive, Notpod.Configuration12.Device device ) : void

Check if the necessary folders for the given track exists. If not, create them.

CheckAndRemoveFolders ( string trackPath, string drive, Notpod.Configuration12.Device device ) : void

Check if the folder for the current artist/album is empty. If it is, then remove it.

Method Details

OnSynchronizeCancelled() protected method

Event dispatcher for SynchronizeCancelled.
protected OnSynchronizeCancelled ( ) : void
return void

OnSynchronizeComplete() protected method

Event dispatcher for SynchronizeComplete.
protected OnSynchronizeComplete ( ) : void
return void

OnSynchronizeError() protected method

Event dispatcher for SynchronizeError events.
protected OnSynchronizeError ( Notpod.Configuration12.Device device, string message ) : void
device Notpod.Configuration12.Device The device that failed.
message string An error message.
return void

StandardSynchronizer() public method

Create a new instance of StandardSynchronizer.
public StandardSynchronizer ( ) : System
return System

SynchronizeDevice() public method

Notpod.ISynchronizer#SynchronizeDevice(IITUserPlaylist, string, Device)
public SynchronizeDevice ( IITUserPlaylist playlist, string drive, Notpod.Configuration12.Device device ) : void
playlist IITUserPlaylist
drive string
device Notpod.Configuration12.Device
return void