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

A generator request that is queued. More...

#include <imagethumbs.h>

Public Member Functions

 ThumbTask (QString action, ImagePtrK im, int priority=kUrgentPriority, bool notify=false)
 Construct request for a single image. More...
 
 ThumbTask (QString action, const ImageListK &list, int priority=kUrgentPriority, bool notify=false)
 Construct request for a list of images/dirs. More...
 

Public Attributes

ImageListK m_images
 Images for thumbnail task. More...
 
QString m_action
 Request action: Create, delete etc. More...
 
int m_priority
 Request reason/priority. More...
 
bool m_notify
 If true, a "THUMBNAIL_CREATED" event is broadcast. More...
 

Detailed Description

A generator request that is queued.

Definition at line 37 of file imagethumbs.h.

Constructor & Destructor Documentation

◆ ThumbTask() [1/2]

ThumbTask::ThumbTask ( QString  action,
ImagePtrK  im,
int  priority = kUrgentPriority,
bool  notify = false 
)
inline

Construct request for a single image.

Parameters
actionRequest action
imImage object that will be deleted.
priorityRequest priority
notifyIf true a 'thumbnail exists' event will be broadcast when done.

Definition at line 48 of file imagethumbs.h.

◆ ThumbTask() [2/2]

ThumbTask::ThumbTask ( QString  action,
const ImageListK list,
int  priority = kUrgentPriority,
bool  notify = false 
)
inline

Construct request for a list of images/dirs.

Assumes ownership of list contents. Items will be deleted after processing

Parameters
actionRequest action
listImage objects that will be deleted.
priorityRequest priority
notifyIf true a 'thumbnail exists' event will be broadcast when done.

Definition at line 61 of file imagethumbs.h.

Member Data Documentation

◆ m_images

ImageListK ThumbTask::m_images

Images for thumbnail task.

Definition at line 69 of file imagethumbs.h.

◆ m_action

QString ThumbTask::m_action

Request action: Create, delete etc.

Definition at line 71 of file imagethumbs.h.

◆ m_priority

int ThumbTask::m_priority

Request reason/priority.

Definition at line 73 of file imagethumbs.h.

◆ m_notify

bool ThumbTask::m_notify

If true, a "THUMBNAIL_CREATED" event is broadcast.

Definition at line 75 of file imagethumbs.h.


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