diff -r e1e28b0273b0 -r 93fff7023be8 IEBgps/inc/IEBgpServerSession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IEBgps/inc/IEBgpServerSession.h Fri Oct 15 10:18:29 2010 +0900 @@ -0,0 +1,87 @@ +/* +* 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 __IEBGPSERVERSESSION_H__ +#define __IEBGPSERVERSESSION_H__ + +// Include files +#include +#include + +#include +#include "IEFaceBrowser.h" + + +class CIETNGeneratorAO; +class MIEFaceBrowserObserver; + +class MIEThumbNailObserver +{ +public: + +virtual void ThumbNailGenerationCompleted(TInt aError) = 0; +//virtual void ThumbNailGenerationCompleted(TInt aError) = 0; +}; + + + +class CIEBgpServerSession : public CSession2, + public MIEThumbNailObserver, + public MIEFaceBrowserObserver +{ +public: + static CIEBgpServerSession* NewL(RFs* aFileServer); + ~CIEBgpServerSession(); + +private: + void ConstructL(RFs* aFileServer); + CIEBgpServerSession(); + +public: // From CSession2 + void ServiceL(const RMessage2& aMessage); + +public: + + void ThumbNailGenerationCompleted(TInt aError); + +public: // From MIEFaceBrowserObserver + void FaceBrowsingComplete(); + void FaceBrowsingError(TInt aError); + void FaceCroppingError(TInt aError); + void FaceSingleFaceBrowsingComplete(); + +private: + +TBool iSingleTNGeneration; + +CFaceBrowser* iFaceBrowser; + +TInt iCount; +TInt iImageCount; +RArray iImageArray; +CIETNGeneratorAO *iIETNGeneratorAO; +RMessage2 iMessage; + +TFileName iJpegFileName; +TFileName iImagicThumbFileName; +TSize iResolutionSize; +CFbsBitmap* iSrcBitmap; + + +}; + +#endif // __IEBGPSERVERSESSION_H__