idlehomescreen/xmluirendering/uiengine/inc/xnwallpapercontainer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:18:30 +0300
branchRCL_3
changeset 102 ba63c83f4716
parent 0 f72a12da539e
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
* Copyright (c) 2008 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:  Wallpaper view's container.
*
*/



#ifndef XNWALLPAPERCONTAINER_H
#define XNWALLPAPERCONTAINER_H

//  INCLUDES
#include <coecntrl.h>
#include <AknsBasicBackgroundControlContext.h>

// CLASS DECLARATION

/**
*  Wallpaper container.
*  Contains wallpaper setting items.
*
*  @since S60 v5.0
*/
NONSHARABLE_CLASS( CXnWallpaperContainer ) : public CCoeControl
    {
public:
    /**
     * Two-phased constructor.
     * @return new instance of CXnWallpaperContainer.
     */
    static CXnWallpaperContainer* NewL();
    
    /**
     * Destructor.
     */
    ~CXnWallpaperContainer();
    
    /**
     * From CCoeControl
     */
    void Draw( const TRect& aRect ) const;
     
private:
    /**
     * From CCoeControl
     */
    virtual void SizeChanged();
    
    /**
     * From CCoeControl
     */
    virtual void HandleResourceChange(TInt aType);
    
    /**
     * By default Symbian 2nd phase constructor is private.
     */
    void ConstructL();
    
    /**
     * C++ default constructor.
     */
    CXnWallpaperContainer();

private:
    /**
     * Background context.
     * Own.
     */
    CAknsBasicBackgroundControlContext* iBgContext;
    };

#endif      // XNWALLPAPERCONTAINER_H  
            
// End of File