-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsoundlistview.h
44 lines (34 loc) · 978 Bytes
/
soundlistview.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
#ifndef SOUNDLISTVIEW_H
#define SOUNDLISTVIEW_H
# include <QListView>
# include "likemodel.h"
# include "playlistmodel.h"
# include "playlistsoundlistmodel.h"
# include "activitylistmodel.h"
# include "soundstorage.h"
class SoundListView : public QListView
{
Q_OBJECT
public:
explicit SoundListView(QWidget *parent = 0);
signals:
void soundSelected(QModelIndex soundIndex);
public slots:
void switchToPlaylistListingDisplay();
void switchToLikeDisplay();
void switchToActivityDisplay();
void refresh();
// --- private section ----------------------
private:
void setupModels();
private slots:
void selectPlaylist(QModelIndex playlistIndex);
void selectActivity(QModelIndex activityIndex);
// --- attributes ---------------------------
private:
SoundStorage* soundStorage;
PlaylistModel* playlistModel;
LikeModel* likeModel;
ActivityListModel* activityModel;
};
#endif // SOUNDLISTVIEW_H