DtkWidget
5.6.0.2
DTK Widget module
src
widgets
private
startupnotifications
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
11
class
StartupNotificationMonitor
:
public
QObject
,
public
QAbstractNativeEventFilter
12
{
13
Q_OBJECT
14
public
:
15
static
StartupNotificationMonitor
* instance();
16
17
~StartupNotificationMonitor
();
18
19
Q_SIGNALS
:
24
void
appStartup
(
QString
id
);
25
30
void
appStartupCompleted
(
QString
id
);
31
32
protected
:
33
StartupNotificationMonitor
();
34
35
bool
nativeEventFilter(
const
QByteArray
&eventType,
void
*message,
long
*result);
36
};
37
38
#endif
// STARTUPNOTIFICATIONMONITOR_H
StartupNotificationMonitor
The StartupNotificationMonitor class is used to monitor the startup of applications on the system.
Definition:
startupnotificationmonitor.h:12
StartupNotificationMonitor::appStartup
void appStartup(QString id)
appStartup is emitted when an application is starting up. id is the startup id associated with the st...
StartupNotificationMonitor::appStartupCompleted
void appStartupCompleted(QString id)
appStartupCompleted is emitted when the start up process of an applciation is finished....
QAbstractNativeEventFilter
QByteArray
QObject
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::Q_SIGNALS
Q_SIGNALSQ_SIGNALS
QString
制作者
1.9.3