[cosmetic] AddVideoAsset function cleanup
[xbmc.git] / xbmc / video / dialogs / GUIDialogTeletext.h
blob4a60ec00a9e05279e94743ac960188e265bd210c
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 "video/Teletext.h"
14 #include <memory>
16 class CTexture;
18 class CGUIDialogTeletext : public CGUIDialog
20 public:
21 CGUIDialogTeletext(void);
22 ~CGUIDialogTeletext(void) override;
23 bool OnMessage(CGUIMessage& message) override;
24 bool OnAction(const CAction& action) override;
25 bool OnBack(int actionID) override;
26 void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override;
27 void Render() override;
28 void OnInitWindow() override;
29 void OnDeinitWindow(int nextWindowID) override;
31 protected:
32 bool m_bClose; /* Close sendet, needed for fade out */
33 std::unique_ptr<CTexture> m_pTxtTexture; /* Texture info class to render to screen */
34 CRect m_vertCoords; /* Coordinates of teletext field on screen */
35 CTeletextDecoder m_TextDecoder; /* Decoding class for teletext code */
37 private:
38 void SetCoordinates();