MythTV  master
mythuiutils.cpp
Go to the documentation of this file.
1 
2 // Own header
3 #include "mythuiutils.h"
4 
5 // QT headers
6 #include <QString>
7 
8 // libmythbase headers
10 
11 // libmythui headers
12 #include "mythuitype.h"
13 
14 bool ETPrintWarning::Child(const MythUIType *container,
15  const QString &child_name)
16 {
17  LOG(VB_GUI, LOG_NOTICE,
18  QString("Container '%1' is missing child '%2' at %3")
19  .arg(container->GetXMLName(), child_name, container->GetXMLLocation()));
20  return false;
21 }
22 
23 bool ETPrintWarning::Container(const QString &child_name)
24 {
25  LOG(VB_GUI, LOG_NOTICE,
26  QString("No valid container to search for child '%1'")
27  .arg(child_name));
28  return false;
29 }
30 
31 bool ETPrintError::Child(const MythUIType *container,
32  const QString &child_name)
33 {
34  LOG(VB_GENERAL, LOG_ERR,
35  QString("Container '%1' is missing child '%2' at %3")
36  .arg(container->GetXMLName(), child_name, container->GetXMLLocation()));
37  return true;
38 }
39 
40 bool ETPrintError::Container(const QString &child_name)
41 {
42  LOG(VB_GENERAL, LOG_ERR,
43  QString("No valid container to search for child '%1'")
44  .arg(child_name));
45  return true;
46 }
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39
ETPrintWarning::Child
static bool Child(const MythUIType *container, const QString &child_name)
Definition: mythuiutils.cpp:14
MythUIType::GetXMLName
QString GetXMLName(void) const
Definition: mythuitype.h:183
mythuiutils.h
mythlogging.h
MythUIType::GetXMLLocation
QString GetXMLLocation(void) const
Definition: mythuitype.h:180
ETPrintWarning::Container
static bool Container(const QString &child_name)
Definition: mythuiutils.cpp:23
ETPrintError::Child
static bool Child(const MythUIType *container, const QString &child_name)
Definition: mythuiutils.cpp:31
MythUIType
The base class on which all widgets and screens are based.
Definition: mythuitype.h:85
ETPrintError::Container
static bool Container(const QString &child_name)
Definition: mythuiutils.cpp:40
mythuitype.h