IEBgpClient/inc/IEImagicBGPSAO.h
changeset 3 93fff7023be8
equal deleted inserted replaced
2:e1e28b0273b0 3:93fff7023be8
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors: Juha Kauppinen, Mika Hokkanen
       
    13 * 
       
    14 * Description: Photo Browser
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __IETNCREATOR_H__
       
    19 #define __IETNCREATOR_H__
       
    20 
       
    21 #include <IEImageProcessing.h>
       
    22 #include <IEBgpsInfo.h>
       
    23 
       
    24 /**
       
    25  *  Internal Observer class between client and server
       
    26  */ 
       
    27 class MIETNInternalObserver
       
    28 {
       
    29 public:
       
    30     /**
       
    31     *  When Thumbnail generation is completed this method is 
       
    32     *  called from RunL.
       
    33     * 
       
    34     * @param  aErrorCode - KErrNone in case of no error otherwise
       
    35     *                    - System wide error code
       
    36     */
       
    37 	virtual void HandleEvents(TInt aErrorCode) = 0;
       
    38 };
       
    39 /**
       
    40  *  ThumbnailCreator class
       
    41  */ 
       
    42 class  CImagicBGPSAO : public CActive
       
    43 {
       
    44 public:
       
    45     /**
       
    46      * Symbian 1st Phase construction.
       
    47      * Creating CImagicBGPSAO object.
       
    48      * 
       
    49      * @param aIETNObserver - Internal observer between client and server
       
    50      * @return A pointer to a new instance of the CImagicBGPSAO class.
       
    51      */
       
    52 	static CImagicBGPSAO* NewL(MIETNInternalObserver& aIETNObserver);
       
    53 	
       
    54 	/**
       
    55 	 * Destructor.
       
    56 	 */
       
    57 	virtual ~CImagicBGPSAO();
       
    58 	
       
    59 private:
       
    60 	void ConstructL();
       
    61 	CImagicBGPSAO(MIETNInternalObserver& aIETNObserver);
       
    62 	
       
    63 protected: // From CActive
       
    64 	void RunL();
       
    65 	void DoCancel();
       
    66 	TInt RunError(TInt aError);
       
    67 	
       
    68 public:  
       
    69     /**
       
    70      * Activate Thumbnail genration request.
       
    71      * 
       
    72      */
       
    73 	void ActivateTNCreatorAO();
       
    74 	
       
    75 	/**
       
    76      * Cancels Thumbnail genration request.
       
    77      * 
       
    78      */
       
    79 	void DeActivateTNCreatoAO();
       
    80 	
       
    81 private:
       
    82     /** Internal observer reference **/
       
    83     MIETNInternalObserver &iIETNObserver;
       
    84 };
       
    85 
       
    86 #endif
       
    87 
       
    88