root/src/tvshowpage.h

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
#ifndef TVSHOWPAGE_H
#define TVSHOWPAGE_H

#include <QWidget>
#include "page.h"
#include "library.h"

namespace Ui {
class TvShowPage;
}

class TvShowPage : public Page
{
    Q_OBJECT
    
public:
    explicit TvShowPage(Library& library, QWidget *parent = 0);
    ~TvShowPage();

    void initFromQuery(const QString &initString);
    bool handleApiRequest(QHttpRequest* req, QHttpResponse* resp);
    bool conformsTo(QString query) const;

    void setTvShow(TvShow *show);

public slots:
    void updateWatched(int, int);
private:
    Ui::TvShowPage *ui;
    Library& library;
    TvShow* tvShow;
};

#endif // TVSHOWPAGE_H