Qmmp
filedialogfactory.h
1 /***************************************************************************
2  * Copyright (C) 2008-2012 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 class QObject;
24 class QTranslator;
25 class FileDialog;
26 class QWidget;
27 class QString;
28 
32 {
33 public:
38  {
39  hasAbout = false;
40  modal = true;
41  }
42  bool hasAbout;
44  QString name;
45  QString shortName;
46  bool modal;
48 };
53 {
54 public:
58  virtual ~FileDialogFactory() {}
62  virtual FileDialog* create() = 0;
66  virtual const FileDialogProperties properties() const = 0;
71  virtual void showAbout(QWidget *parent) = 0;
76  virtual QTranslator *createTranslator(QObject *parent) = 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:35
FileDialogProperties()
Definition: filedialogfactory.h:37
bool hasAbout
Definition: filedialogfactory.h:42
virtual ~FileDialogFactory()
Definition: filedialogfactory.h:58
File dialog plugin interface.
Definition: filedialogfactory.h:52
QString shortName
Definition: filedialogfactory.h:45
bool modal
Definition: filedialogfactory.h:46
Helper class to store file dialog plugin properties.
Definition: filedialogfactory.h:31
QString name
Definition: filedialogfactory.h:44