aboutsummaryrefslogtreecommitdiff
path: root/library.h
diff options
context:
space:
mode:
Diffstat (limited to 'library.h')
-rw-r--r--library.h39
1 files changed, 39 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>.
+*/
+#ifndef LIBRARY_H
+#define LIBRARY_H
+
+#include <QAbstractListModel>
+#include <QAbstractTableModel>
+
+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