DAppNotificationConfig类
更多...
#include <dnotificationappconfig.h>
|
|
QString | appName |
| | 应用名称
|
| |
|
QString | appIcon |
| | 应用图标
|
| |
|
bool | notificationEnabled |
| | 通知使能
|
| |
|
bool | previewEnabled |
| | 预览使能
|
| |
|
bool | soundEnabled |
| | 声音使能
|
| |
|
bool | showInNotificationCenterEnabled |
| | 在通知中心显示使能
|
| |
|
bool | showInLockScreenEnabled |
| | 在锁屏界面显示使能
|
| |
◆ DNotificationAppConfig()
| DNotificationAppConfig::DNotificationAppConfig |
( |
const QString & |
id, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ appIcon()
| QString DNotificationAppConfig::appIcon |
( |
| ) |
const |
◆ appName()
| QString DNotificationAppConfig::appName |
( |
| ) |
const |
◆ notificationEnabled()
| bool DNotificationAppConfig::notificationEnabled |
( |
| ) |
const |
判断是否打开通知
- 返回
- 代表是否打开通知的布尔值
- 返回值
-
◆ notificationEnabledChanged
| void DNotificationAppConfig::notificationEnabledChanged |
( |
const QString & |
id, |
|
|
const bool |
enabled |
|
) |
| |
|
signal |
是否打开通知的配置发生变化后发出的信号
- 参数
-
| [in] | id | 代表应用的id |
| [in] | enabled | 代表是否打开通知的配置的布尔值 |
◆ previewEnabled()
| bool DNotificationAppConfig::previewEnabled |
( |
| ) |
const |
判断是否打开预览
- 返回
- 代表打开预览的布尔值
- 返回值
-
◆ previewEnabledChanged
| void DNotificationAppConfig::previewEnabledChanged |
( |
const QString & |
id, |
|
|
const bool |
enabled |
|
) |
| |
|
signal |
是否打开预览的配置发生变化后发出的信号
- 参数
-
| [in] | id | 代表应用的id |
| [in] | enabled | 代表是否打开预览的布尔值 |
◆ setNotificationEnabled()
| void DNotificationAppConfig::setNotificationEnabled |
( |
bool |
enabled | ) |
|
◆ setPreviewEnabled()
| void DNotificationAppConfig::setPreviewEnabled |
( |
const bool |
enabled | ) |
|
◆ setShowInLockScreenEnabled()
| void DNotificationAppConfig::setShowInLockScreenEnabled |
( |
const bool |
enabled | ) |
|
设置是否在锁屏界面显示
- 参数
-
| [in] | enabled | 代表是否在锁屏界面显示的布尔值 |
◆ setShowInNotificationCenterEnabled()
| void DNotificationAppConfig::setShowInNotificationCenterEnabled |
( |
const bool |
enabled | ) |
|
设置是否在通知中心显示
- 参数
-
| [in] | enabled | 代表是否在通知中心显示的布尔值 |
◆ setSoundEnabled()
| void DNotificationAppConfig::setSoundEnabled |
( |
const bool |
enabled | ) |
|
◆ showInLockScreenEnabled()
| bool DNotificationAppConfig::showInLockScreenEnabled |
( |
| ) |
const |
判断是否在锁屏界面显示
- 返回
- 代表是否在锁屏界面显示的布尔值
- 返回值
-
◆ showInLockScreenEnabledChanged
| void DNotificationAppConfig::showInLockScreenEnabledChanged |
( |
const QString & |
id, |
|
|
const bool |
enabled |
|
) |
| |
|
signal |
是否在锁屏界面展示的配置发生变化后发出的信号
- 参数
-
| [in] | id | 代表应用的id |
| [in] | enabled | 代表是否在锁屏界面展示的布尔值 |
◆ showInNotificationCenterEnabled()
| bool DNotificationAppConfig::showInNotificationCenterEnabled |
( |
| ) |
const |
判断是否在通知中心显示
- 返回
- 代表是否在通知中心显示的布尔值
- 返回值
-
◆ showInNotificationCenterEnabledChanged
| void DNotificationAppConfig::showInNotificationCenterEnabledChanged |
( |
const QString & |
id, |
|
|
const bool |
enabled |
|
) |
| |
|
signal |
是否在通知中心展示的配置发生变化后发出的信号
- 参数
-
| [in] | id | 代表应用的id |
| [in] | enabled | 代表是否在通知中心展示的布尔值 |
◆ soundEnabled()
| bool DNotificationAppConfig::soundEnabled |
( |
| ) |
const |
判断是否打开声音
- 返回
- 代表打开声音的布尔值
- 返回值
-
◆ soundEnabledChanged
| void DNotificationAppConfig::soundEnabledChanged |
( |
const QString & |
id, |
|
|
const bool |
enabled |
|
) |
| |
|
signal |
是否打开声音的配置发生变化后发出的信号
- 参数
-
| [in] | id | 代表应用的id |
| [in] | enabled | 代表是否打开声音的布尔值 |
该类的文档由以下文件生成: