class Profile
Defined at line 477 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
A collection of ranked internationalization properties.
There is no implied origin for this information; it might come from a user account, device
settings, a synthesis of user settings and app-specific overrides, or anywhere else.
Language-independent properties that are supported by Unicode BCP-47 Locale IDs (e.g.
first-day-of-week, time zone) are denormalized into the locale IDs in `locales`.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
const ::std::vector< ::fuchsia::intl::LocaleId> & locales ()
Ranked list of locales (in descending order of preference). The vector will always
be set, and always contain at least one element. For example,
locales = [ LocaleId("en-US") ] is valid, but locales = [], or locales =
<unset
> is not.
Defined at line 486 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
bool has_locales ()
Defined at line 490 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
::std::vector< ::fuchsia::intl::LocaleId> * mutable_locales ()
Ranked list of locales (in descending order of preference). The vector will always
be set, and always contain at least one element. For example,
locales = [ LocaleId("en-US") ] is valid, but locales = [], or locales =
<unset
> is not.
Defined at line 497 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
void clear_locales ()
Defined at line 505 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
const ::std::vector< ::fuchsia::intl::CalendarId> & calendars ()
Ranked list of calendars (in descending order of preference).
The first entry is the primary calendar, and will be equal to the calendar indicated
in `locales`.
The vector will always be set, and always contain at least one element.
The list allows multiple ranked preferences, and is intended for use
by applications that can display multiple calendar systems.
Defined at line 519 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
bool has_calendars ()
Defined at line 523 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
::std::vector< ::fuchsia::intl::CalendarId> * mutable_calendars ()
Ranked list of calendars (in descending order of preference).
The first entry is the primary calendar, and will be equal to the calendar indicated
in `locales`.
The vector will always be set, and always contain at least one element.
The list allows multiple ranked preferences, and is intended for use
by applications that can display multiple calendar systems.
Defined at line 533 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
void clear_calendars ()
Defined at line 541 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
bool has_time_zones ()
Defined at line 561 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
::std::vector< ::fuchsia::intl::TimeZoneId> * mutable_time_zones ()
Ranked list of time zones (in descending order). The first entry is the primary time zone,
which should be used by default for formatting dates and times; it will be equal to the
calendar indicated in `locales`.
The list is intended for use by applications that can display multiple time zones, e.g.
a world clock.
The vector will always be set, and always contain at least one element.
On Fuchsia, the default time zone is always `DEFAULT_TIME_ZONE_ID` when
no more specific time zones have been defined or selected.
Defined at line 573 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
void clear_time_zones ()
Defined at line 581 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
bool has_temperature_unit ()
Defined at line 596 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
::fuchsia::intl::TemperatureUnit * mutable_temperature_unit ()
Selected temperature unit. The unit is always reported: if there is no
setting in the current environment, the default value of CELSIUS is
used.
Defined at line 603 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
void clear_temperature_unit ()
Defined at line 611 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
Profile & set_locales (::std::vector< ::fuchsia::intl::LocaleId> _value)
Profile & set_calendars (::std::vector< ::fuchsia::intl::CalendarId> _value)
Profile & set_time_zones (::std::vector< ::fuchsia::intl::TimeZoneId> _value)
Profile & set_temperature_unit (::fuchsia::intl::TemperatureUnit _value)
void Profile ()
void Profile (Profile && other)
const ::std::vector< ::fuchsia::intl::TimeZoneId> & time_zones ()
Ranked list of time zones (in descending order). The first entry is the primary time zone,
which should be used by default for formatting dates and times; it will be equal to the
calendar indicated in `locales`.
The list is intended for use by applications that can display multiple time zones, e.g.
a world clock.
The vector will always be set, and always contain at least one element.
On Fuchsia, the default time zone is always `DEFAULT_TIME_ZONE_ID` when
no more specific time zones have been defined or selected.
Defined at line 557 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
const ::fuchsia::intl::TemperatureUnit & temperature_unit ()
Selected temperature unit. The unit is always reported: if there is no
setting in the current environment, the default value of CELSIUS is
used.
Defined at line 592 of file fidling/gen/sdk/fidl/fuchsia.intl/fuchsia.intl/hlcpp/fuchsia/intl/cpp/fidl.h
void ~Profile ()
Profile & operator= (Profile && other)
::std::unique_ptr<Profile> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Profile * _value, size_t _offset)
zx_status_t Clone (Profile * _result)