diff -r e1e28b0273b0 -r 93fff7023be8 EngInc/IEImageFinderAO.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/EngInc/IEImageFinderAO.h Fri Oct 15 10:18:29 2010 +0900 @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2009 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: Juha Kauppinen, Mika Hokkanen +* +* Description: Photo Browser +* +*/ + +#ifndef __IEIMAGEFINDER_H_ +#define __IEIMAGEFINDER_H_ + +// INCLUDES +#include +#include +#include +#include + +#include "IEFileLoader.h" +#include +#include + + +// FORWARD DECLARATIONS + +class CIEImageFinder : public CBase + { + public: + static CIEImageFinder* NewL(CIEFileLoader* aCallback, RArray& aFileNameData,TBool& aAll128x128TNsDone, + TBool& aAll640x480TNsDone, TBool& aAll320x320TNsDone, RCriticalSection* aCritical); + + static CIEImageFinder* NewLC(CIEFileLoader* aCallback, RArray& aFileNameData,TBool& aAll128x128TNsDone, + TBool& aAll640x480TNsDone, TBool& aAll320x320TNsDone, RCriticalSection* aCritical); + + CIEImageFinder(CIEFileLoader* callback, RArray& aFileNameData, TBool& aAll128x128TNsDone, + TBool& aAll640x480TNsDone, TBool& aAll320x320TNsDone, RCriticalSection* aCritical); + void ConstructL(); + ~CIEImageFinder(); + void ScanDirL(CDir* dir, const TDesC& aDir, const TDesC& aWild); + //void ScanDirL(const TDesC& aDir, const TDesC& aWild); + void SearchFilesL(const TDesC& aRootPath, const TDesC& aSearchName); + void IEImageFinderStartL(const TDesC& aRootPath, const TDesC& aSearchName); + TInt CheckIfFileExist(TFileName& aFileName); + float ReadAspectRatioL(TFileName& aFileName); + + private: + TBool IsFileExist(const TDesC &aFileName); + void CheckForTNFiles(TImageData &aImageData); + float ReadExifDataL(const TDes &aFileName); + + + private: + RFs iFileServer; + CIEFileLoader* iCallback; + RArray& iFileNameData; + TBool& iAll640x480TNsDone; + TBool& iAll128x128TNsDone; + TBool& iAll320x320TNsDone; + TBufC iRootPath; + TBufC iSearchName; + RCriticalSection* iCritical; + TExifReaderUtility* iExifReader; +// CImageDecoder* iImageDecoder; + TBool iTnFoldersCreated; + }; + +#endif //__IEIMAGEFINDER_H_ + +// End of File