securitydialogs/Autolock/inc/AutolockContainer.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Declares container control for application.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef AUTOLOCKCONTAINER_H
       
    21 #define AUTOLOCKCONTAINER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <coecntrl.h>
       
    25 #include <eikimage.h>
       
    26 #include <eiklabel.h>
       
    27 #include <AknSkinnableClock.h>
       
    28    
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class CAknsLayeredBackgroundControlContext;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  CAutolockContainer  container control class.
       
    37 *  
       
    38 */
       
    39 class CAutolockContainer : public CCoeControl, MCoeControlObserver
       
    40     {
       
    41     public: // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * Symbian OS default constructor.
       
    45         * @param aRect Frame rectangle for container.
       
    46         */
       
    47         void ConstructL(const TRect& aRect);
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CAutolockContainer();
       
    53 
       
    54     public: // Functions from base classes
       
    55         /**
       
    56         * From CCoeControl, MopSupplyObject
       
    57         */
       
    58         TTypeUid::Ptr MopSupplyObject( TTypeUid aId );
       
    59         void GiveCoords( TRect& aRect );
       
    60 
       
    61     private: // Functions from base classes
       
    62 
       
    63        /**
       
    64         * From CoeControl,SizeChanged.
       
    65         */
       
    66         void SizeChanged();
       
    67 
       
    68        /**
       
    69         * From CoeControl,CountComponentControls.
       
    70         */
       
    71         TInt CountComponentControls() const;
       
    72 
       
    73        /**
       
    74         * From CCoeControl,ComponentControl.
       
    75         */
       
    76         CCoeControl* ComponentControl(TInt aIndex) const;
       
    77 
       
    78        /**
       
    79         * From CCoeControl,Draw.
       
    80         */
       
    81         void Draw(const TRect& aRect) const;
       
    82 
       
    83         // event handling section
       
    84         // e.g Listbox events
       
    85         void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
       
    86         
       
    87     private: //data
       
    88         CEikImage* iEikBitmap;
       
    89         CFbsBitmap* iBitmap;
       
    90         CFbsBitmap* iMask;
       
    91         CEikImage* iEikBitmapCall;
       
    92         CFbsBitmap* iBitmapCall;
       
    93         CFbsBitmap* iMaskCall;
       
    94         // Owned background context.
       
    95         CAknsLayeredBackgroundControlContext* iBgContext;
       
    96         
       
    97     };
       
    98 
       
    99 #endif
       
   100 
       
   101 // End of File