MPfm: Music Player for Musicians - Developer Documentation - 0.6.0.0
MPfm.Library Namespace
NamespacesMPfm.Library
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.
Declaration Syntax
C#Visual Basic
namespace MPfm.Library
Namespace MPfm.Library
Types
All TypesClassesEnumerationsDelegates
IconTypeDescription
ConvertLibrary
This static class converts objects from different libraries into DataTables and back into objects.

Folder
Defines a folder containing audio files.

History
Object representing an audio file playback history event.

Library
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.

MPfmGateway
The MPfmGateway class implements the SQLiteGateway class. It acts as a facade to select, insert, update and delete data from the MPfm database.

OldUpdateLibraryException
Defines a custom exception for the Update Library background process.

OldUpdateLibraryProgressData
Defines the data structure for the Update Library background process progress event.

PlaylistFile
Object representing a playlist file.

Setting
Object representing a setting name/value pair.

SQLiteGateway
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

UpdateLibraryArgument
Arguments for the background worker that updates the library.

UpdateLibraryDoneData
Defines the data used with the OnProcessDone event. Related to the UpdateLibrary class.

UpdateLibraryException
This Exception class is raised when the audio file metadata scanning has failed. Related to the UpdateLibrary class.

Library..::..UpdateLibraryFinished
Delegate for the OnUpdateLibraryFinished event.

UpdateLibraryFinishedData
Defines the data structure for the Update Library finished event.

UpdateLibraryMode
Defines the modes of the Update Library process.

Library..::..UpdateLibraryProgress
Delegate for the OnUpdateLibraryProgress event.

UpdateLibraryProgressData
Defines the progress data used with the OnProcessData event. Also used in the IObservable list. Related to the UpdateLibrary class.

UpdateLibraryProgressDataSong
Defines the data for a song passed in the Update Library background progress data structure.

UpdateLibraryStep
Defines the current step in the Update Library process.