|
dtknotifications
notification development tool kit
|
DNotificationDNDModeConfig类 更多...
#include <dnotificationdndmodeconfig.h>
信号 | |
| void | DNDModeInLockScreenEnabledChanged (const bool enabled) |
| 锁屏界面是否启用勿扰模式的配置发生变化后发出的信号 更多... | |
| void | openByTimeIntervalEnabledChanged (const bool enabled) |
| 是否打开时间段的配置发生变化后发出的信号 更多... | |
| void | startTimeChanged (const QString &startTime) |
| 勿扰模式的启动时间发生变化后发出的信号 更多... | |
| void | endTimeChanged (const QString &endTime) |
| 勿扰模式的结束时间发生变化后发出的信号 更多... | |
| void | showIconEnabledChanged (const bool enabled) |
| dde-dock是否展示通知中心图标的配置发生变化后发出的信号 更多... | |
信号 继承自 Dtk::Notifications::DAbstractNotificationModeConfig | |
| void | enabledChanged (const bool name) |
| 该模式使能改变时发出enabledChanged信号 更多... | |
Public 成员函数 | |
| DNotificationDNDModeConfig (const QString &name, QObject *parent=nullptr) | |
| 构造通知系统配置对象 更多... | |
| bool | enabled () const override |
| 判断是否启用了勿扰模式 更多... | |
| DExpected< void > | setEnabled (bool enabled) override |
| 设置是否启用勿扰模式 更多... | |
| bool | DNDModeInLockScreenEnabled () const |
| 判断在锁屏界面是否启用勿扰模式 更多... | |
| DExpected< void > | setDNDModeInLockScreenEnabled (bool enabled) |
| 设置在锁屏界面是否启用勿扰模式 更多... | |
| bool | openByTimeIntervalEnabled () const |
| 判断是否打开时间段 更多... | |
| DExpected< void > | setOpenByTimeIntervalEnabled (bool enabled) |
| 设置是否打开时间段 更多... | |
| QString | startTime () const |
| 获取勿扰模式启动时间 更多... | |
| DExpected< void > | setStartTime (const QString &startTime) |
| 设置勿扰模式启动时间 更多... | |
| QString | endTime () const |
| 获取勿扰模式结束时间 更多... | |
| DExpected< void > | setEndTime (const QString &endTime) |
| 设置勿扰模式结束时间 更多... | |
| bool | showIconEnabled () const |
| 判断dde-dock是否展示通知中心图标 更多... | |
| DExpected< void > | setShowIconEnabled (bool enabled) |
| 设置de-dock是否展示通知中心图标 更多... | |
Public 成员函数 继承自 Dtk::Notifications::DAbstractNotificationModeConfig | |
| DAbstractNotificationModeConfig (const QString &name, QObject *parent=nullptr) | |
| 构造通知系统模式配置对象 更多... | |
| QString | name () const |
| 获取模式的名称(独一无二的标识) 更多... | |
| virtual bool | enabled () const =0 |
| virtual DExpected< void > | setEnabled (bool enabled)=0 |
| 设置当前模式是否启用 更多... | |
属性 | |
| bool | DNDModeInLockScreenEnabled |
| 锁屏界面勿扰模式使能 | |
| bool | openByTimeIntervalEnabled |
| 打开时间段使能 | |
| QString | startTime |
| 勿扰模式启动时间 | |
| QString | endTime |
| 勿扰模式结束时间 | |
| bool | showIconEnabled |
| dde-dock是否展示通知中心图标 | |
属性 继承自 Dtk::Notifications::DAbstractNotificationModeConfig | |
| QString | name |
| 模式名称 | |
| bool | enabled |
| 是否启用该模式 | |
额外继承的成员函数 | |
Protected 成员函数 继承自 Dtk::Notifications::DAbstractNotificationModeConfig | |
| DAbstractNotificationModeConfig (DAbstractNotificationModeConfigPrivate &d, QObject *parent=nullptr) | |
Protected 属性 继承自 Dtk::Notifications::DAbstractNotificationModeConfig | |
| QScopedPointer< DAbstractNotificationModeConfigPrivate > | d_ptr |
DNotificationDNDModeConfig类
| DNotificationDNDModeConfig::DNotificationDNDModeConfig | ( | const QString & | name, |
| QObject * | parent = nullptr |
||
| ) |
构造通知系统配置对象
| [in] | name | 模式名称 |
| [in] | parent | 父对象 |
| bool DNotificationDNDModeConfig::DNDModeInLockScreenEnabled | ( | ) | const |
判断在锁屏界面是否启用勿扰模式
| true | 已启用 |
| false | 没有启用 |
|
signal |
锁屏界面是否启用勿扰模式的配置发生变化后发出的信号
| [in] | enabled | 代表锁屏界面是否启用勿扰模式的布尔值 |
|
overridevirtual |
判断是否启用了勿扰模式
| true | 已启用 |
| false | 没有启用 |
| QString DNotificationDNDModeConfig::endTime | ( | ) | const |
获取勿扰模式结束时间
|
signal |
勿扰模式的结束时间发生变化后发出的信号
| [in] | enabled | 代表勿扰模式结束时间的字符串 |
| bool DNotificationDNDModeConfig::openByTimeIntervalEnabled | ( | ) | const |
判断是否打开时间段
| true | 已打开 |
| false | 没有打开 |
|
signal |
是否打开时间段的配置发生变化后发出的信号
| [in] | enabled | 代表是否打开时间段的布尔值 |
| void DNotificationDNDModeConfig::setDNDModeInLockScreenEnabled | ( | bool | enabled | ) |
设置在锁屏界面是否启用勿扰模式
| [in] | enabled | 代表在锁屏界面是否启用勿扰模式的布尔值 |
|
overridevirtual |
| void DNotificationDNDModeConfig::setEndTime | ( | const QString & | endTime | ) |
设置勿扰模式结束时间
| [in] | endTime | 代表勿扰模式结束时间 |
| void DNotificationDNDModeConfig::setOpenByTimeIntervalEnabled | ( | bool | enabled | ) |
设置是否打开时间段
| [in] | enabled | 代表是否打开时间段的布尔值 |
| void DNotificationDNDModeConfig::setShowIconEnabled | ( | bool | enabled | ) |
设置de-dock是否展示通知中心图标
| [in] | enabled | 代表de-dock是否展示通知中心图标的布尔值 |
| void DNotificationDNDModeConfig::setStartTime | ( | const QString & | startTime | ) |
设置勿扰模式启动时间
| [in] | startTime | 代表勿扰模式启动时间 |
| bool DNotificationDNDModeConfig::showIconEnabled | ( | ) | const |
判断dde-dock是否展示通知中心图标
| true | 展示 |
| false | 隐藏 |
|
signal |
dde-dock是否展示通知中心图标的配置发生变化后发出的信号
| [in] | enabled | 代表dde-dock是否展示通知中心图标的布尔值 |
| QString DNotificationDNDModeConfig::startTime | ( | ) | const |
获取勿扰模式启动时间
|
signal |
勿扰模式的启动时间发生变化后发出的信号
| [in] | startTime | 代表启动时间的字符串 |