MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Slots | Private Attributes | List of all members
MHInteractionChannel Class Reference

#include <libmythtv/mheg/mhegic.h>

Inheritance diagram for MHInteractionChannel:
[legend]
Collaboration diagram for MHInteractionChannel:
[legend]

Public Types

enum  EStatus : std::uint8_t { kActive = 0, kInactive, kDisabled }
 
enum  EResult : std::int8_t { kError = -1, kSuccess = 0, kPending = 1 }
 

Public Member Functions

 MHInteractionChannel (QObject *parent=nullptr)
 
 ~MHInteractionChannel () override
 
bool CheckFile (const QString &csPath, const QByteArray &cert=QByteArray())
 
EResult GetFile (const QString &csPath, QByteArray &data, const QByteArray &cert=QByteArray())
 

Static Public Member Functions

static EStatus status ()
 

Private Types

using map_t = QHash< QUrl, NetStream * >
 

Private Slots

void slotFinished (QObject *obj)
 

Private Attributes

QMutex m_mutex
 
map_t m_pending
 
map_t m_finished
 

Detailed Description

Definition at line 16 of file mhegic.h.

Member Typedef Documentation

◆ map_t

using MHInteractionChannel::map_t = QHash< QUrl, NetStream* >
private

Definition at line 47 of file mhegic.h.

Member Enumeration Documentation

◆ EStatus

enum MHInteractionChannel::EStatus : std::uint8_t
Enumerator
kActive 
kInactive 
kDisabled 

Definition at line 27 of file mhegic.h.

◆ EResult

enum MHInteractionChannel::EResult : std::int8_t
Enumerator
kError 
kSuccess 
kPending 

Definition at line 35 of file mhegic.h.

Constructor & Destructor Documentation

◆ MHInteractionChannel()

MHInteractionChannel::MHInteractionChannel ( QObject *  parent = nullptr)
explicit

Definition at line 21 of file mhegic.cpp.

◆ ~MHInteractionChannel()

MHInteractionChannel::~MHInteractionChannel ( )
override

Definition at line 28 of file mhegic.cpp.

Member Function Documentation

◆ status()

MHInteractionChannel::EStatus MHInteractionChannel::status ( )
static

Definition at line 39 of file mhegic.cpp.

Referenced by MHIContext::GetICStatus().

◆ CheckFile()

bool MHInteractionChannel::CheckFile ( const QString &  csPath,
const QByteArray &  cert = QByteArray() 
)

Definition at line 64 of file mhegic.cpp.

Referenced by MHIContext::CheckCarouselObject().

◆ GetFile()

MHInteractionChannel::EResult MHInteractionChannel::GetFile ( const QString &  csPath,
QByteArray &  data,
const QByteArray &  cert = QByteArray() 
)

Definition at line 98 of file mhegic.cpp.

Referenced by MHIContext::GetCarouselData().

◆ slotFinished

void MHInteractionChannel::slotFinished ( QObject *  obj)
privateslot

Definition at line 161 of file mhegic.cpp.

Referenced by CheckFile(), and GetFile().

Member Data Documentation

◆ m_mutex

QMutex MHInteractionChannel::m_mutex
mutableprivate

Definition at line 46 of file mhegic.h.

Referenced by CheckFile(), GetFile(), slotFinished(), and ~MHInteractionChannel().

◆ m_pending

map_t MHInteractionChannel::m_pending
private

Definition at line 48 of file mhegic.h.

Referenced by CheckFile(), GetFile(), slotFinished(), and ~MHInteractionChannel().

◆ m_finished

map_t MHInteractionChannel::m_finished
private

Definition at line 49 of file mhegic.h.

Referenced by CheckFile(), GetFile(), slotFinished(), and ~MHInteractionChannel().


The documentation for this class was generated from the following files: