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 <previewgeneratorqueue.h>

Collaboration diagram for PreviewGenState:
Collaboration graph
[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...
 
uint m_lastBlockTime {0}
 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 22 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 28 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 31 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 35 of file previewgeneratorqueue.h.

◆ m_lastBlockTime

uint PreviewGenState::m_lastBlockTime {0}

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

Initialized to zero.

Definition at line 39 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 43 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 47 of file previewgeneratorqueue.h.

Referenced by PreviewGeneratorQueue::SetPreviewGenerator().


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