| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef SETTINGSMEDIAPLAYER_H |
| 4 | #define SETTINGSMEDIAPLAYER_H |
| 5 | |
| 6 | #include "gui/settings/settingspanel.h" |
| 7 | |
| 8 | #include "ui_settingsmediaplayer.h" |
| 9 | |
| 10 | class SettingsMediaPlayer : public SettingsPanel { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | public: |
| 14 | explicit SettingsMediaPlayer(Settings* settings, QWidget* parent = nullptr); |
| 15 | |
| 16 | virtual QIcon icon() const; |
| 17 | virtual QString title() const; |
| 18 | virtual void loadSettings(); |
| 19 | virtual void saveSettings(); |
| 20 | |
| 21 | #if defined(ENABLE_MEDIAPLAYER_LIBMPV) |
| 22 | private slots: |
| 23 | void selectMpvConfigFolder(); |
| 24 | #endif |
| 25 | |
| 26 | private: |
| 27 | Ui::SettingsMediaPlayer m_ui; |
| 28 | }; |
| 29 | |
| 30 | inline QString SettingsMediaPlayer::title() const { |
| 31 | return tr("Media player"); |
| 32 | } |
| 33 | |
| 34 | #endif // SETTINGSMEDIAPLAYER_H |