nl::Weave::Warm::WarmFabricStateDelegate

#include <src/warm/Warm.h>

This is an internal class to WarmCore.

Summary

It implements the FabricStateDelegate interface. An instance of this class (namely sWarmFabricStateDelegate), is set as the delegate of WeaveFabricState. Warm uses this to be notified of Fabric state changes.

Inheritance

Inherits from: nl::Weave::FabricStateDelegate

Public functions

DidJoinFabric(WeaveFabricState *fabricState, uint64_t newFabricId)
virtual void
This method is invoked by WeaveFabricState when joining/creating a new fabric.
DidLeaveFabric(WeaveFabricState *fabricState, uint64_t oldFabricId)
virtual void
This method is invoked by WeaveFabricState when leaving/clearing a fabric.

Public functions

DidJoinFabric

virtual void DidJoinFabric(
  WeaveFabricState *fabricState,
  uint64_t newFabricId
)

This method is invoked by WeaveFabricState when joining/creating a new fabric.

Details
Parameters
[in] fabricState
The WeaveFabricState which is changed.
[in] newFabricId
The new fabric id.

DidLeaveFabric

virtual void DidLeaveFabric(
  WeaveFabricState *fabricState,
  uint64_t oldFabricId
)

This method is invoked by WeaveFabricState when leaving/clearing a fabric.

Details
Parameters
[in] fabricState
The WeaveFabricState which is changed.
[in] oldFabricId
The old/previous fabric id.