aboutsummaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'player.h')
-rw-r--r--player.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/player.h b/player.h
index 69d035e..f0cb0b9 100644
--- a/player.h
+++ b/player.h
@@ -1,8 +1,28 @@
+/*
+ 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 PLAYER_H
#define PLAYER_H
#include <QMediaPlayer>
-
+#include <QStringListModel>
#include <QMainWindow>
+#include <QDebug>
+#include <QFileDialog>
+#include <QMessageBox>
QT_BEGIN_NAMESPACE
namespace Ui { class Player; }
@@ -17,7 +37,10 @@ public:
~Player();
QMediaPlayer* mPlayer = new QMediaPlayer();
+ int amount = 0;
+
private slots:
+
void on_actionQuit_triggered();
void on_playButton_pressed();
@@ -42,5 +65,7 @@ private slots:
private:
Ui::Player *ui;
+ QString mFile;
+ QStringListModel *model;
};
#endif // PLAYER_H