Coverage Report

Created: 2025-09-02 06:46

/src/connectedhomeip/zzz_generated/app-common/clusters/TimeSynchronization/Events.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 *
3
 *    Copyright (c) 2022 Project CHIP Authors
4
 *
5
 *    Licensed under the Apache License, Version 2.0 (the "License");
6
 *    you may not use this file except in compliance with the License.
7
 *    You may obtain a copy of the License at
8
 *
9
 *        http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *    Unless required by applicable law or agreed to in writing, software
12
 *    distributed under the License is distributed on an "AS IS" BASIS,
13
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *    See the License for the specific language governing permissions and
15
 *    limitations under the License.
16
 */
17
18
// THIS FILE IS GENERATED BY ZAP
19
// This file is generated from clusters-Events.h.zapt
20
21
#pragma once
22
23
#include <app/EventLoggingTypes.h>
24
#include <app/data-model/DecodableList.h>
25
#include <app/data-model/List.h>
26
#include <app/data-model/Nullable.h>
27
#include <lib/core/DataModelTypes.h>
28
#include <lib/core/TLV.h>
29
#include <lib/support/BitMask.h>
30
31
#include <clusters/shared/Enums.h>
32
#include <clusters/shared/Structs.h>
33
34
#include <clusters/TimeSynchronization/ClusterId.h>
35
#include <clusters/TimeSynchronization/Enums.h>
36
#include <clusters/TimeSynchronization/EventIds.h>
37
#include <clusters/TimeSynchronization/Structs.h>
38
39
#include <cstdint>
40
41
namespace chip {
42
namespace app {
43
namespace Clusters {
44
namespace TimeSynchronization {
45
namespace Events {
46
namespace DSTTableEmpty {
47
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
48
49
enum class Fields : uint8_t
50
{
51
};
52
53
struct Type
54
{
55
public:
56
1
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
57
1
    static constexpr EventId GetEventId() { return Events::DSTTableEmpty::Id; }
58
1
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
59
    static constexpr bool kIsFabricScoped = false;
60
61
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
62
};
63
64
struct DecodableType
65
{
66
public:
67
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
68
0
    static constexpr EventId GetEventId() { return Events::DSTTableEmpty::Id; }
69
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
70
71
    CHIP_ERROR Decode(TLV::TLVReader & reader);
72
};
73
} // namespace DSTTableEmpty
74
namespace DSTStatus {
75
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
76
77
enum class Fields : uint8_t
78
{
79
    kDSTOffsetActive = 0,
80
};
81
82
struct Type
83
{
84
public:
85
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
86
0
    static constexpr EventId GetEventId() { return Events::DSTStatus::Id; }
87
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
88
    static constexpr bool kIsFabricScoped = false;
89
90
    bool DSTOffsetActive = static_cast<bool>(0);
91
92
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
93
};
94
95
struct DecodableType
96
{
97
public:
98
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
99
0
    static constexpr EventId GetEventId() { return Events::DSTStatus::Id; }
100
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
101
102
    bool DSTOffsetActive = static_cast<bool>(0);
103
104
    CHIP_ERROR Decode(TLV::TLVReader & reader);
105
};
106
} // namespace DSTStatus
107
namespace TimeZoneStatus {
108
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
109
110
enum class Fields : uint8_t
111
{
112
    kOffset = 0,
113
    kName   = 1,
114
};
115
116
struct Type
117
{
118
public:
119
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
120
0
    static constexpr EventId GetEventId() { return Events::TimeZoneStatus::Id; }
121
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
122
    static constexpr bool kIsFabricScoped = false;
123
124
    int32_t offset = static_cast<int32_t>(0);
125
    Optional<chip::CharSpan> name;
126
127
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
128
};
129
130
struct DecodableType
131
{
132
public:
133
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
134
0
    static constexpr EventId GetEventId() { return Events::TimeZoneStatus::Id; }
135
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
136
137
    int32_t offset = static_cast<int32_t>(0);
138
    Optional<chip::CharSpan> name;
139
140
    CHIP_ERROR Decode(TLV::TLVReader & reader);
141
};
142
} // namespace TimeZoneStatus
143
namespace TimeFailure {
144
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
145
146
enum class Fields : uint8_t
147
{
148
};
149
150
struct Type
151
{
152
public:
153
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
154
0
    static constexpr EventId GetEventId() { return Events::TimeFailure::Id; }
155
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
156
    static constexpr bool kIsFabricScoped = false;
157
158
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
159
};
160
161
struct DecodableType
162
{
163
public:
164
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
165
0
    static constexpr EventId GetEventId() { return Events::TimeFailure::Id; }
166
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
167
168
    CHIP_ERROR Decode(TLV::TLVReader & reader);
169
};
170
} // namespace TimeFailure
171
namespace MissingTrustedTimeSource {
172
static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;
173
174
enum class Fields : uint8_t
175
{
176
};
177
178
struct Type
179
{
180
public:
181
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
182
0
    static constexpr EventId GetEventId() { return Events::MissingTrustedTimeSource::Id; }
183
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
184
    static constexpr bool kIsFabricScoped = false;
185
186
    CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const;
187
};
188
189
struct DecodableType
190
{
191
public:
192
0
    static constexpr PriorityLevel GetPriorityLevel() { return kPriorityLevel; }
193
0
    static constexpr EventId GetEventId() { return Events::MissingTrustedTimeSource::Id; }
194
0
    static constexpr ClusterId GetClusterId() { return Clusters::TimeSynchronization::Id; }
195
196
    CHIP_ERROR Decode(TLV::TLVReader & reader);
197
};
198
} // namespace MissingTrustedTimeSource
199
} // namespace Events
200
} // namespace TimeSynchronization
201
} // namespace Clusters
202
} // namespace app
203
} // namespace chip