-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainw.h
93 lines (73 loc) · 1.94 KB
/
mainw.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef MAINW_H
#define MAINW_H
#include <QMainWindow>
#include <QTGui>
#include "headset.h"
#include <QTimer>
#include <phonon/volumeslider.h>
#include <phonon/MediaSource>
#include <QList>
#include "database.h"
#include "musicplayer.h"
#include "displayemotion.h"
#include "recommender.h"
namespace Ui {
class MainW;
}
class MainW : public QMainWindow
{
Q_OBJECT
public:
explicit MainW(QWidget *parent = 0);
~MainW();
private slots:
void startButtonPressed();
void stopButtonPressed();
void userSelectionMade(QString userSelection);
// music player
void addFiles();
void about();
void newTableClicked(int row, int column);
void existingTableClicked(int row, int /* column*/);
void showNewRecs();
void showSimOthersTriggered();
void showSimOwnTriggered();
public slots:
void tick(qint64 time);
void trackFinished();
void continuePlaying();
void skipTrack();
void updaterecTableSim(QMultiMap<float, QStringList> recs);
void handleNewUserTrack(int, QString, QString, QString, QList<QList<float> >);
signals:
// handles headset/database
void startRecording(QString, QString, QString);
void logEmoState();
void stopRecording();
void cancelRecording();
void newUser(QString);
// goes to mediaplayer
void startPlaying(Phonon::MediaSource);
void stopPlaying();
private:
Ui::MainW *ui;
QTimer* headsetTimer;
Phonon::VolumeSlider* volumeSlider;
int currentTrack;
QList<Phonon::MediaSource> sources;
QString user;
Database* db;
Headset* headset;
MusicPlayer* musicPlayer;
DisplayEmotion* displayEmotion;
Recommender* recommender;
void setupActions();
void setupComboBox();
void connectSignalsSlots();
void updatenewTable(QList<QStringList>);
void startupGetUser();
void recTableToSimilar();
void setVolumeSlider(Phonon::AudioOutput*);
void setupexistingTable();
};
#endif // MAINW_H