1 | /* |
2 | Copyright (C) 2004-2007 Matthias Kretz <kretz@kde.org> |
3 | Copyright (C) 2011-2019 Harald Sitter <sitter@kde.org> |
4 | |
5 | This program is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) version 3. |
9 | |
10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 | Boston, MA 02110-1301, USA. |
19 | */ |
20 | |
21 | #ifndef BACKENDSELECTION_H |
22 | #define BACKENDSELECTION_H |
23 | |
24 | #include "ui_backendselection.h" |
25 | #include <QWidget> |
26 | #include <QHash> |
27 | |
28 | #include "phonon/factory_p.h" |
29 | |
30 | class BackendSelection : public QWidget, private Ui::BackendSelection |
31 | { |
32 | Q_OBJECT |
33 | public: |
34 | explicit BackendSelection(QWidget *parent = nullptr); |
35 | |
36 | void load(); |
37 | void save(); |
38 | |
39 | private slots: |
40 | void selectionChanged(); |
41 | void up(); |
42 | void down(); |
43 | |
44 | private: |
45 | QHash<QString, Phonon::BackendDescriptor> m_backends; |
46 | int m_emptyPage; |
47 | }; |
48 | |
49 | #endif // BACKENDSELECTION_H |
50 | |