[ExecString] combine SplitParameters with identical function of CUtil
[xbmc.git] / xbmc / application / AppInboundProtocol.cpp
blob7a1c80dad8b1fdc660ea51227dc09a254194bcd7
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #include "AppInboundProtocol.h"
11 #include "ServiceBroker.h"
12 #include "application/Application.h"
13 #include "application/ApplicationComponents.h"
14 #include "application/ApplicationPowerHandling.h"
16 CAppInboundProtocol::CAppInboundProtocol(CApplication &app) : m_pApp(app)
21 bool CAppInboundProtocol::OnEvent(XBMC_Event &event)
23 return m_pApp.OnEvent(event);
26 void CAppInboundProtocol::SetRenderGUI(bool renderGUI)
28 auto& components = CServiceBroker::GetAppComponents();
29 const auto appPower = components.GetComponent<CApplicationPowerHandling>();
30 appPower->SetRenderGUI(renderGUI);