camerauis/cameraapp/generic/inc/camstartuplogo.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 15:56:11 +0300
branchRCL_3
changeset 25 bf64cebf4673
parent 16 d486e5e3cc9a
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* Copyright (c) 2010 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:  CCoeControl to show a logo at camera application startup
*
*/

#ifndef CAMSTARTUPLOGO_H
#define CAMSTARTUPLOGO_H

#include <e32std.h>
#include <coecntrl.h>

#include "camstartuplogocontroller.h"

class CFbsBitmap;
class CPeriodic;


// Class declaration
/**
 *  CCoeControl to show a logo at camera application startup
 */
class CCamStartupLogo : public CCoeControl,
                        public MCamStartupLogoControllerObserver
{
public:
    static CCamStartupLogo* NewL(CCamStartupLogoController& aController,
                                 const TRect& aRect);
    virtual ~CCamStartupLogo();

private:
    CCamStartupLogo(CCamStartupLogoController& aController,
                    const TRect& aRect);
    void ConstructL();

    void ShowL();
    void Hide();

    void Draw(const TRect& aRect) const;

    void StartupLogoControllerStateChanged(TStartupLogoState aNewState);

private: //data
    CFbsBitmap* iLogo;     // own
    CFbsBitmap* iLogoMask; // own

    TRect iRect;

    TBool iWindowCreated;
    
    CCamStartupLogoController& iController; 
};

#endif // CAMSTARTUPLOGO_H