MythTV  master
Classes | Macros | Functions | Variables
mythairplayserver.cpp File Reference
#include <chrono>
#include <vector>
#include <QTcpSocket>
#include <QNetworkInterface>
#include <QCoreApplication>
#include <QKeyEvent>
#include <QCryptographicHash>
#include <QStringConverter>
#include <QTimer>
#include <QUrlQuery>
#include "libmythbase/bonjourregister.h"
#include "libmythbase/mthread.h"
#include "libmythbase/mythbinaryplist.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythrandom.h"
#include "libmythui/mythmainwindow.h"
#include "libmythui/mythuiactions.h"
#include "libmythui/mythuistatetracker.h"
#include "mythairplayserver.h"
#include "tv_actions.h"
#include "tv_play.h"
Include dependency graph for mythairplayserver.cpp:

Go to the source code of this file.

Classes

class  APHTTPRequest
 

Macros

#define LOC   QString("AirPlay: ")
 

Functions

QString AirPlayHardwareId ()
 
QString GenerateNonce (void)
 
QByteArray DigestMd5Response (const QString &response, const QString &option, const QString &nonce, const QString &password, QByteArray &auth)
 

Variables

static constexpr uint16_t HTTP_STATUS_OK { 200 }
 
static constexpr uint16_t HTTP_STATUS_SWITCHING_PROTOCOLS { 101 }
 
static constexpr uint16_t HTTP_STATUS_NOT_IMPLEMENTED { 501 }
 
static constexpr uint16_t HTTP_STATUS_UNAUTHORIZED { 401 }
 
static constexpr uint16_t HTTP_STATUS_NOT_FOUND { 404 }
 
static constexpr const char * AIRPLAY_SERVER_VERSION_STR { "115.2" }
 
static const QString SERVER_INFO
 
static const QString EVENT_INFO
 
static const QString PLAYBACK_INFO
 
static const QString NOT_READY
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("AirPlay: ")

Definition at line 39 of file mythairplayserver.cpp.

Function Documentation

◆ AirPlayHardwareId()

QString AirPlayHardwareId ( )

◆ GenerateNonce()

QString GenerateNonce ( void  )

◆ DigestMd5Response()

QByteArray DigestMd5Response ( const QString &  response,
const QString &  option,
const QString &  nonce,
const QString &  password,
QByteArray &  auth 
)

Variable Documentation

◆ HTTP_STATUS_OK

constexpr uint16_t HTTP_STATUS_OK { 200 }
staticconstexpr

◆ HTTP_STATUS_SWITCHING_PROTOCOLS

constexpr uint16_t HTTP_STATUS_SWITCHING_PROTOCOLS { 101 }
staticconstexpr

◆ HTTP_STATUS_NOT_IMPLEMENTED

constexpr uint16_t HTTP_STATUS_NOT_IMPLEMENTED { 501 }
staticconstexpr

Definition at line 43 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::StatusToString().

◆ HTTP_STATUS_UNAUTHORIZED

constexpr uint16_t HTTP_STATUS_UNAUTHORIZED { 401 }
staticconstexpr

◆ HTTP_STATUS_NOT_FOUND

constexpr uint16_t HTTP_STATUS_NOT_FOUND { 404 }
staticconstexpr

◆ AIRPLAY_SERVER_VERSION_STR

constexpr const char* AIRPLAY_SERVER_VERSION_STR { "115.2" }
staticconstexpr

◆ SERVER_INFO

const QString SERVER_INFO
static
Initial value:
{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
"<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\r\n"
"<plist version=\"1.0\">\r\n"
"<dict>\r\n"
"<key>deviceid</key>\r\n"
"<string>%1</string>\r\n"
"<key>features</key>\r\n"
"<integer>119</integer>\r\n"
"<key>model</key>\r\n"
"<string>MythTV,1</string>\r\n"
"<key>protovers</key>\r\n"
"<string>1.0</string>\r\n"
"<key>srcvers</key>\r\n"
"<string>%1</string>\r\n"
"</dict>\r\n"
"</plist>\r\n" }

Definition at line 48 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ EVENT_INFO

const QString EVENT_INFO
static
Initial value:
{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\r\n"
"<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n\r\n"
"<plist version=\"1.0\">\r\n"
"<dict>\r\n"
"<key>category</key>\r\n"
"<string>video</string>\r\n"
"<key>state</key>\r\n"
"<string>%1</string>\r\n"
"</dict>\r\n"
"</plist>\r\n" }

Definition at line 65 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::SendReverseEvent().

◆ PLAYBACK_INFO

const QString PLAYBACK_INFO
static

Definition at line 76 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ NOT_READY

const QString NOT_READY
static
Initial value:
{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
"<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\r\n"
"<plist version=\"1.0\">\r\n"
"<dict>\r\n"
"<key>readyToPlay</key>\r\n"
"<false/>\r\n"
"</dict>\r\n"
"</plist>\r\n" }

Definition at line 115 of file mythairplayserver.cpp.

Referenced by MythAirplayServer::HandleResponse().