Qmmp
qtfiledialog_p.h
1 /***************************************************************************
2  * Copyright (C) 2008-2016 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 QTFILEDIALOG_H
21 #define QTFILEDIALOG_H
22 
23 #include <QObject>
24 #include "filedialog.h"
25 
26 class QTranslator;
27 
32 class QtFileDialogFactory : public QObject, public FileDialogFactory
33 {
34  Q_OBJECT
35  Q_INTERFACES(FileDialogFactory)
36 public:
37  QtFileDialogFactory(){}
38  FileDialog* create();
39  const FileDialogProperties properties() const;
40  void showAbout(QWidget*);
41  QTranslator *createTranslator(QObject*);
42  virtual ~QtFileDialogFactory()
43  {
44  ;
45  }
46 };
47 
48 class QtFileDialog : public FileDialog
49 {
50 public:
51  virtual ~QtFileDialog();
52 
53 protected:
54  QStringList exec(QWidget *parent, const QString &dir, Mode mode,
55  const QString &caption, const QString &filter,
56  QString *selectedFilter);
57 };
58 
59 #endif
virtual QTranslator * createTranslator(QObject *parent)=0
The FileDialog class is the base interface class of the file dialogs.
Definition: filedialog.h:35
virtual const FileDialogProperties properties() const =0
virtual FileDialog * create()=0
File dialog plugin interface.
Definition: filedialogfactory.h:52
virtual void showAbout(QWidget *parent)=0
Helper class to store file dialog plugin properties.
Definition: filedialogfactory.h:31