MythTV  master
Classes | Macros | Functions
mythairplayserver.cpp File Reference
#include <QTcpSocket>
#include <QNetworkInterface>
#include <QCoreApplication>
#include <QKeyEvent>
#include <QCryptographicHash>
#include <QTimer>
#include <QUrlQuery>
#include "mthread.h"
#include "mythdate.h"
#include "mythlogging.h"
#include "mythcorecontext.h"
#include "mythuiactions.h"
#include "mythuistatetracker.h"
#include "plist.h"
#include "tv_play.h"
#include "mythmainwindow.h"
#include "tv_actions.h"
#include "bonjourregister.h"
#include "mythairplayserver.h"
Include dependency graph for mythairplayserver.cpp:

Go to the source code of this file.

Classes

class  APHTTPRequest
 

Macros

#define LOC   QString("AirPlay: ")
 
#define HTTP_STATUS_OK   200
 
#define HTTP_STATUS_SWITCHING_PROTOCOLS   101
 
#define HTTP_STATUS_NOT_IMPLEMENTED   501
 
#define HTTP_STATUS_UNAUTHORIZED   401
 
#define HTTP_STATUS_NOT_FOUND   404
 
#define AIRPLAY_SERVER_VERSION_STR   "115.2"
 
#define SERVER_INFO
 
#define EVENT_INFO
 
#define PLAYBACK_INFO
 
#define NOT_READY
 

Functions

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

Macro Definition Documentation

◆ LOC

#define LOC   QString("AirPlay: ")

Definition at line 32 of file mythairplayserver.cpp.

◆ HTTP_STATUS_OK

#define HTTP_STATUS_OK   200

Definition at line 34 of file mythairplayserver.cpp.

◆ HTTP_STATUS_SWITCHING_PROTOCOLS

#define HTTP_STATUS_SWITCHING_PROTOCOLS   101

Definition at line 35 of file mythairplayserver.cpp.

◆ HTTP_STATUS_NOT_IMPLEMENTED

#define HTTP_STATUS_NOT_IMPLEMENTED   501

Definition at line 36 of file mythairplayserver.cpp.

◆ HTTP_STATUS_UNAUTHORIZED

#define HTTP_STATUS_UNAUTHORIZED   401

Definition at line 37 of file mythairplayserver.cpp.

◆ HTTP_STATUS_NOT_FOUND

#define HTTP_STATUS_NOT_FOUND   404

Definition at line 38 of file mythairplayserver.cpp.

◆ AIRPLAY_SERVER_VERSION_STR

#define AIRPLAY_SERVER_VERSION_STR   "115.2"

Definition at line 40 of file mythairplayserver.cpp.

◆ SERVER_INFO

#define SERVER_INFO
Value:
QString("<?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>" AIRPLAY_SERVER_VERSION_STR "</string>\r\n"\
"</dict>\r\n"\
"</plist>\r\n")
#define AIRPLAY_SERVER_VERSION_STR

Definition at line 41 of file mythairplayserver.cpp.

◆ EVENT_INFO

#define EVENT_INFO
Value:
QString("<?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 58 of file mythairplayserver.cpp.

◆ PLAYBACK_INFO

#define PLAYBACK_INFO

Definition at line 69 of file mythairplayserver.cpp.

◆ NOT_READY

#define NOT_READY
Value:
QString("<?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 108 of file mythairplayserver.cpp.

Function Documentation

◆ AirPlayHardwareId()

QString AirPlayHardwareId ( void  )

◆ GenerateNonce()

QString GenerateNonce ( void  )

◆ DigestMd5Response()

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