MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / getConfiguration

Method getConfiguration

lib/DateTimePlugin/src/DateTimePlugin.cpp:206–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 *****************************************************************************/
205
206void DateTimePlugin::getConfiguration(JsonObject& jsonCfg) const
207{
208 MutexGuard<MutexRecursive> guard(m_mutex);
209
210 jsonCfg["mode"] = m_mode;
211 jsonCfg["viewMode"] = m_view.getViewMode();
212 jsonCfg["timeFormat"] = m_timeFormat;
213 jsonCfg["dateFormat"] = m_dateFormat;
214 jsonCfg["timeZone"] = m_timeZone;
215 jsonCfg["startOfWeek"] = m_view.getStartOfWeek();
216 jsonCfg["dayOnColor"] = Util::colorToHtml(m_view.getDayOnColor());
217 jsonCfg["dayOffColor"] = Util::colorToHtml(m_view.getDayOffColor());
218
219 m_view.getConfiguration(jsonCfg);
220}
221
222bool DateTimePlugin::setConfiguration(const JsonObjectConst& jsonCfg)
223{

Callers

nothing calls this directly

Calls 2

getViewModeMethod · 0.45
getStartOfWeekMethod · 0.45

Tested by

no test coverage detected