ImageLoader Class Reference

#include <mythuiimage.h>

List of all members.

Public Member Functions

 ImageLoader ()
 ~ImageLoader ()

Static Public Member Functions

static bool PreLoad (const QString &cacheKey, const MythUIImage *uitype)
static void PostLoad (const QString &cacheKey)
static bool SupportsAnimation (const QString &filename)
static QString GenImageLabel (const ImageProperties &imProps)
 Generates a unique identifying string for this image which is used as a key in the image cache.
static MythImageLoadImage (MythPainter *painter, ImageProperties imProps, ImageCacheMode cacheMode, const MythUIImage *parent, bool &aborted, MythImageReader *imageReader=NULL)
static AnimationFramesLoadAnimatedImage (MythPainter *painter, ImageProperties imProps, ImageCacheMode cacheMode, const MythUIImage *parent, bool &aborted)

Static Public Attributes

static QHash< QString, const
MythUIImage * > 
m_loadingImages
static QMutex m_loadingImagesLock
static QWaitCondition m_loadingImagesCond

Detailed Description

Definition at line 117 of file mythuiimage.cpp.


Constructor & Destructor Documentation

ImageLoader::ImageLoader (  )  [inline]

Definition at line 120 of file mythuiimage.cpp.

ImageLoader::~ImageLoader (  )  [inline]

Definition at line 121 of file mythuiimage.cpp.


Member Function Documentation

static bool ImageLoader::PreLoad ( const QString &  cacheKey,
const MythUIImage uitype 
) [inline, static]

Definition at line 127 of file mythuiimage.cpp.

Referenced by LoadImage().

static void ImageLoader::PostLoad ( const QString &  cacheKey  )  [inline, static]

Definition at line 153 of file mythuiimage.cpp.

Referenced by LoadImage().

static bool ImageLoader::SupportsAnimation ( const QString &  filename  )  [inline, static]

Definition at line 161 of file mythuiimage.cpp.

Referenced by MythUIImage::Load(), and ImageLoadThread::run().

static QString ImageLoader::GenImageLabel ( const ImageProperties imProps  )  [inline, static]

Generates a unique identifying string for this image which is used as a key in the image cache.

Definition at line 177 of file mythuiimage.cpp.

Referenced by MythUIImage::Load(), and LoadImage().

static MythImage* ImageLoader::LoadImage ( MythPainter painter,
ImageProperties  imProps,
ImageCacheMode  cacheMode,
const MythUIImage parent,
bool aborted,
MythImageReader imageReader = NULL 
) [inline, static]

Definition at line 213 of file mythuiimage.cpp.

Referenced by MythUIImage::Load(), LoadAnimatedImage(), and ImageLoadThread::run().

static AnimationFrames* ImageLoader::LoadAnimatedImage ( MythPainter painter,
ImageProperties  imProps,
ImageCacheMode  cacheMode,
const MythUIImage parent,
bool aborted 
) [inline, static]

Definition at line 350 of file mythuiimage.cpp.

Referenced by MythUIImage::Load(), and ImageLoadThread::run().


Member Data Documentation

QHash< QString, const MythUIImage * > ImageLoader::m_loadingImages [static]

Definition at line 121 of file mythuiimage.cpp.

Referenced by PostLoad(), and PreLoad().

Definition at line 124 of file mythuiimage.cpp.

Referenced by PostLoad(), and PreLoad().

QWaitCondition ImageLoader::m_loadingImagesCond [static]

Definition at line 125 of file mythuiimage.cpp.

Referenced by PostLoad(), and PreLoad().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:06 2012 for MythTV by  doxygen 1.6.3