Which of the phone's optional features a face has, worked out from the message keys it declares. The waf build defines a HAS_MESSAGE_KEY_* for every key in the face's messageKeys, and this turns those into one switch per feature, so every file asking the same question gets the same answer. More...
#include "system/settings/plugin_source.h"Go to the source code of this file.
Macros | |
| #define | APPMESSAGE_HAS_WEATHER 1 |
| the face declares all four weather keys | |
| #define | APPMESSAGE_HAS_LOCATION 1 |
| the face declares both coordinate keys | |
Which of the phone's optional features a face has, worked out from the message keys it declares. The waf build defines a HAS_MESSAGE_KEY_* for every key in the face's messageKeys, and this turns those into one switch per feature, so every file asking the same question gets the same answer.
APPMESSAGE_HAS_SETTINGS is defined when the face declares both settings keys, so the phone can ask for its settings and put them back after a wipe. APPMESSAGE_HAS_WEATHER is defined when the face has weather, and APPMESSAGE_HAS_LOCATION when it gets coordinates. APPMESSAGE_HAS_WEATHER_EXTRAS, APPMESSAGE_HAS_WEATHER_FORECAST, and APPMESSAGE_HAS_WEATHER_AIR are defined for each weather group the face declares whole. APPMESSAGE_HAS_PHONE is defined when it shows the phone's battery, and APPMESSAGE_HAS_MUSIC when it shows what the phone is playing. APPMESSAGE_HAS_MUSIC_ART is defined when it shows album art too.
A face that declares part of a set stops the build here, with each missing key named. The manifest build refuses the same sets before it writes any sandbox, naming the face, so these are what still stops a build run some other way.
A face that keeps a plugin source choice without both settings keys stops the build here too. The manifest build adds both for it, so this is what still stops a build run some other way.