mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
29 lines
811 B
Swift
29 lines
811 B
Swift
//
|
|
// MPDClientDelegate.swift
|
|
// Persephone
|
|
//
|
|
// Created by Daniel Barber on 2019/2/01.
|
|
// Copyright © 2019 Dan Barber. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
protocol MPDClientDelegate {
|
|
func didConnect(mpdClient: MPDClient)
|
|
func willDisconnect(mpdClient: MPDClient)
|
|
|
|
func didRaiseError(mpdClient: MPDClient, error: MPDClient.MPDError)
|
|
|
|
func didUpdateStatus(mpdClient: MPDClient, status: MPDClient.MPDStatus)
|
|
|
|
func willStartDatabaseUpdate(mpdClient: MPDClient)
|
|
func didFinishDatabaseUpdate(mpdClient: MPDClient)
|
|
|
|
func didUpdateQueue(mpdClient: MPDClient, queue: [MPDClient.MPDSong])
|
|
func didUpdateQueuePos(mpdClient: MPDClient, song: Int)
|
|
|
|
func didLoadAlbums(mpdClient: MPDClient, albums: [MPDClient.MPDAlbum])
|
|
|
|
func didLoadArtists(mpdClient: MPDClient, artists: [String])
|
|
}
|