Qmmp
Loading...
Searching...
No Matches
winfileassocpage_p.h
1/***************************************************************************
2 * Copyright (C) 2014-2022 by Ilya Kotov *
3 * forkotov02@ya.ru *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program 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 *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
20
21#ifndef WINFILEASSOCPAGE_P_H
22#define WINFILEASSOCPAGE_P_H
23
24#include <QWidget>
25#include <QStringList>
26#include "qmmpui_export.h"
27
28namespace Ui {
29class WinFileAssocPage;
30}
31
32class QListWidgetItem;
33
36class QMMPUI_EXPORT WinFileAssocPage : public QWidget
37{
38 Q_OBJECT
39public:
40 WinFileAssocPage(QWidget *parent = nullptr);
41 virtual ~WinFileAssocPage();
42
43private slots:
44 void on_selectAll_clicked();
45
46private:
47 void loadAssociations();
48 void saveAssociations();
49 int ProcessAssociations(const QStringList &current);
50 void createHelp();
51 QStringList m_extensions;
52 QStringList m_regExtensions;
53 Ui::WinFileAssocPage *m_ui;
54};
55
56#endif