class DoNotDisturbSettings
Defined at line 1773 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/natural_types.h
Settings related to do-not-disturb (DND) mode.
Public Methods
void DoNotDisturbSettings (Storage_ storage)
void DoNotDisturbSettings ()
Defined at line 1778 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/natural_types.h
void DoNotDisturbSettings (DoNotDisturbSettings && )
Defined at line 1779 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/natural_types.h
void DoNotDisturbSettings (const DoNotDisturbSettings & other)
DoNotDisturbSettings & operator= (DoNotDisturbSettings && )
Defined at line 1780 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/natural_types.h
DoNotDisturbSettings & operator= (const DoNotDisturbSettings & other)
bool operator== (const DoNotDisturbSettings & other)
bool operator!= (const DoNotDisturbSettings & other)
bool IsEmpty ()
const std::optional<bool> & user_initiated_do_not_disturb ()
If true, the device is in do-not-disturb (DND) mode. Change this value
if you're directly responding to a user-initiated event.
Note that the device could still be in DND mode even if this is set to
`false`, as [`night_mode_initiated_do_not_disturb`] might be `true`. To
actually disable DND mode, set both fields to `false`.
To know whether DND is enabled, you need to do a boolean OR of both
fields.
::std::optional<bool> & user_initiated_do_not_disturb ()
If true, the device is in do-not-disturb (DND) mode. Change this value
if you're directly responding to a user-initiated event.
Note that the device could still be in DND mode even if this is set to
`false`, as [`night_mode_initiated_do_not_disturb`] might be `true`. To
actually disable DND mode, set both fields to `false`.
To know whether DND is enabled, you need to do a boolean OR of both
fields.
DoNotDisturbSettings & user_initiated_do_not_disturb (std::optional<bool> value)
If true, the device is in do-not-disturb (DND) mode. Change this value
if you're directly responding to a user-initiated event.
Note that the device could still be in DND mode even if this is set to
`false`, as [`night_mode_initiated_do_not_disturb`] might be `true`. To
actually disable DND mode, set both fields to `false`.
To know whether DND is enabled, you need to do a boolean OR of both
fields.
const std::optional<bool> & night_mode_initiated_do_not_disturb ()
If true, the device is in do-not-disturb (DND) mode. Change this value
if you're trying to enable or disable DND based on a nightly schedule.
Note that the device could still be in DND mode even if this is set to
`false`, as [`user_initiated_do_not_disturb`] might be `true`. Do not
set that field to `false` unless you're directly responding to a
user-initiated event.
To know whether DND is enabled, you need to do a boolean OR of both
fields.
::std::optional<bool> & night_mode_initiated_do_not_disturb ()
If true, the device is in do-not-disturb (DND) mode. Change this value
if you're trying to enable or disable DND based on a nightly schedule.
Note that the device could still be in DND mode even if this is set to
`false`, as [`user_initiated_do_not_disturb`] might be `true`. Do not
set that field to `false` unless you're directly responding to a
user-initiated event.
To know whether DND is enabled, you need to do a boolean OR of both
fields.
DoNotDisturbSettings & night_mode_initiated_do_not_disturb (std::optional<bool> value)
If true, the device is in do-not-disturb (DND) mode. Change this value
if you're trying to enable or disable DND based on a nightly schedule.
Note that the device could still be in DND mode even if this is set to
`false`, as [`user_initiated_do_not_disturb`] might be `true`. Do not
set that field to `false` unless you're directly responding to a
user-initiated event.
To know whether DND is enabled, you need to do a boolean OR of both
fields.
void DoNotDisturbSettings (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits