root/src/pagefactory.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
#ifndef PAGEFACTORY_H
#define PAGEFACTORY_H

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

// TODO why did I write this bullshit bloatclass? it's completly useless
class MainWindow;
class PageFactory
{
public:
    PageFactory(Library& library, MainWindow* mainwindow);
    Page* pageForKey(const QString& key);


    static const QString mainPageKey;
    static const QString tvShowsPageKey;
    static const QString tvShowPageKey;
    static const QString settingsPageKey;

private:
    Library& library;
    MainWindow* mainwindow;
};

#endif // PAGEFACTORY_H