| 1 |
/* |
| 2 |
* Copyright (C) 2005-2018 Team Kodi |
| 3 |
* This file is part of Kodi - https://kodi.tv |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
* See LICENSES/README.md for more information. |
| 7 |
*/ |
| 8 |
|
| 9 |
#include "GUIWindowStartup.h" |
| 10 |
|
| 11 |
#include "ServiceBroker.h" |
| 12 |
#include "guilib/GUIComponent.h" |
| 13 |
#include "guilib/GUIWindowManager.h" |
| 14 |
#include "guilib/WindowIDs.h" |
| 15 |
#include "input/actions/Action.h" |
| 16 |
|
| 17 |
CGUIWindowStartup::CGUIWindowStartup(void) |
| 18 |
: CGUIWindow(WINDOW_STARTUP_ANIM, "Startup.xml") |
| 19 |
{ |
| 20 |
} |
| 21 |
|
| 22 |
CGUIWindowStartup::~CGUIWindowStartup(void) = default; |
| 23 |
|
| 24 |
bool CGUIWindowStartup::OnAction(const CAction &action) |
| 25 |
{ |
| 26 |
if (action.IsMouse()) |
| 27 |
return true; |
| 28 |
return CGUIWindow::OnAction(action); |
| 29 |
} |
| 30 |
|
| 31 |
void CGUIWindowStartup::OnDeinitWindow(int nextWindowID) |
| 32 |
{ |
| 33 |
CGUIWindow::OnDeinitWindow(nextWindowID); |
| 34 |
|
| 35 |
// let everyone know that the user interface is now ready for usage |
| 36 |
CGUIMessage msg(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_UI_READY); |
| 37 |
CServiceBroker::GetGUI()->GetWindowManager().SendThreadMessage(msg); |
| 38 |
} |