-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
47 lines (37 loc) · 886 Bytes
/
mainwindow.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QScrollArea>
#include <QOAuth2AuthorizationCodeFlow>
#include <QtNetworkAuth>
#include <QJsonDocument>
#include <QJsonObject>
#include <QGridLayout>
#include <QLabel>
#include <QPlainTextEdit>
#include "user.h"
#include "playlist.h"
#include "spotifyview.h"
class QGridLayout;
class QPlainTextEdit;
class MainWindow : public QScrollArea
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
QOAuth2AuthorizationCodeFlow spotify;
private slots:
void granted();
private:
void getUserInfo();
void getPlayLists();
void getTracks();
void showInterface();
void playTrack(const QString& trackName);
QGridLayout *m_gridLayout;
QPlainTextEdit *m_plainText;
SpotifyView *m_spotifyView;
User m_user;
};
extern MainWindow *mainWindow;
#endif // MAINWINDOW_H