summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/skin.h
authorsimon <simon>2002-12-11 17:50:15 (UTC)
committer simon <simon>2002-12-11 17:50:15 (UTC)
commit7c897dfbee81f0fabce4b1a8de4ebab70f3783ee (patch) (side-by-side diff)
treeec8571ae41c07f78ec697b57f42ebb2d3af947b2 /noncore/multimedia/opieplayer2/skin.h
parent483e550c75f935706fde4e0ca29c4486aeca09a0 (diff)
downloadopie-7c897dfbee81f0fabce4b1a8de4ebab70f3783ee.zip
opie-7c897dfbee81f0fabce4b1a8de4ebab70f3783ee.tar.gz
opie-7c897dfbee81f0fabce4b1a8de4ebab70f3783ee.tar.bz2
- restructing a bit the skin data storage, in preparation for cache
improvements
Diffstat (limited to 'noncore/multimedia/opieplayer2/skin.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/skin.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/noncore/multimedia/opieplayer2/skin.h b/noncore/multimedia/opieplayer2/skin.h
index 9f7326e..5ab6574 100644
--- a/noncore/multimedia/opieplayer2/skin.h
+++ b/noncore/multimedia/opieplayer2/skin.h
@@ -32,11 +32,14 @@
#include "threadutil.h"
#include "singleton.h"
+struct SkinData;
+
class Skin
{
public:
Skin( const QString &name, const QString &fileNameInfix );
Skin( const QString &fileNameInfix );
+ ~Skin();
void preload( const MediaWidget::SkinButtonInfo *skinButtonInfo, uint buttonCount );
@@ -58,13 +61,7 @@ private:
QString m_fileNameInfix;
QString m_skinPath;
- typedef QMap<QString, QImage> ButtonMaskImageMap;
-
- mutable QImage m_backgroundImage;
- mutable QImage m_buttonUpImage;
- mutable QImage m_buttonDownImage;
- mutable QImage m_buttonMask;
- mutable ButtonMaskImageMap m_buttonMasks;
+ SkinData *d;
Skin( const Skin & );
Skin &operator=( const Skin & );