The MPfm.Library assembly contains classes to read and write audio file and playlist file metadata to a SQLite database. It also contains a Gateway pattern class for simplifying CRUD operations on a SQLite database.
This static class converts objects from different libraries into DataTables and back into objects.
Defines a folder containing audio files.
Object representing an audio file playback history event.
The Library class is a cache of the song library. It can update the library in a background worker. It uses the DataAccess class to access the MPfm database.
The MPfmGateway class implements the SQLiteGateway class. It acts as a facade to select, insert, update and delete data from the MPfm database.
Defines a custom exception for the Update Library background process.
Defines the data structure for the Update Library background process progress event.
Object representing a playlist file.
Object representing a setting name/value pair.
The SQLiteGateway class is a data adapter class which makes it easier to select, insert, update and delete data from the database. Notes: System.Data.SQLite doesn't like: - SingleOrDefault -- replaced with FirstOrDefault. - compare database varchar to Guid.ToString() -- need to cast guid into string before using value in LIN
Arguments for the background worker that updates the library.
Defines the data used with the OnProcessDone event. Related to the UpdateLibrary class.
This Exception class is raised when the audio file metadata scanning has failed. Related to the UpdateLibrary class.
Delegate for the OnUpdateLibraryFinished event.
Defines the data structure for the Update Library finished event.
Defines the modes of the Update Library process.
Delegate for the OnUpdateLibraryProgress event.
Defines the progress data used with the OnProcessData event. Also used in the IObservable list. Related to the UpdateLibrary class.
Defines the data for a song passed in the Update Library background progress data structure.
Defines the current step in the Update Library process.