File indexing completed on 2024-04-28 04:48:38

0001 /*
0002     SPDX-FileCopyrightText: 2011 Geoffry Song <goffrie@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef DRAGONPLAYER_PLAYERAPPLICATION_H
0008 #define DRAGONPLAYER_PLAYERAPPLICATION_H
0009 
0010 #include <QApplication>
0011 
0012 namespace Dragon
0013 {
0014 class MainWindow;
0015 
0016 class PlayerApplication : public QApplication
0017 {
0018     Q_OBJECT
0019 public:
0020     PlayerApplication(int &argc, char **argv);
0021     ~PlayerApplication() override;
0022     void newInstance(bool playDisc = false, const QList<QUrl> &uris = QList<QUrl>());
0023 
0024 public Q_SLOTS:
0025     void slotActivateRequested(const QStringList &arguments, const QString &workingDirectory);
0026     void slotOpenRequested(const QList<QUrl> &uris);
0027 
0028 private:
0029     void forceActiveWindow();
0030     MainWindow *m_mainWindow;
0031 };
0032 
0033 } // namespace Dragon
0034 
0035 #endif