forked from keshavbhatt/olivia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
similartracks.h
34 lines (29 loc) · 926 Bytes
/
similartracks.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
#ifndef SIMILARTRACKS_H
#define SIMILARTRACKS_H
#include <QObject>
#include <QtNetwork>
#include "store.h"
class SimilarTracks : public QObject
{
Q_OBJECT
public:
explicit SimilarTracks(QObject *parent = nullptr, int limit = 4);
int numberOfSimilarTracksToLoad = 0;
bool isLoadingPLaylist = false;
private:
QStringList playedTracksIds; //collection of song ids which were already played in the current session
store * store_manager= nullptr;
signals:
void setSimilarTracks(QStringList);
void setPlaylist(QStringList);
void failedGetSimilarTracks();
void clearList();
void clearListKeepingPlayingTrack();
public slots:
void addSimilarTracks(QString video_id, QString songId);
void addPlaylist(QString data);
void getNextTracksInPlaylist(QStringList trackListFromMainWindow);
private slots:
bool isNumericStr(const QString str);
};
#endif // SIMILARTRACKS_H