MythTV  master
Public Member Functions | Public Attributes | List of all members
PreviewGenState Class Reference

This class holds all the state information related to a specific preview generator. More...

#include <libmythtv/previewgeneratorqueue.h>

Collaboration diagram for PreviewGenState:
[legend]

Public Member Functions

 PreviewGenState ()=default
 

Public Attributes

PreviewGeneratorm_gen {nullptr}
 A pointer to the generator that this state object describes. More...
 
bool m_genStarted {false}
 The preview generator for this file is currently running. More...
 
uint m_attempts {0}
 How many attempts have been made to generate a preview for this file. More...
 
std::chrono::seconds m_lastBlockTime {0s}
 The amount of time (in seconds) that this generator was blocked before it could start. More...
 
QDateTime m_blockRetryUntil
 Any request to generate an image will be ignored until after this time. More...
 
QSet< QString > m_tokens
 The full set of tokens for all callers that have requested this preview. More...
 

Detailed Description

This class holds all the state information related to a specific preview generator.

Definition at line 23 of file previewgeneratorqueue.h.

Constructor & Destructor Documentation

◆ PreviewGenState()

PreviewGenState::PreviewGenState ( )
default

Member Data Documentation

◆ m_gen

PreviewGenerator* PreviewGenState::m_gen {nullptr}

A pointer to the generator that this state object describes.

Definition at line 29 of file previewgeneratorqueue.h.

Referenced by PreviewGeneratorQueue::SetPreviewGenerator().

◆ m_genStarted

bool PreviewGenState::m_genStarted {false}

The preview generator for this file is currently running.

Definition at line 32 of file previewgeneratorqueue.h.

Referenced by PreviewGeneratorQueue::SetPreviewGenerator().

◆ m_attempts

uint PreviewGenState::m_attempts {0}

How many attempts have been made to generate a preview for this file.

Definition at line 36 of file previewgeneratorqueue.h.

◆ m_lastBlockTime

std::chrono::seconds PreviewGenState::m_lastBlockTime {0s}

The amount of time (in seconds) that this generator was blocked before it could start.

Initialized to zero.

Definition at line 40 of file previewgeneratorqueue.h.

◆ m_blockRetryUntil

QDateTime PreviewGenState::m_blockRetryUntil

Any request to generate an image will be ignored until after this time.

Definition at line 44 of file previewgeneratorqueue.h.

◆ m_tokens

QSet<QString> PreviewGenState::m_tokens

The full set of tokens for all callers that have requested this preview.

Definition at line 48 of file previewgeneratorqueue.h.

Referenced by PreviewGeneratorQueue::SetPreviewGenerator().


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