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
#ifndef GUITVSHOWLIST_H
#define GUITVSHOWLIST_H
#include <QWidget>
#include "tvshow.h"
namespace Ui {
class GuiTvShowList;
}
class TvShowListWidget : public QWidget
{
Q_OBJECT
public:
explicit TvShowListWidget(QWidget *parent = 0);
~TvShowListWidget();
void set(QList<TvShow *> showList, QString title = QString());
void setFields(QStringList fields); // TODO impl for customization
void add(const TvShow *show, bool sort = true);
void sortList();
private:
Ui::GuiTvShowList *ui;
};
#endif // GUITVSHOWLIST_H