mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Adds a slider control that shows the track playback progress. The slider can be used to seek through the track.
23 lines
635 B
Swift
23 lines
635 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 didUpdateState(mpdClient: MPDClient, state: MPDClient.Status.State)
|
|
func didUpdateTime(mpdClient: MPDClient, total: UInt, elapsedMs: UInt)
|
|
|
|
func didUpdateQueue(mpdClient: MPDClient, queue: [MPDClient.Song])
|
|
func didUpdateQueuePos(mpdClient: MPDClient, song: Int)
|
|
|
|
func didLoadAlbums(mpdClient: MPDClient, albums: [MPDClient.Album])
|
|
}
|