summaryrefslogtreecommitdiff
path: root/src/ui/include/model_playback.hpp
blob: f932dcfd6a52291091666e37eea8d22a877bf91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright 2023 jacqueline <me@jacqueline.id.au>
 *
 * SPDX-License-Identifier: GPL-3.0-only
 */

#pragma once

#include "bindey/property.h"

#include "track.hpp"

namespace ui {
namespace models {

struct Playback {
  bindey::property<bool> is_playing;
  bindey::property<std::optional<database::TrackId>> current_track;
  bindey::property<std::vector<database::TrackId>> upcoming_tracks;

  bindey::property<uint32_t> current_track_position;
  bindey::property<uint32_t> current_track_duration;
};

}  // namespace models
}  // namespace ui