-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDbForm.h
48 lines (40 loc) · 947 Bytes
/
DbForm.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
#ifndef DBFORM_H
#define DBFORM_H
#include <QTableWidget>
#include <QSqlDatabase>
#include <QMutex>
#include "PlayListItem.h"
#include "Settings.h"
namespace Ui {
class DbForm;
}
class DbForm : public QWidget
{
Q_OBJECT
public:
explicit DbForm(QWidget *parent = 0);
~DbForm();
private:
Ui::DbForm *ui;
QSqlDatabase db;
Settings* settings;
PlayList list;
PlayMap map;
QMutex mutex;
bool addToPlayList(int row);
void removeFromPlayList(int row);
public slots:
void onItemClicked(QTableWidgetItem* clickedItem);
void onSettingsChanged(Settings* s);
signals:
void dbchanged(QString dbName); // !!!!
void selected(int id, PlayItem item);
void deselected(int id);
void play(QString fname, bool deleteFile = false);
private slots:
void on_btnExit_clicked();
void on_btnAll_clicked();
void on_btnPlay_clicked();
void on_btnRandom_clicked();
};
#endif // DBFORM_H