-
Notifications
You must be signed in to change notification settings - Fork 0
/
library.h
55 lines (48 loc) · 1.13 KB
/
library.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
48
49
50
51
52
53
54
55
#ifndef LIBRARY_H
#define LIBRARY_H
#include <QString>
#include <QFile>
#include <QDir>
#include <QDebug>
#include <QJsonDocument>
#include <QVariant>
#include <QMap>
#include <QVariantMap>
#include <QFileInfo>
#include <fstream>
#include <fileref.h>
#include <QThread>
#include "filemanager.h"
#include <QFileDialog>
#include <QMessageBox>
class Library:public QObject
{
Q_OBJECT
public:
Library();
QVariantMap lib;
QVariantMap set;
QVariantList songs;
void readLibrary();
void saveLibrary();
void readSettings();
void saveSettings();
void sortSongs();
public slots:
void setUserInfo(QVariantMap res);
void getCloud(QVariantMap cloudLibrary);
void songUploaded(QVariantMap songData);
void startMusicAdder();
void deleteSongs(QVariantList songsToDelete, QString from);
void songAddEnd(QVariantList newLib);
signals:
void userInfoChanged();
void songAddProgress(int);
void songAddCanceled();
void songAddComplete();
void songDeletionEnd();
void deleteFromCloud(QString);
void deleteFromLocal(QString);
void deleteFromBoth(QString);
};
#endif // LIBRARY_H