[videodb] Remove nested transaction when saving state after stopping PVR playback
[xbmc.git] / xbmc / windows / GUIWindowLoginScreen.h
blob500bee7fec41e2df9c29f14656d0cea4fd60be54
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 #pragma once
11 #include "guilib/GUIDialog.h"
12 #include "utils/Stopwatch.h"
13 #include "view/GUIViewControl.h"
15 class CFileItemList;
17 class CGUIWindowLoginScreen : public CGUIWindow
19 public:
20 CGUIWindowLoginScreen(void);
21 ~CGUIWindowLoginScreen(void) override;
22 bool OnMessage(CGUIMessage& message) override;
23 bool OnAction(const CAction &action) override;
24 bool OnBack(int actionID) override;
25 void FrameMove() override;
26 bool HasListItems() const override { return true; }
27 CFileItemPtr GetCurrentListItem(int offset = 0) override;
28 int GetViewContainerID() const override { return m_viewControl.GetCurrentControl(); }
30 protected:
31 void OnInitWindow() override;
32 void OnWindowLoaded() override;
33 void OnWindowUnload() override;
34 void Update();
35 void SetLabel(int iControl, const std::string& strLabel);
37 bool OnPopupMenu(int iItem);
38 CGUIViewControl m_viewControl;
39 CFileItemList* m_vecItems;
41 int m_iSelectedItem;
42 CStopWatch watch;