defuze.me  Client
eventplaylist.hpp
00001 #ifndef EVENTPLAYLIST_HPP
00002 #define EVENTPLAYLIST_HPP
00003 
00004 #include <QListWidget>
00005 
00006 #include "playlists.hpp"
00007 #include "scheduler.hpp"
00008 #include "eventwidget.hpp"
00009 #include "eventplaylistitem.hpp"
00010 
00011 namespace Scheduler
00012 {
00013 
00014 class EventWidget;
00015 class PlaylistsPlugin;
00016 class EventPlaylistItem;
00017 
00018 class EventPlaylist : public QListWidget
00019 {
00020     Q_OBJECT
00021 public:
00022     EventPlaylist(EventWidget *parent = 0);
00023 
00024     QModelIndex                 indexFromItem(QListWidgetItem *item) const;
00025 
00026     void                        loadPlaylists();
00027     QList<int>                  getSelectedPlaylists();
00028 
00029 private:
00030     EventWidget                 *parent;
00031     QList<EventPlaylistItem*>   playlists;
00032 };
00033 
00034 }
00035 
00036 #endif // EVENTPLAYLIST_HPP