10#include "dtknotification_global.h" 
   12DNOTIFICATIONS_BEGIN_NAMESPACE
 
   15class DAbstractNotificationModeConfigPrivate;
 
   20    Q_PROPERTY(QString name READ name)
 
   21    Q_PROPERTY(
bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
 
   30    virtual bool enabled() 
const = 0;
 
   38    QScopedPointer<DAbstractNotificationModeConfigPrivate> d_ptr;
 
   40typedef QSharedPointer<DAbstractNotificationModeConfig> DAbstractNotificationModeConfigPtr;
 
   42DNOTIFICATIONS_END_NAMESPACE
 
DAbstractModeNotificationConfig类
Definition: dabstractnotificationmodeconfig.h:18
void enabledChanged(const bool name)
该模式使能改变时发出enabledChanged信号
DAbstractNotificationModeConfig(const QString &name, QObject *parent=nullptr)
构造通知系统模式配置对象
virtual DExpected< void > setEnabled(bool enabled)=0
设置当前模式是否启用
QString name() const
获取模式的名称(独一无二的标识)