blob: e1353b312cfb5e9b7ef322427369b16ea697a9d9 (
plain)
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
|
// playlistfeature.h
// Created 8/17/09 by RJ Ryan (rryan@mit.edu)
#ifndef PLAYLISTFEATURE_H
#define PLAYLISTFEATURE_H
#include <QVariant>
#include <QIcon>
#include <QModelIndex>
#include <QUrl>
#include <QObject>
#include <QPoint>
#include "library/baseplaylistfeature.h"
#include "configobject.h"
class TrackCollection;
class TreeItem;
class PlaylistFeature : public BasePlaylistFeature {
Q_OBJECT
public:
PlaylistFeature(QObject* parent, TrackCollection* pTrackCollection,
ConfigObject<ConfigValue>* pConfig);
virtual ~PlaylistFeature();
QVariant title();
QIcon getIcon();
bool dropAcceptChild(const QModelIndex& index, QList<QUrl> urls, QObject* pSource);
bool dragMoveAcceptChild(const QModelIndex& index, QUrl url);
public slots:
void onRightClick(const QPoint& globalPos);
void onRightClickChild(const QPoint& globalPos, QModelIndex index);
private slots:
void slotPlaylistTableChanged(int playlistId);
void slotPlaylistContentChanged(int playlistId);
void slotPlaylistTableRenamed(int playlistId, QString a_strName);
protected:
void buildPlaylistList();
void decorateChild(TreeItem *pChild, int playlist_id);
private:
QString getRootViewHtml() const;
};
#endif /* PLAYLISTFEATURE_H */
|