idlehomescreen/xmluirendering/uiengine/inc/xnwallpaperview.h
changeset 0 f72a12da539e
child 5 c743ef5928ba
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2008 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:
       
    13 *
       
    14 * Description:  Wallpaper view. View is used to get skin background
       
    15 *               to image selection grid.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CXNWALLPAPERVIEW_H
       
    22 #define CXNWALLPAPERVIEW_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <aknview.h>
       
    26 
       
    27 class CXnWallpaperContainer;
       
    28 class CXnUiEngine;
       
    29 
       
    30 // CONSTANTS
       
    31 const TUid KWallpaperViewUid = { 0x200286DB };
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  Wallpaper view.
       
    37 *  Possible to define current Idle background image.
       
    38 *
       
    39 *  @since S60 v5.0
       
    40 */
       
    41 NONSHARABLE_CLASS( CXnWallpaperView ) : public CAknView 
       
    42     {
       
    43 public:
       
    44 
       
    45     /**
       
    46      * Two-phased constructor.
       
    47      * @return new instance of CXnWallpaperView.
       
    48      */
       
    49     static CXnWallpaperView* NewL( CXnUiEngine& aEngine );
       
    50 
       
    51     /**
       
    52      * Destructor.
       
    53      */
       
    54     ~CXnWallpaperView();
       
    55 
       
    56     /**
       
    57      * From CAknView.
       
    58      * Returns view id.
       
    59      * @return An unsigned integer (view id).
       
    60      */
       
    61     TUid Id() const;
       
    62 
       
    63 private:
       
    64 
       
    65     /* From CAknView. */
       
    66     void DoActivateL(
       
    67         const TVwsViewId& aPrevViewId,
       
    68         TUid aCustomMessageId,
       
    69         const TDesC8& aCustomMessage );
       
    70     
       
    71     /* From CAknView. */
       
    72     void DoDeactivate();
       
    73     
       
    74     /**
       
    75      * C++ default constructor.
       
    76      */
       
    77     CXnWallpaperView( CXnUiEngine& aEngine );
       
    78 
       
    79     /**
       
    80      * By default Symbian 2nd phase constructor is private.
       
    81      */
       
    82     void ConstructL();
       
    83 
       
    84 private: // data
       
    85 
       
    86     /**
       
    87      * Wallpaper container.
       
    88      * Own.
       
    89      */
       
    90     CXnWallpaperContainer* iContainer;
       
    91     
       
    92     /**
       
    93      * Reference to uiengine.
       
    94      */
       
    95     CXnUiEngine& iEngine;
       
    96     };
       
    97 
       
    98 #endif      // CXNWALLPAPERVIEW_H
       
    99 
       
   100 // End of File