From df265f7f4cfb8343197ed86f5c20fb2d14c51b0f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 12 Feb 2020 09:01:31 -0500 Subject: Localization and library system in progress --- library.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 library.h (limited to 'library.h') diff --git a/library.h b/library.h new file mode 100644 index 0000000..9858d9f --- /dev/null +++ b/library.h @@ -0,0 +1,39 @@ +/* + AleePlayer: Music player in Qt + Copyright (C) 2020 Alee Productions + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#ifndef LIBRARY_H +#define LIBRARY_H + +#include +#include + +class Library : public QAbstractListModel +{ + Q_OBJECT + +public: + explicit Library(QObject *parent = nullptr); + + // Basic functionality: + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + +private: +}; + +#endif // LIBRARY_H -- cgit v1.2.3