MythTV  master
Functions | Variables
messageutils.cpp File Reference
#include <iostream>
#include <QHostAddress>
#include <QUdpSocket>
#include <QString>
#include <QFile>
#include "compat.h"
#include "exitcodes.h"
#include "mythlogging.h"
#include "messageutils.h"
Include dependency graph for messageutils.cpp:

Go to the source code of this file.

Functions

static int PrintMTemplate (const MythUtilCommandLineParser &)
 
static int PrintNTemplate (const MythUtilCommandLineParser &)
 
static int SendMessage (const MythUtilCommandLineParser &cmdline)
 
void registerMessageUtils (UtilMap &utilMap)
 

Variables

const QString kMessage
 
const QString kNotification
 

Function Documentation

◆ PrintMTemplate()

static int PrintMTemplate ( const MythUtilCommandLineParser )
static

Definition at line 43 of file messageutils.cpp.

Referenced by registerMessageUtils().

◆ PrintNTemplate()

static int PrintNTemplate ( const MythUtilCommandLineParser )
static

Definition at line 49 of file messageutils.cpp.

Referenced by registerMessageUtils().

◆ SendMessage()

static int SendMessage ( const MythUtilCommandLineParser cmdline)
static

Definition at line 55 of file messageutils.cpp.

Referenced by registerMessageUtils().

◆ registerMessageUtils()

void registerMessageUtils ( UtilMap utilMap)

Definition at line 161 of file messageutils.cpp.

Referenced by main().

Variable Documentation

◆ kMessage

const QString kMessage
Initial value:
=
"<mythmessage version=\"1\">\n"
" <text>%message_text%</text>\n"
" <timeout>%timeout%</timeout>\n"
"</mythmessage>"

Definition at line 21 of file messageutils.cpp.

Referenced by PrintMTemplate(), and SendMessage().

◆ kNotification

const QString kNotification
Initial value:
=
"<mythnotification version=\"1\">\n"
" <text>%message_text%</text>\n"
" <origin>%origin%</origin>\n"
" <description>%description%</description>\n"
" <error>%error%</error>\n"
" <timeout>%timeout%</timeout>\n"
" <image>%image%</image>\n"
" <extra>%extra%</extra>\n"
" <progress_text>%progress_text%</progress_text>\n"
" <progress>%progress%</progress>\n"
" <fullscreen>%fullscreen%</fullscreen>\n"
" <visibility>%visibility%</visibility>\n"
" <type>%type%</type>\n"
"</mythnotification>"

Definition at line 27 of file messageutils.cpp.

Referenced by PrintNTemplate(), and SendMessage().