# HG changeset patch # User Atul Varma # Date 1202859455 21600 # Node ID 34f8c30a3a6f2000b2519425f3ad33218151b9cf # Parent 0a2b5a968ce7618b36b2e04d03fcdd9e8c5f654c Oops, forgot to add this file in my last commit. diff -r 0a2b5a968ce7 -r 34f8c30a3a6f DemoCube/inc/ImageLoader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DemoCube/inc/ImageLoader.h Tue Feb 12 17:37:35 2008 -0600 @@ -0,0 +1,55 @@ +/*===================================================================== + + Copyright © 2007 Nokia Corporation. All rights reserved. + +======================================================================*/ + +// ImageLoader.h: interface for the CImageLoader class. +// +////////////////////////////////////////////////////////////////////// + +#ifndef __IMAGELOADER_H__ +#define __IMAGELOADER_H__ + +class CImageDecoder; + +class CImageLoader: public CActive +{ +public: + void ConstructL(); + static CImageLoader* NewL(TChar tDrive); + + virtual ~CImageLoader(); + + void LoadImage(const TDesC &filename, CFbsBitmap *pImg); + +private: + CImageLoader(TChar tDrive); + + // Functions from base CActive classes + /** + * From CActive cancels the Active object, empty + * @return void + */ + void DoCancel() ; + + /** + * From CActive, called when an asynchronous request has completed + * @return void + */ + + void RunL() ; + void RunError() ; + + void DeleteDecoder(); + + void SleepForMicrosecs(TInt iMicroSecsToSleep); + + CImageDecoder *pImageDecoder; + TFileName iNewFileName; + + TBuf<64> iFilename; // Filename path for HW build + TChar iDrive; // Drive letter for filename +}; + +#endif // __IMAGELOADER_H__