defuze.me
Client
|
00001 /************************************************************************** 00002 ** defuze.me Epitech Innovative Project 00003 ** 00004 ** Copyright 2010-2012 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 LISTSPLUGIN_HPP 00012 #define LISTSPLUGIN_HPP 00013 00014 #include "staticplugin.hpp" 00015 #include "listswidget.hpp" 00016 #include "listsmodel.hpp" 00017 00018 namespace Lists 00019 { 00020 00021 class ListsPlugin : public StaticPlugin 00022 { 00023 public: 00024 ListsPlugin(); 00025 ~ListsPlugin(); 00026 void init(); 00027 void aboutToQuit(); 00028 ListsWidget *getWidget() const; 00029 ListsModel *getModel() const; 00030 00031 static QMap<int, QString> getNormalPlaylists(); 00032 static QMap<int, QString> getDynamicPlaylists(); 00033 static QList<int> getTracksForNormalPlaylist(int id); 00034 00035 private: 00036 static QMap<int, QString> getPlaylists(bool dynamic); 00037 00038 ListsWidget *widget; 00039 ListsModel *model; 00040 }; 00041 00042 } 00043 00044 #endif // LISTSPLUGIN_HPP