27
27
28
28
#include < access/AccessControl.h>
29
29
#include < app/AppConfig.h>
30
- #include < app/MessageDef/AttributeReportIBs.h>
31
- #include < app/MessageDef/ReportDataMessage.h>
32
- #include < app/SubscriptionResumptionSessionEstablisher.h>
33
- #include < lib/core/CHIPCore.h>
34
- #include < lib/support/CodeUtils.h>
35
- #include < lib/support/DLLUtil.h>
36
- #include < lib/support/Pool.h>
37
- #include < lib/support/logging/CHIPLogging.h>
38
- #include < messaging/ExchangeContext.h>
39
- #include < messaging/ExchangeMgr.h>
40
- #include < messaging/Flags.h>
41
- #include < protocols/Protocols.h>
42
- #include < protocols/interaction_model/Constants.h>
43
- #include < system/SystemPacketBuffer.h>
44
-
45
30
#include < app/AttributePathParams.h>
46
31
#include < app/CommandHandler.h>
47
32
#include < app/CommandHandlerInterface.h>
51
36
#include < app/ConcreteEventPath.h>
52
37
#include < app/DataVersionFilter.h>
53
38
#include < app/EventPathParams.h>
39
+ #include < app/MessageDef/AttributeReportIBs.h>
40
+ #include < app/MessageDef/ReportDataMessage.h>
54
41
#include < app/ObjectList.h>
55
42
#include < app/ReadClient.h>
56
43
#include < app/ReadHandler.h>
57
44
#include < app/StatusResponse.h>
45
+ #include < app/SubscriptionManager.h>
46
+ #include < app/SubscriptionResumptionSessionEstablisher.h>
58
47
#include < app/TimedHandler.h>
59
48
#include < app/WriteClient.h>
60
49
#include < app/WriteHandler.h>
61
50
#include < app/reporting/Engine.h>
62
51
#include < app/reporting/ReportScheduler.h>
63
52
#include < app/util/attribute-metadata.h>
64
53
#include < app/util/basic-types.h>
54
+ #include < lib/core/CHIPCore.h>
55
+ #include < lib/support/CodeUtils.h>
56
+ #include < lib/support/DLLUtil.h>
57
+ #include < lib/support/Pool.h>
58
+ #include < lib/support/logging/CHIPLogging.h>
59
+ #include < messaging/ExchangeContext.h>
60
+ #include < messaging/ExchangeMgr.h>
61
+ #include < messaging/Flags.h>
62
+ #include < protocols/Protocols.h>
63
+ #include < protocols/interaction_model/Constants.h>
64
+ #include < system/SystemPacketBuffer.h>
65
65
66
66
#include < app/CASESessionManager.h>
67
67
@@ -79,7 +79,8 @@ class InteractionModelEngine : public Messaging::UnsolicitedMessageHandler,
79
79
public Messaging::ExchangeDelegate,
80
80
public CommandHandler::Callback,
81
81
public ReadHandler::ManagementCallback,
82
- public FabricTable::Delegate
82
+ public FabricTable::Delegate,
83
+ public SubscriptionManager
83
84
{
84
85
public:
85
86
/* *
@@ -323,8 +324,9 @@ class InteractionModelEngine : public Messaging::UnsolicitedMessageHandler,
323
324
324
325
CHIP_ERROR ResumeSubscriptions ();
325
326
326
- // Check if a given subject (CAT or NodeId) has at least 1 active subscription
327
- bool SubjectHasActiveSubscription (const FabricIndex aFabricIndex, const NodeId & subject);
327
+ bool SubjectHasActiveSubscription (const FabricIndex & aFabricIndex, const NodeId & subject) override ;
328
+
329
+ bool SubjectHasPersistedSubscription (const FabricIndex & aFabricIndex, const NodeId & subject) override ;
328
330
329
331
#if CONFIG_BUILD_FOR_HOST_UNIT_TEST
330
332
//
0 commit comments