MythTV  master
Classes | Macros | Enumerations | Variables
jobqueue.h File Reference
#include <sys/types.h>
#include <QWaitCondition>
#include <QDateTime>
#include <QRunnable>
#include <QObject>
#include <QEvent>
#include <QMutex>
#include <QRecursiveMutex>
#include <QMap>
#include "mythtvexp.h"
#include "libmythbase/mythchrono.h"
Include dependency graph for jobqueue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  JobQueueEntry
 
struct  RunningJobInfo
 
class  JobQueue
 
struct  JobQueue::JobThreadStruct
 

Macros

#define JOBSTATUS_MAP(F)
 
#define JOBSTATUS_ENUM(A, B, C)   A = (B) ,
 

Enumerations

enum  JobStatus
 
enum  JobCmds {
  JOB_RUN = 0x0000, JOB_PAUSE = 0x0001, JOB_RESUME = 0x0002, JOB_STOP = 0x0004,
  JOB_RESTART = 0x0008
}
 
enum  JobFlags {
  JOB_NO_FLAGS = 0x0000, JOB_USE_CUTLIST = 0x0001, JOB_LIVE_REC = 0x0002, JOB_EXTERNAL = 0x0004,
  JOB_REBUILD = 0x0008
}
 
enum  JobLists {
  JOB_LIST_ALL = 0x0001, JOB_LIST_DONE = 0x0002, JOB_LIST_NOT_DONE = 0x0004, JOB_LIST_ERROR = 0x0008,
  JOB_LIST_RECENT = 0x0010
}
 
enum  JobTypes {
  JOB_NONE = 0x0000, JOB_SYSTEMJOB = 0x00ff, JOB_TRANSCODE = 0x0001, JOB_COMMFLAG = 0x0002,
  JOB_METADATA = 0x0004, JOB_PREVIEW = 0x0008, JOB_USERJOB = 0xff00, JOB_USERJOB1 = 0x0100,
  JOB_USERJOB2 = 0x0200, JOB_USERJOB3 = 0x0400, JOB_USERJOB4 = 0x0800
}
 

Variables

static QMap< QString, int > JobNameToType
 

Macro Definition Documentation

◆ JOBSTATUS_MAP

#define JOBSTATUS_MAP (   F)
Value:
F(JOB_UNKNOWN, 0x0000, JobQueue::tr("Unknown")) \
F(JOB_QUEUED, 0x0001, JobQueue::tr("Queued")) \
F(JOB_PENDING, 0x0002, JobQueue::tr("Pending")) \
F(JOB_STARTING, 0x0003, JobQueue::tr("Starting")) \
F(JOB_RUNNING, 0x0004, JobQueue::tr("Running")) \
F(JOB_STOPPING, 0x0005, JobQueue::tr("Stopping")) \
F(JOB_PAUSED, 0x0006, JobQueue::tr("Paused")) \
F(JOB_RETRY, 0x0007, JobQueue::tr("Retrying")) \
F(JOB_ERRORING, 0x0008, JobQueue::tr("Erroring")) \
F(JOB_ABORTING, 0x0009, JobQueue::tr("Aborting")) \
/* \
* JOB_DONE is a mask to indicate the job is done no matter what the \
* status \
*/ \
F(JOB_DONE, 0x0100, JobQueue::tr("Done (Invalid status!)")) \
F(JOB_FINISHED, 0x0110, JobQueue::tr("Finished")) \
F(JOB_ABORTED, 0x0120, JobQueue::tr("Aborted")) \
F(JOB_ERRORED, 0x0130, JobQueue::tr("Errored")) \
F(JOB_CANCELLED, 0x0140, JobQueue::tr("Cancelled")) \

Definition at line 25 of file jobqueue.h.

◆ JOBSTATUS_ENUM

#define JOBSTATUS_ENUM (   A,
  B,
 
)    A = (B) ,

Definition at line 43 of file jobqueue.h.

Enumeration Type Documentation

◆ JobStatus

enum JobStatus

Definition at line 44 of file jobqueue.h.

◆ JobCmds

enum JobCmds
Enumerator
JOB_RUN 
JOB_PAUSE 
JOB_RESUME 
JOB_STOP 
JOB_RESTART 

Definition at line 50 of file jobqueue.h.

◆ JobFlags

enum JobFlags
Enumerator
JOB_NO_FLAGS 
JOB_USE_CUTLIST 
JOB_LIVE_REC 
JOB_EXTERNAL 
JOB_REBUILD 

Definition at line 58 of file jobqueue.h.

◆ JobLists

enum JobLists
Enumerator
JOB_LIST_ALL 
JOB_LIST_DONE 
JOB_LIST_NOT_DONE 
JOB_LIST_ERROR 
JOB_LIST_RECENT 

Definition at line 66 of file jobqueue.h.

◆ JobTypes

enum JobTypes
Enumerator
JOB_NONE 
JOB_SYSTEMJOB 
JOB_TRANSCODE 
JOB_COMMFLAG 
JOB_METADATA 
JOB_PREVIEW 
JOB_USERJOB 
JOB_USERJOB1 
JOB_USERJOB2 
JOB_USERJOB3 
JOB_USERJOB4 

Definition at line 74 of file jobqueue.h.

Variable Documentation

◆ JobNameToType

QMap< QString, int > JobNameToType
static
Initial value:
{
{ "Transcode", JOB_TRANSCODE },
{ "Commflag", JOB_COMMFLAG },
{ "Metadata", JOB_METADATA },
{ "UserJob1", JOB_USERJOB1 },
{ "UserJob2", JOB_USERJOB2 },
{ "UserJob3", JOB_USERJOB3 },
{ "UserJob4", JOB_USERJOB4 }
}

Definition at line 90 of file jobqueue.h.

Referenced by JobQueue::GetJobTypeFromName().

JOB_USERJOB3
@ JOB_USERJOB3
Definition: jobqueue.h:86
JOB_USERJOB4
@ JOB_USERJOB4
Definition: jobqueue.h:87
JOB_COMMFLAG
@ JOB_COMMFLAG
Definition: jobqueue.h:79
JOB_USERJOB2
@ JOB_USERJOB2
Definition: jobqueue.h:85
JOB_USERJOB1
@ JOB_USERJOB1
Definition: jobqueue.h:84
JOB_METADATA
@ JOB_METADATA
Definition: jobqueue.h:80
JOB_TRANSCODE
@ JOB_TRANSCODE
Definition: jobqueue.h:78