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
35
#ifndef MAINPAGE_H
#define MAINPAGE_H
#include "page.h"
#include "library.h"
#include "mainwindow.h"
namespace Ui {
class MainPage;
}
class MainPage : public Page
{
Q_OBJECT
public:
explicit MainPage(Library& library, MainWindow* mainwindow, QWidget *parent = 0);
~MainPage();
virtual void initFromQuery(const QString& initString);
bool handleApiRequest(QHttpRequest *req, QHttpResponse *resp);
private slots:
void on_settingsButton_clicked();
void onShowAdded(TvShow* show);
void setRandomWallpaperAfterSearch();
void setRandomWallpaper(QString path = QString());
private:
Ui::MainPage *ui;
Library& library;
MainWindow* mainwindow;
};
#endif // MAINPAGE_H