DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
startupnotificationmonitor.h
1// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef STARTUPNOTIFICATIONMONITOR_H
6#define STARTUPNOTIFICATIONMONITOR_H
7
8#include <QObject>
9#include <QAbstractNativeEventFilter>
10
11class StartupNotificationMonitor : public QObject, public QAbstractNativeEventFilter
12{
13 Q_OBJECT
14public:
15 static StartupNotificationMonitor* instance();
16
18
19Q_SIGNALS:
24 void appStartup(QString id);
25
30 void appStartupCompleted(QString id);
31
32protected:
34
35#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
36 bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
37#else
38 bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) override;
39#endif
40};
41
42#endif // STARTUPNOTIFICATIONMONITOR_H
The StartupNotificationMonitor class is used to monitor the startup of applications on the system.
Definition startupnotificationmonitor.h:12
void appStartup(QString id)
appStartup is emitted when an application is starting up. id is the startup id associated with the st...
void appStartupCompleted(QString id)
appStartupCompleted is emitted when the start up process of an applciation is finished....