Qmmp
filedialogfactory.h
1 /***************************************************************************
2  * Copyright (C) 2008-2018 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 #ifndef FILEDIALOGFACTORY_H
21 #define FILEDIALOGFACTORY_H
22 
23 #include "qmmpui_export.h"
24 
25 class QObject;
26 class FileDialog;
27 class QWidget;
28 class QString;
29 
33 {
34 public:
39  {
40  hasAbout = false;
41  modal = true;
42  }
43  bool hasAbout;
45  QString name;
46  QString shortName;
47  bool modal;
49 };
53 class QMMPUI_EXPORT FileDialogFactory
54 {
55 public:
59  virtual ~FileDialogFactory() {}
63  virtual FileDialog* create() = 0;
67  virtual FileDialogProperties properties() const = 0;
72  virtual void showAbout(QWidget *parent) = 0;
76  virtual QString translation() const = 0;
77 };
78 
79 Q_DECLARE_INTERFACE(FileDialogFactory, "FileDialogFactory/1.0")
80 
81 #endif
The FileDialog class is the base interface class of the file dialogs.
Definition: filedialog.h:36
FileDialogProperties()
Definition: filedialogfactory.h:38
bool hasAbout
Definition: filedialogfactory.h:43
virtual ~FileDialogFactory()
Definition: filedialogfactory.h:59
File dialog plugin interface.
Definition: filedialogfactory.h:53
QString shortName
Definition: filedialogfactory.h:46
bool modal
Definition: filedialogfactory.h:47
Helper class to store file dialog plugin properties.
Definition: filedialogfactory.h:32
QString name
Definition: filedialogfactory.h:45