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
9 #include "mythlogging.h"
10 #include "mythuitype.h"
11 
12 bool ETPrintWarning::Child(const MythUIType *container,
13  const QString &child_name)
14 {
15  LOG(VB_GUI, LOG_NOTICE,
16  QString("Container '%1' is missing child '%2' at %3")
17  .arg(container->GetXMLName()).arg(child_name).arg(container->GetXMLLocation()));
18  return false;
19 }
20 
21 bool ETPrintWarning::Container(const QString &child_name)
22 {
23  LOG(VB_GUI, LOG_NOTICE,
24  QString("No valid container to search for child '%1'")
25  .arg(child_name));
26  return false;
27 }
28 
29 bool ETPrintError::Child(const MythUIType *container,
30  const QString &child_name)
31 {
32  LOG(VB_GENERAL, LOG_ERR,
33  QString("Container '%1' is missing child '%2' at %3")
34  .arg(container->GetXMLName()).arg(child_name).arg(container->GetXMLLocation()));
35  return true;
36 }
37 
38 bool ETPrintError::Container(const QString &child_name)
39 {
40  LOG(VB_GENERAL, LOG_ERR,
41  QString("No valid container to search for child '%1'")
42  .arg(child_name));
43  return true;
44 }
arg
arg(title).arg(filename).arg(doDelete))
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:23
ETPrintWarning::Child
static bool Child(const MythUIType *container, const QString &child_name)
Definition: mythuiutils.cpp:12
MythUIType::GetXMLName
QString GetXMLName(void) const
Definition: mythuitype.h:159
mythuiutils.h
mythlogging.h
MythUIType::GetXMLLocation
QString GetXMLLocation(void) const
Definition: mythuitype.h:156
ETPrintWarning::Container
static bool Container(const QString &child_name)
Definition: mythuiutils.cpp:21
ETPrintError::Child
static bool Child(const MythUIType *container, const QString &child_name)
Definition: mythuiutils.cpp:29
MythUIType
The base class on which all widgets and screens are based.
Definition: mythuitype.h:64
ETPrintError::Container
static bool Container(const QString &child_name)
Definition: mythuiutils.cpp:38
mythuitype.h