1 #ifndef KVI_ANIMATEDPIXMAPCACHE_H_
2 #define KVI_ANIMATEDPIXMAPCACHE_H_
69 pixmap =
new QPixmap(*pixmap);
80 class Data :
public QList<FrameInfo>
88 Data(QString szFile) : QList<
FrameInfo>(), refs(0), file(szFile), resized(false)
94 for(
int i = 0;
i < count();
i++)
120 Data * internalLoad(
const QString & szFile,
int iWidth = 0,
int iHeight = 0);
121 Data * internalResize(
Data * data,
const QSize & size);
122 void internalFree(
Data * data);
128 virtual void timeoutEvent();
136 m_pInstance->internalScheduleFrameChange(delay, receiver);
139 static Data *
load(
const QString & szFileName,
int iWidth = 0,
int iHeight = 0)
141 return m_pInstance->internalLoad(szFileName, iWidth, iHeight);
146 return m_pInstance->internalResize(data, size);
151 m_pInstance->internalFree(data);
154 static QPixmap * dummyPixmap();
158 m_pInstance->internalNotifyDelete(receiver);
FrameInfo(QPixmap *_pixmap, uint _delay)
Definition: KviAnimatedPixmapCache.h:55
static Data * resize(Data *data, const QSize &size)
Definition: KviAnimatedPixmapCache.h:144
Definition: KviAnimatedPixmapCache.h:49
static void scheduleFrameChange(uint delay, KviAnimatedPixmapInterface *receiver)
Definition: KviAnimatedPixmapCache.h:134
Definition: KviAnimatedPixmapInterface.h:30
void detach()
Definition: KviAnimatedPixmapCache.h:67
QMutex m_cacheMutex
Definition: KviAnimatedPixmapCache.h:110
static KviAnimatedPixmapCache * m_pInstance
Definition: KviAnimatedPixmapCache.h:117
static void notifyDelete(KviAnimatedPixmapInterface *receiver)
Definition: KviAnimatedPixmapCache.h:156
#define i
Definition: detector.cpp:73
QMultiHash< QString, Data * > m_hCache
Definition: KviAnimatedPixmapCache.h:113
static Data * load(const QString &szFileName, int iWidth=0, int iHeight=0)
Definition: KviAnimatedPixmapCache.h:139
void done()
Definition: KviKvs.cpp:50
QString file
Definition: KviAnimatedPixmapCache.h:85
FrameInfo(const FrameInfo &source)
Definition: KviAnimatedPixmapCache.h:61
bool resized
Definition: KviAnimatedPixmapCache.h:86
static void free(Data *data)
Definition: KviAnimatedPixmapCache.h:149
Data(Data &other)
Definition: KviAnimatedPixmapCache.h:92
QSize size
Definition: KviAnimatedPixmapCache.h:84
uint refs
Definition: KviAnimatedPixmapCache.h:83
Definition: KviAnimatedPixmapCache.h:80
QMultiMap< long long, KviAnimatedPixmapInterface * > m_timerData
Definition: KviAnimatedPixmapCache.h:114
QMutex m_timerMutex
Definition: KviAnimatedPixmapCache.h:111
Data(QString szFile)
Definition: KviAnimatedPixmapCache.h:88
int init()
Definition: winamp.cpp:118
uint delay
Definition: KviAnimatedPixmapCache.h:53
This file contains compile time settings.
QTimer m_animationTimer
Definition: KviAnimatedPixmapCache.h:115
#define KVILIB_API
Definition: kvi_settings.h:125
Definition: KviAnimatedPixmapCache.h:36
QPixmap * pixmap
Definition: KviAnimatedPixmapCache.h:52