1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
/*
SPDX-FileCopyrightText: 2002 Frerich Raabe <raabe@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KHC_APPLICATION_H
#define KHC_APPLICATION_H
#include <QApplication>
#include <QCommandLineParser>
#include <QList>
#include <QUrl>
namespace KHC
{
class MainWindow;
class Application : public QApplication
{
Q_OBJECT
public:
Application(int &argc, char **argv);
QCommandLineParser *cmdParser();
void newInstance();
void restoreInstance();
public Q_SLOTS:
void activate(const QStringList &args, const QString &workingDirectory);
void open(const QList<QUrl> &urls);
private:
void activateForStartLikeCall();
private:
MainWindow *mMainWindow = nullptr;
QUrl mOpen;
QCommandLineParser mCmdParser;
};
}
#endif // KHC_APPLICATION_H
// vim:ts=2:sw=2:et
|