1#ifndef STATION_LIST_HPP__
2#define STATION_LIST_HPP__
4#include "JS8_Include/pimpl_h.h"
9#include <QSortFilterProxyModel>
40class StationList final :
public QSortFilterProxyModel {
42 using Frequency = Radio::Frequency;
43 using FrequencyDelta = Radio::FrequencyDelta;
54 QDateTime switch_until_;
70 QObject *parent =
nullptr);
74 Stations station_list(Stations);
75 Stations
const &station_list()
const;
80 QModelIndex add(Station);
82 bool removeDisjointRows(QModelIndexList);
85 static int constexpr SortRole = Qt::UserRole;
95 return lhs.band_name_ == rhs.band_name_ &&
96 lhs.description_ == rhs.description_ &&
97 lhs.frequency_ == rhs.frequency_ &&
98 lhs.switch_at_ == rhs.switch_at_ &&
99 lhs.switch_until_ == rhs.switch_until_;
105#if !defined(QT_NO_DEBUG_STREAM)
110Q_DECLARE_METATYPE(StationList::Stations);
Definition qpriorityqueue.h:39
Definition StationList.h:40
Definition StationList.h:50