File: application.h

package info (click to toggle)
khelpcenter 4%3A25.04.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,176 kB
  • sloc: cpp: 6,271; xml: 394; python: 51; perl: 25; makefile: 5; sh: 3
file content (47 lines) | stat: -rw-r--r-- 825 bytes parent folder | download
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