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

A generator request that is queued. More...

#include <libmythmetadata/imagethumbs.h>

Collaboration diagram for ThumbTask:
[legend]

Public Member Functions

 ThumbTask (QString action, const ImagePtrK &im, int priority=kUrgentPriority, bool notify=false)
 Construct request for a single image. More...
 
 ThumbTask (QString action, 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 41 of file imagethumbs.h.

Constructor & Destructor Documentation

◆ ThumbTask() [1/2]

ThumbTask::ThumbTask ( QString  action,
const 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 52 of file imagethumbs.h.

◆ ThumbTask() [2/2]

ThumbTask::ThumbTask ( QString  action,
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 65 of file imagethumbs.h.

Member Data Documentation

◆ m_images

ImageListK ThumbTask::m_images

Images for thumbnail task.

Definition at line 73 of file imagethumbs.h.

◆ m_action

QString ThumbTask::m_action

Request action: Create, delete etc.

Definition at line 75 of file imagethumbs.h.

◆ m_priority

int ThumbTask::m_priority

Request reason/priority.

Definition at line 77 of file imagethumbs.h.

◆ m_notify

bool ThumbTask::m_notify

If true, a "THUMBNAIL_CREATED" event is broadcast.

Definition at line 79 of file imagethumbs.h.


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