kodi
DialogOKHelper.h
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 #pragma once
10 
11 #include "utils/Variant.h"
12 
13 #include <array>
14 #include <string>
15 
16 namespace KODI
17 {
18 namespace MESSAGING
19 {
20 namespace HELPERS
21 {
22 
30 {
33  std::array<CVariant, 3> lines;
34  bool show = true;
35 };
36 
46 void UpdateOKDialogText(CVariant heading, CVariant text);
47 
58 bool ShowOKDialogText(CVariant heading, CVariant text);
59 
72 bool ShowOKDialogLines(CVariant heading, CVariant line0, CVariant line1 = CVariant(),
73  CVariant line2 = CVariant());
74 
75 }
76 }
77 }
CVariant text
Body text to be displayed, this is mutually exclusive with lines below.
Definition: DialogOKHelper.h:32
Definition: DialogOKHelper.h:29
Definition: Variant.h:31
std::array< CVariant, 3 > lines
Body text to be displayed, specified as three lines. This is mutually exclusive with the text above...
Definition: DialogOKHelper.h:33
Definition: AudioDecoder.h:18
bool show
bool to see if the dialog needs to be shown
Definition: DialogOKHelper.h:34
CVariant heading
Heading to be displayed in the dialog box.
Definition: DialogOKHelper.h:31