|
Nokia N97 SDK Example Applications Guide |
Inheritance diagram for CAIWConsumerBasicsAppView:

Definition at line 17 of file AIWConsumerBasicsAppView.h.
Public Member Functions |
|
| virtual | ~CAIWConsumerBasicsAppView () |
| void | Draw (const TRect &aRect) const |
| void | SizeChanged () |
| void | GetHelpContext (TCoeHelpContext &aContext) const |
Static Public Member Functions |
|
| static CAIWConsumerBasicsAppView * | NewL (const TRect &aRect, CAIWConsumerBasicsAppUi &aAppUi) |
| static CAIWConsumerBasicsAppView * | NewLC (const TRect &aRect, CAIWConsumerBasicsAppUi &aAppUi) |
Private Member Functions |
|
| void | ConstructL (const TRect &aRect) |
| CAIWConsumerBasicsAppView (CAIWConsumerBasicsAppUi &aAppUi) | |
Private Attributes |
|
| CAIWConsumerBasicsAppUi & | iAppUi |
| CCoeEnv * | iCoeEnv |
| HBufC * | iAttachedText |
| HBufC * | iDetachedText |
| HBufC * | iMakeAttachText |
| HBufC * | iMakeDetachText |
|
|
Virtual Destructor. Definition at line 92 of file AIWConsumerBasicsAppView.cpp. References iAttachedText, iDetachedText, iMakeAttachText, and iMakeDetachText. 00093 { 00094 delete iAttachedText; 00095 delete iDetachedText; 00096 delete iMakeAttachText; 00097 delete iMakeDetachText; 00098 }
|
|
|
C++ default constructor.
Definition at line 80 of file AIWConsumerBasicsAppView.cpp. Referenced by NewLC(). 00081 : iAppUi(aAppUi) 00082 { 00083 // No implementation required 00084 }
|
|
||||||||||||
|
Two-phased constructor. Create a CAIWConsumerBasicsAppView object, which will draw itself to aRect.
Definition at line 28 of file AIWConsumerBasicsAppView.cpp. References NewLC(). Referenced by CAIWConsumerBasicsAppUi::ConstructL(). 00030 { 00031 CAIWConsumerBasicsAppView* self = CAIWConsumerBasicsAppView::NewLC( aRect, aAppUi ); 00032 CleanupStack::Pop( self ); 00033 return self; 00034 }
|
|
||||||||||||
|
Two-phased constructor. Create a CAIWConsumerBasicsAppView object, which will draw itself to aRect.
Definition at line 41 of file AIWConsumerBasicsAppView.cpp. References CAIWConsumerBasicsAppView(). Referenced by NewL(). 00043 { 00044 CAIWConsumerBasicsAppView* self = new ( ELeave ) CAIWConsumerBasicsAppView( aAppUi ); 00045 CleanupStack::PushL( self ); 00046 self->ConstructL( aRect ); 00047 return self; 00048 }
|
|
|
From CCoeControl. Draw this CAIWConsumerBasicsAppView to the screen.
Definition at line 106 of file AIWConsumerBasicsAppView.cpp. References iAppUi, iAttachedText, iCoeEnv, iMakeDetachText, CAIWConsumerBasicsAppUi::IsAttached(), and CAIWConsumerBasicsAppUi::NumberOfProviders(). 00107 { 00108 // Get the standard graphics context 00109 CWindowGc& gc = SystemGc(); 00110 00111 // Gets the control's extent 00112 TRect drawRect( Rect()); 00113 00114 // Clears the screen 00115 gc.Clear( drawRect ); 00116 00117 gc.SetBrushColor( TRgb(0,0,0) ); 00118 gc.UseFont( iCoeEnv->NormalFont() ); 00119 00120 // Write help texts to the screen. 00121 HBufC* providersTxt = StringLoader::LoadLC( R_AIWE_NBR_OF_PROVIDERS, iAppUi.NumberOfProviders() ); 00122 if(iAppUi.IsAttached()) 00123 { 00124 gc.DrawText( *iAttachedText, TPoint(KLeftMargin, KTopMargin + 0*KSpaceBetweenRows) ); 00125 gc.DrawText( *providersTxt, TPoint(KLeftMargin, KTopMargin + 1*KSpaceBetweenRows) ); 00126 gc.DrawText( *iMakeDetachText, TPoint(KLeftMargin, KTopMargin + 3*KSpaceBetweenRows) ); 00127 } 00128 else 00129 { 00130 gc.DrawText( *iDetachedText, TPoint(KLeftMargin, KTopMargin + 0*KSpaceBetweenRows) ); 00131 gc.DrawText( *providersTxt, TPoint(KLeftMargin, KTopMargin + 1*KSpaceBetweenRows) ); 00132 gc.DrawText( *iMakeAttachText, TPoint(KLeftMargin, KTopMargin + 3*KSpaceBetweenRows) ); 00133 } 00134 CleanupStack::PopAndDestroy( providersTxt ); 00135 }
|
|
|
From CoeControl. Called by framework when the view size is changed. Definition at line 142 of file AIWConsumerBasicsAppView.cpp.
|
|
|
From CCoeControl Gets help context.
Definition at line 152 of file AIWConsumerBasicsAppView.cpp. 00153 { 00154 aContext.iMajor = TUid::Uid(0x10282909); 00155 aContext.iContext = KAIWE_HLP_OVERVIEW; 00156 }
|
|
|
2nd phase constructor. Perform the second phase construction of a CAIWConsumerBasicsAppView object.
Definition at line 55 of file AIWConsumerBasicsAppView.cpp. References iAttachedText, iCoeEnv, iDetachedText, iMakeAttachText, and iMakeDetachText. 00056 { 00057 iCoeEnv = CCoeEnv::Static(); 00058 00059 // Create a window for this application view 00060 CreateWindowL(); 00061 00062 // Set the windows size 00063 SetRect( aRect ); 00064 00065 iAttachedText = iCoeEnv->AllocReadResourceL( R_AIWE_ATTACHED ); 00066 iDetachedText = iCoeEnv->AllocReadResourceL( R_AIWE_DETACHED ); 00067 iMakeAttachText = iCoeEnv->AllocReadResourceL( R_AIWE_MAKE_ATTACH ); 00068 iMakeDetachText = iCoeEnv->AllocReadResourceL( R_AIWE_MAKE_DETACH ); 00069 00070 00071 // Activate the window, which makes it ready to be drawn 00072 ActivateL(); 00073 }
|
|
|
Reference to AppUi. Not owned. Definition at line 88 of file AIWConsumerBasicsAppView.h. Referenced by Draw(). |
|
|
For resource reading and fonts. Definition at line 93 of file AIWConsumerBasicsAppView.h. Referenced by ConstructL(), and Draw(). |
|
|
Info texts shown on the screen. Definition at line 98 of file AIWConsumerBasicsAppView.h. Referenced by ConstructL(), Draw(), and ~CAIWConsumerBasicsAppView(). |
|
© Nokia 2009 |