uifw/AvKon/akncompamode/inc/akncompaside.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Control to fill sides of compatibility mode window
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __AKNCOMPASIDE_H__
       
    20 #define __AKNCOMPASIDE_H__
       
    21 
       
    22 #include <coecntrl.h>
       
    23 
       
    24 class CAknsBasicBackgroundControlContext;
       
    25 
       
    26 /**
       
    27  * Compatibility mode side control
       
    28  *
       
    29  * @lib compamode.lib
       
    30  * @since S60 v5.0
       
    31  */
       
    32 NONSHARABLE_CLASS(CAknCompaSide) : public CCoeControl
       
    33     {
       
    34 public: // types
       
    35     enum TSide
       
    36         {
       
    37         ELeftSide,
       
    38         ERightSide,
       
    39         ENumSides
       
    40         };
       
    41 
       
    42 public: // constructors and destructor
       
    43 
       
    44     static CAknCompaSide* NewL();
       
    45 
       
    46     ~CAknCompaSide();
       
    47     
       
    48     void SetBackground(TPoint aOrigin);
       
    49 
       
    50 private: // from CCoeControl
       
    51 
       
    52     void Draw(const TRect& aRect) const;
       
    53 
       
    54 private: // new functions
       
    55 
       
    56     void ConstructL();
       
    57 
       
    58 private: // data
       
    59     
       
    60     // Background context
       
    61     CAknsBasicBackgroundControlContext* iBgContext;
       
    62     };
       
    63 
       
    64 #endif // __AKNCOMPASIDE_H__