defuze.me  Client
playqueuewidget.hpp
00001 /**************************************************************************
00002 ** defuze.me Epitech Innovative Project
00003 **
00004 ** Copyright 2010-2011
00005 **   Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard
00006 **   Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier
00007 **
00008 ** All rights reserved.
00009 **************************************************************************/
00010 
00011 #ifndef PLAYQUEUEWIDGET_HPP
00012 #define PLAYQUEUEWIDGET_HPP
00013 
00014 #include <QWidget>
00015 #include <QAbstractItemModel>
00016 #include "guicore.hpp"
00017 #include "ui_playqueuewidget.h"
00018 
00019 namespace Queue {
00022     class PlayQueueWidget : public Gui::ModuleWidget, private Ui::PlayQueueWidget
00023     {
00024         Q_OBJECT
00025 
00026     public:
00027         explicit PlayQueueWidget(QAbstractItemModel *model);
00028         ~PlayQueueWidget();
00029         void        setItemWidget(const QModelIndex &index, QWidget *widget);
00030         void        keyReleaseEvent(QKeyEvent *event);
00031         QItemSelectionModel*    selectionModel() const;
00032 
00033     signals:
00034         void        deleteElements();
00035         void        clearListFocus();
00036     };
00037 }
00038 
00039 #endif // PLAYQUEUEWIDGET_HPP