MythTV  master
Macros | Variables
mythfexml.cpp File Reference
#include "mythfexml.h"
#include "mythcorecontext.h"
#include "mythdate.h"
#include "mythdbcon.h"
#include "mythmainwindow.h"
#include <QTextStream>
#include <QCoreApplication>
#include <QDir>
#include <QFile>
#include <QRegExp>
#include <QBuffer>
#include <QKeyEvent>
#include "../../config.h"
#include "keybindings.h"
#include "services/frontend.h"
Include dependency graph for mythfexml.cpp:

Go to the source code of this file.

Macros

#define BUTTON(action, desc)   QString(" <input class=\"bigb\" type=\"button\" value=\"%1\" onClick=\"postaction('%2');\"></input>\r\n").arg(action).arg(desc)
 

Variables

static const QString PROCESS_ACTION
 
static const QString HIDDEN_IFRAME
 

Macro Definition Documentation

◆ BUTTON

#define BUTTON (   action,
  desc 
)    QString(" <input class=\"bigb\" type=\"button\" value=\"%1\" onClick=\"postaction('%2');\"></input>\r\n").arg(action).arg(desc)

Definition at line 205 of file mythfexml.cpp.

Variable Documentation

◆ PROCESS_ACTION

const QString PROCESS_ACTION
static
Initial value:
=
" <script type =\"text/javascript\">\n"
" function postaction(action) {\n"
" var myForm = document.createElement(\"form\");\n"
" myForm.method =\"Post\";\n"
" myForm.action =\"../Frontend/SendAction?\";\n"
" myForm.target =\"post_target\";\n"
" var myInput = document.createElement(\"input\");\n"
" myInput.setAttribute(\"name\", \"Action\");\n"
" myInput.setAttribute(\"value\", action);\n"
" myForm.appendChild(myInput);\n"
" document.body.appendChild(myForm);\n"
" myForm.submit();\n"
" document.body.removeChild(myForm);\n"
" }\n"
" </script>\n"

Definition at line 148 of file mythfexml.cpp.

Referenced by MythFEXML::GetActionListTest(), and MythFEXML::GetRemote().

◆ HIDDEN_IFRAME

const QString HIDDEN_IFRAME
static
Initial value:
=
" <iframe id=\"hidden_target\" name=\"post_target\" src=\"\""
" style=\"width:0;height:0;border:0px solid #fff;\"></iframe>\n"

Definition at line 165 of file mythfexml.cpp.

Referenced by MythFEXML::GetActionListTest(), and MythFEXML::GetRemote().