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 SETTINGSPAGE_H #define SETTINGSPAGE_H #include <QWidget> #include "library.h" #include "page.h" namespace Ui { class SettingsPage; } class SettingsPage : public Page { Q_OBJECT public: explicit SettingsPage(Library& library, QWidget *parent = 0); ~SettingsPage(); virtual bool handleApiRequest(QHttpRequest*, QHttpResponse*); virtual void initFromQuery(const QString&); private slots: void on_addButton_clicked(); void on_toggleDisableButton_clicked(); void on_removeButton_clicked(); private: Ui::SettingsPage *ui; Library& library; }; #endif // SETTINGSPAGE_H