nl::Weave::Profiles::DataManagement_Current::NotificationEngine

摘要

公共类型

NotifyRequestBuilderState{
  kNotifyRequestBuilder_Idle = 0,
  kNotifyRequestBuilder_Ready,
  kNotifyRequestBuilder_BuildDataList,
  kNotifyRequestBuilder_BuildEventList
}
枚举

公共函数

DeleteKey(TraitDataSource *aDataSource, PropertyPathHandle aPropertyHandle)
Init(void)
初始化引擎。
Run(void)
void
用于执行运行循环的主工作负载函数。
ScheduleRun(void)
void
在 Weave 线程上异步执行运行循环的主作业马函数。
SetDirty(TraitDataSource *aDataSource, PropertyPathHandle aPropertyHandle)
将与数据源关联的句柄标记为脏句柄。

nl::Weave::Profiles::DataManagement_Current::NotificationEngine::BasicGraphSolver
nl::Weave::Profiles::DataManagement_Current::NotificationEngine::IntermediateGraphSolver
nl::Weave::Profiles::DataManagement_Current::NotificationEngine::NotifyRequestBuilder

这提供了一个辅助类来撰写通知,并将消息的结构和结构从使用方中抽象出来。

公共类型

NotifyRequestBuilderState

 NotifyRequestBuilderState
属性
kNotifyRequestBuilder_BuildDataList

请求正在构建结构的 DataList 部分。

kNotifyRequestBuilder_BuildEventList

请求正在构建结构的 EventList 部分。

kNotifyRequestBuilder_Idle

请求尚未打开或已关闭并最终敲定。

kNotifyRequestBuilder_Ready

请求已初始化,可以用于任何可选的顶级元素。

公共函数

DeleteKey

WEAVE_ERROR DeleteKey(
  TraitDataSource *aDataSource,
  PropertyPathHandle aPropertyHandle
)

Init

WEAVE_ERROR Init(
  void
)

初始化引擎。

只应调用一次。

具体说明
返回值
WEAVE_NO_ERROR
成功时。
other
无法检索数据并将其写入写入器。

运行

void Run(
  void
)

用于执行运行循环的主工作负载函数。

ScheduleRun

void ScheduleRun(
  void
)

在 Weave 线程上异步执行运行循环的主作业马函数。

SetDirty

WEAVE_ERROR SetDirty(
  TraitDataSource *aDataSource,
  PropertyPathHandle aPropertyHandle
)

将与数据源关联的句柄标记为脏句柄。

具体说明
返回值
WEAVE_NO_ERROR
成功时。
other
无法检索数据并将其写入写入器。