changeset 2:34f8c30a3a6f

Oops, forgot to add this file in my last commit.
author Atul Varma <varmaa@toolness.com>
date Tue, 12 Feb 2008 17:37:35 -0600
parents 0a2b5a968ce7
children 2be330cceb28
files DemoCube/inc/ImageLoader.h
diffstat 1 files changed, 55 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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__