locationsatviewrefapp/src/SatelliteReferenceContainer.cpp
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * ============================================================================
       
    20 *  Name     : SatelliteReferenceContainer
       
    21 *  Part of  : Satellite Reference App
       
    22 * ============================================================================
       
    23 */
       
    24 
       
    25 // INCLUDE FILES
       
    26 #include "SatelliteReferenceContainer.h"
       
    27 
       
    28 #include <eiklabel.h>  // for example label control
       
    29 
       
    30 // ================= MEMBER FUNCTIONS =======================
       
    31 
       
    32 // ---------------------------------------------------------
       
    33 // CSatelliteReferenceContainer::ConstructL(const TRect& aRect)
       
    34 // Second phase constructor
       
    35 // ---------------------------------------------------------
       
    36 //
       
    37 
       
    38 void CSatelliteReferenceContainer::ConstructL(const TRect& aRect, CAknAppUi* aAppUi)
       
    39     {
       
    40     CreateWindowL();           
       
    41     SetRect(aRect);
       
    42     ActivateL();
       
    43     iAppUi = aAppUi;
       
    44     }
       
    45 
       
    46 // ------------------------------------------------------------
       
    47 // CSatelliteReferenceContainer::~CSatelliteReferenceContainer()
       
    48 // Destructor
       
    49 // ------------------------------------------------------------
       
    50 //
       
    51 CSatelliteReferenceContainer::~CSatelliteReferenceContainer()
       
    52     {    
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------
       
    56 // CSatelliteReferenceContainer::SizeChanged()
       
    57 // Called by framework when the view size is changed
       
    58 // ---------------------------------------------------------
       
    59 //
       
    60 void CSatelliteReferenceContainer::SizeChanged()
       
    61     {
       
    62     }
       
    63     
       
    64 // ---------------------------------------------------------
       
    65 // CSatelliteReferenceContainer::HandleResourceChange()
       
    66 // ---------------------------------------------------------
       
    67 //
       
    68 void CSatelliteReferenceContainer::HandleResourceChange(TInt aType)
       
    69 	{
       
    70 	if ( aType == KEikDynamicLayoutVariantSwitch )
       
    71         {
       
    72         SetRect(iAppUi->ClientRect());
       
    73         }        	
       
    74 	}
       
    75 
       
    76 // ---------------------------------------------------------
       
    77 // CSatelliteReferenceContainer::CountComponentControls() const
       
    78 // ---------------------------------------------------------
       
    79 //
       
    80 TInt CSatelliteReferenceContainer::CountComponentControls() const
       
    81     {
       
    82     return 0; // return nbr of controls inside this container
       
    83     }
       
    84 
       
    85 // ---------------------------------------------------------
       
    86 // CSatelliteReferenceContainer::ComponentControl(TInt aIndex) const
       
    87 // ---------------------------------------------------------
       
    88 //
       
    89 CCoeControl* CSatelliteReferenceContainer::ComponentControl(TInt /*aIndex*/) const
       
    90     {
       
    91     return NULL;
       
    92     }
       
    93 
       
    94 // ---------------------------------------------------------
       
    95 // CSatelliteReferenceContainer::Draw(const TRect& aRect) const
       
    96 // ---------------------------------------------------------
       
    97 //
       
    98 void CSatelliteReferenceContainer::Draw(const TRect& aRect) const
       
    99     {
       
   100     CWindowGc& gc = SystemGc();
       
   101     gc.SetPenStyle(CGraphicsContext::ENullPen);
       
   102     gc.SetBrushColor(KRgbGray);
       
   103     gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
       
   104     gc.DrawRect(aRect);
       
   105     }
       
   106 
       
   107 // ---------------------------------------------------------
       
   108 // CSatelliteReferenceContainer::HandleControlEventL(
       
   109 //     CCoeControl* aControl,TCoeEvent aEventType)
       
   110 // ---------------------------------------------------------
       
   111 //
       
   112 void CSatelliteReferenceContainer::HandleControlEventL(
       
   113     CCoeControl* /*aControl*/,TCoeEvent /*aEventType*/)
       
   114     {
       
   115     }
       
   116 
       
   117 // End of File