-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanager.h
33 lines (27 loc) · 996 Bytes
/
manager.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
#ifndef MANAGER_H
#define MANAGER_H
#include <WinBase.h>
#include <Windows.h>
#include "master.h"
#include "xml_parser.h"
#include "setting.h"
class Manager : public QObject
{
Q_OBJECT
private:
void static split(const std::wstring& s, char c, std::vector<std::wstring>& v);
void static GetFileListing(std::wstring directory, std::wstring fileFilter, Xml_Parser &parser, bool recursively = true);
void static GetFiles(std::wstring directory, std::wstring fileFilter, Xml_Parser &parser, bool recursively = true);
public:
static Master master;
static Xml_Parser parser;
static Setting setting;
static void CreationProcessSuccess(bool isSuccessful);
static void CreateMaster(QStringList str_list);
static void CheckSongInfo(QString &title, QString &artist, QString &album, const QString &path);
static bool LoadSongToMaster();
static bool fileExists(QString path);
explicit Manager(QObject *parent = 0);
~Manager();
};
#endif // MANAGER