S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SatelliteReferenceContainer.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : SatelliteReferenceContainer
00004 *  Part of     : Satellite Reference App
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2005-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 // INCLUDE FILES
00017 #include "SatelliteReferenceContainer.h"
00018 
00019 #include <eiklabel.h>  // for example label control
00020 
00021 // ================= MEMBER FUNCTIONS =======================
00022 
00023 // ---------------------------------------------------------
00024 // CSatelliteReferenceContainer::ConstructL(const TRect& aRect)
00025 // Second phase constructor
00026 // ---------------------------------------------------------
00027 //
00028 
00029 void CSatelliteReferenceContainer::ConstructL(const TRect& aRect, CAknAppUi* aAppUi)
00030     {
00031     CreateWindowL();           
00032     SetRect(aRect);
00033     ActivateL();
00034     iAppUi = aAppUi;
00035     }
00036 
00037 // ------------------------------------------------------------
00038 // CSatelliteReferenceContainer::~CSatelliteReferenceContainer()
00039 // Destructor
00040 // ------------------------------------------------------------
00041 //
00042 CSatelliteReferenceContainer::~CSatelliteReferenceContainer()
00043     {    
00044     }
00045 
00046 // ---------------------------------------------------------
00047 // CSatelliteReferenceContainer::SizeChanged()
00048 // Called by framework when the view size is changed
00049 // ---------------------------------------------------------
00050 //
00051 void CSatelliteReferenceContainer::SizeChanged()
00052     {
00053     }
00054     
00055 // ---------------------------------------------------------
00056 // CSatelliteReferenceContainer::HandleResourceChange()
00057 // ---------------------------------------------------------
00058 //
00059 void CSatelliteReferenceContainer::HandleResourceChange(TInt aType)
00060         {
00061         if ( aType == KEikDynamicLayoutVariantSwitch )
00062         {
00063         SetRect(iAppUi->ClientRect());
00064         }               
00065         }
00066 
00067 // ---------------------------------------------------------
00068 // CSatelliteReferenceContainer::CountComponentControls() const
00069 // ---------------------------------------------------------
00070 //
00071 TInt CSatelliteReferenceContainer::CountComponentControls() const
00072     {
00073     return 0; // return nbr of controls inside this container
00074     }
00075 
00076 // ---------------------------------------------------------
00077 // CSatelliteReferenceContainer::ComponentControl(TInt aIndex) const
00078 // ---------------------------------------------------------
00079 //
00080 CCoeControl* CSatelliteReferenceContainer::ComponentControl(TInt /*aIndex*/) const
00081     {
00082     return NULL;
00083     }
00084 
00085 // ---------------------------------------------------------
00086 // CSatelliteReferenceContainer::Draw(const TRect& aRect) const
00087 // ---------------------------------------------------------
00088 //
00089 void CSatelliteReferenceContainer::Draw(const TRect& aRect) const
00090     {
00091     CWindowGc& gc = SystemGc();
00092     gc.SetPenStyle(CGraphicsContext::ENullPen);
00093     gc.SetBrushColor(KRgbGray);
00094     gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
00095     gc.DrawRect(aRect);
00096     }
00097 
00098 // ---------------------------------------------------------
00099 // CSatelliteReferenceContainer::HandleControlEventL(
00100 //     CCoeControl* aControl,TCoeEvent aEventType)
00101 // ---------------------------------------------------------
00102 //
00103 void CSatelliteReferenceContainer::HandleControlEventL(
00104     CCoeControl* /*aControl*/,TCoeEvent /*aEventType*/)
00105     {
00106     }
00107 
00108 // End of File  

© Nokia 2006

Back to top