diff -r aaeeca1f15af -r e8d784ac1a4b scrsaver/scrsaverplugins/SlideshowPlugin/inc/SlideshowSlideLoader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scrsaver/scrsaverplugins/SlideshowPlugin/inc/SlideshowSlideLoader.h Wed Sep 01 12:30:40 2010 +0100 @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Loads a slide from file +* +*/ + + + +#ifndef C_SLIDESHOWSLIDELOADER_H +#define C_SLIDESHOWSLIDELOADER_H + +#include +#include +#include +#include +#include +#include +#include +#include + +class CSlideshowSlide; +class CSlideshowSlideLoader : public CActive + { +public: + // Creator + static CSlideshowSlideLoader* NewL(CSlideshowSlide *aSlide); + + // Called when image decoding done + void RunL(); + + // Called if user calls Cancel() on active object + void DoCancel(); + + //virtual distructor + virtual ~CSlideshowSlideLoader(); + + //start decoding the slide + void LoadSlideL(const TDesC& aFilename, const TSize& aTargetSize); + +private: + + // Default constructor + CSlideshowSlideLoader(CSlideshowSlide *aSlide); + + //Two Phase constructor + void ConstructL(); + + //Delete the Decoder object + void DeleteDecoder(); + + //From CActive + TInt RunError(TInt aError); + +private: + + // Target size (Phone screen size) + TSize iTargetSize; + //Bitmap size + TSize iBitmapsize; + //Decoder + CImageDecoder * iDecoder; + //Slide + CSlideshowSlide * iSlide; + + }; + +#endif // C_SLIDESHOWSLIDELOADER_H