Nokia N97 SDK
Example Applications Guide

CAknExQueryContainer Class Reference

#include <aknexquerycontainer.h>

Inheritance diagram for CAknExQueryContainer:

List of all members.

Detailed Description

CAknExQueryContainer container control class.

Definition at line 56 of file aknexquerycontainer.h.


Public Member Functions

  CAknExQueryContainer (CAknExQueryView *aView)
void  ConstructL (const TRect &aRect)
virtual  ~CAknExQueryContainer ()
void  ShowConfirmationQueryL (const TInt aResourceId, const TInt aTextResourceId=0, const TBool aPromptFlag=EFalse, const TBool aToneFlag=EFalse, const TBool aHeaderTextAndImageFlag=EFalse, const CAknQueryDialog::TTone aTone=CAknQueryDialog::ENoTone)
void  ShowDataQueryL (const TInt aQueryResourceId, const TInt aTextResourceId=0, const TInt aPromptResourceId=0, const TInt aMaxLength=0, const TInt aDisplayFlag=ETrue)
void  ShowListQueryL (const TInt aResourceId)
void  PopoutListBoxL ()
void  CreateListBoxL ()
void  DeleteListBoxL ()
void  CreateLabelL (TInt aResourceId)
void  DeleteLabelL ()
void  SetTextToLabelL (TInt aResourceId)
void  ShowMessageL (const TDesC &aMessage)
void  ShowMultiLineTimeAndDurationLayoutL (const TInt aResourceId, const TInt aTopResourceId)
void  ShowGlobalListQueryL ()
TKeyResponse  OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)

Private Types

enum   TAknExQueryComponentControls { EAknExQueryComponentLabel, EAknExQueryComponentLabel2, EAknExQueryComponentListBox }

Private Member Functions

void  SizeChanged ()
TInt  CountComponentControls () const
CCoeControl *  ComponentControl (TInt aIndex) const
void  Draw (const TRect &aRect) const
void  ShowResultMessageL (TBool aResult)
void  SetIconL (CAknQueryDialog *aDlg, TInt32 aBitmap, TInt32 aMask)

Private Attributes

CEikLabel *  iLabel
CEikLabel *  iLabelResultMessage
CAknExQueryView *  iView
CEikColumnListBox *  iListBox
CAknExQueryBaseListEventHandler *  iHandler
TBool  iDisplayDialog
CAknGlobalListQuery *  iGlobalListQuery
CAknExQueryGlobalListObserver *  iGlobalListObserver


Constructor & Destructor Documentation

CAknExQueryContainer::CAknExQueryContainer (  CAknExQueryView *  aView  ) 
 

CAknExQueryContainer Constructor.

Parameters:
aView  Pointer to View class object.

Definition at line 46 of file aknexquerycontainer.cpp.

00047 : iView( aView )
00048     {
00049     }

CAknExQueryContainer::~CAknExQueryContainer (   )  [virtual]
 

~CAknExQueryContainer Destructor.

Definition at line 87 of file aknexquerycontainer.cpp.

References iGlobalListObserver, iGlobalListQuery, iHandler, iLabel, iLabelResultMessage, and iListBox.

00088     {
00089     delete iLabel;
00090     delete iLabelResultMessage;
00091     delete iListBox;
00092     delete iHandler;
00093 
00094     delete iGlobalListQuery;
00095     delete iGlobalListObserver;
00096     }


Member Function Documentation

void CAknExQueryContainer::ConstructL (  const TRect &  aRect  ) 
 

ConstructL Symbian default constructor.

Parameters:
aRect  Frame rectangle for container.

Definition at line 56 of file aknexquerycontainer.cpp.

References iLabel, and SetTextToLabelL().

Referenced by CAknExQueryView::DoActivateL().

00057     {
00058     // Creates window.
00059     CreateWindowL();
00060 
00061     // Creates label object.
00062     if ( !iLabel )
00063         {
00064         iLabel = new ( ELeave ) CEikLabel;
00065         iLabel->SetContainerWindowL( *this );
00066         if (AknLayoutUtils::Variant() == EApacVariant)
00067                     {
00068                         iLabel->SetFont( ApacPlain16() );
00069                     }
00070                 else
00071                     {
00072                         iLabel->SetFont( LatinBold19() );
00073                     }
00074 
00075         SetTextToLabelL( R_AKNEXQUERY_TITLE_MESSAGE );
00076         }
00077 
00078     SetRect( aRect ); // Sets rectangle of frame.
00079     ActivateL(); // Activates the window. ( Ready to draw )
00080     }

void CAknExQueryContainer::ShowConfirmationQueryL (  const TInt  aResourceId,
const TInt  aTextResourceId = 0,
const TBool  aPromptFlag = EFalse,
const TBool  aToneFlag = EFalse,
const TBool  aHeaderTextAndImageFlag = EFalse,
const CAknQueryDialog::TTone  aTone = CAknQueryDialog::ENoTone
) 
 

ShowConfirmationQueryL Shows confirmation query.

Parameters:
aResourceId  for dialog.
aTextResourceId  for prompt.
aToneFlag  is flag for adding tone to argument of constructor.
aPromptFlag  is flag for displaying prompt dynamically.
aHeaderTextAndImageFlag 
aTone 

Definition at line 103 of file aknexquerycontainer.cpp.

References iDisplayDialog, SetIconL(), SetTextToLabelL(), and ShowResultMessageL().

Referenced by CAknExQueryView::HandleCommandL().

00111     {
00112     iDisplayDialog = ETrue;
00113     SetTextToLabelL( R_AKNEXQUERY_OPERATE_MESSAGE );
00114     CAknQueryDialog* dlg;
00115 
00116     if ( aHeaderTextAndImageFlag )
00117         {
00118         dlg = CAknQueryDialog::NewL( aTone );
00119         dlg->PrepareLC( aResourceId );
00120         TBuf<KAknExQueryTextBufLength> prompt;
00121         iCoeEnv->ReadResource( prompt, R_AKNEXQUERY_NUMQUERY_WITHHEAD_HEAD );
00122         dlg->QueryHeading()->SetTextL( prompt );
00123         SetIconL( dlg, EMbmAknexqueryAnchor_id, EMbmAknexqueryAnchor_id_mask );
00124         dlg->RunLD();
00125         }
00126     else
00127         {
00128         if ( !aTextResourceId )
00129             {
00130             dlg = CAknQueryDialog::NewL( aTone );
00131             }
00132         else
00133             {
00134             TBuf<KAknExQueryTextBufLength> prompt;
00135             iCoeEnv->ReadResource( prompt, aTextResourceId );
00136 
00137             if ( aPromptFlag )
00138                 {
00139                 dlg = CAknQueryDialog::NewL( aTone );
00140                 CleanupStack::PushL( dlg );
00141                 dlg->SetPromptL( prompt );
00142                 CleanupStack::Pop();
00143                 }
00144             else if ( aToneFlag )
00145                 {
00146                 dlg = new ( ELeave ) CAknQueryDialog( prompt, aTone );
00147                 }
00148             else
00149                 {
00150                 dlg = new ( ELeave ) CAknQueryDialog( prompt );
00151                 }
00152             }
00153         ShowResultMessageL( dlg->ExecuteLD( aResourceId ) );
00154         }
00155     iDisplayDialog = EFalse;
00156     }

void CAknExQueryContainer::ShowDataQueryL (  const TInt  aQueryResourceId,
const TInt  aTextResourceId = 0,
const TInt  aPromptResourceId = 0,
const TInt  aMaxLength = 0,
const TInt  aDisplayFlag = ETrue
) 
 

ShowDataQueryL Shows data query.

Parameters:
aQueryResourceId  for dialog.
aTextResourceId  for inial value.
aPromptResourceId  for ptompt
aMaxLength  sets up the length of the character.
aDisplayFlag 

Referenced by CAknExQueryView::HandleCommandL().

void CAknExQueryContainer::ShowListQueryL (  const TInt  aResourceId  ) 
 

ShowListQueryL Show list query.

Parameters:
aResourceId 

Definition at line 238 of file aknexquerycontainer.cpp.

References iDisplayDialog, SetTextToLabelL(), and ShowMessageL().

Referenced by CAknExQueryView::HandleCommandL().

00239     {
00240     iDisplayDialog = ETrue;
00241     SetTextToLabelL( R_AKNEXQUERY_OPERATE_MESSAGE );
00242     CArrayFixFlat<TInt>* indexArray = NULL;
00243     CAknListQueryDialog* dlg;
00244     TInt index( 0 );
00245 
00246     if ( aResourceId == R_AKNEXQUERY_MULTI_SELECTION_LIST_QUERY )
00247         {
00248 
00249         indexArray = new ( ELeave ) CArrayFixFlat<TInt>( 6 );
00250         CleanupStack::PushL( indexArray );
00251         dlg = new ( ELeave ) CAknListQueryDialog( indexArray );
00252 
00253         }
00254     else
00255         {
00256         dlg = new ( ELeave ) CAknListQueryDialog( &index );
00257         }
00258 
00259     TInt answer( dlg->ExecuteLD( aResourceId ) );
00260 
00261     TBuf<KAknExQueryTextBufLength> text;
00262     if ( aResourceId == R_AKNEXQUERY_LIST_QUERY )
00263         {
00264         if ( answer )
00265             {
00266             TBuf<KAknExQueryTextBufLength> baseText;
00267             iCoeEnv->ReadResource( baseText, R_AKNEXQUERY_ITEM_SELECTED );
00268             text.Format( baseText, index+1 );
00269             ShowMessageL( text );
00270             }
00271         else
00272             {
00273             iCoeEnv->ReadResource( text, R_AKNEXQUERY_QUERYDISCARDED );
00274             ShowMessageL( text );
00275             }
00276         }
00277 
00278     if ( indexArray )
00279         {
00280         CleanupStack::PopAndDestroy();
00281         }
00282     iDisplayDialog = EFalse;
00283     }

void CAknExQueryContainer::PopoutListBoxL (   ) 
 

PopoutListBoxL Create handler.

Definition at line 291 of file aknexquerycontainer.cpp.

References CreateListBoxL(), CAknExQueryBaseListEventHandler::HandleListBoxEventL(), iHandler, iListBox, and SetTextToLabelL().

Referenced by CAknExQueryView::HandleCommandL().

00292     {
00293     SetTextToLabelL( R_AKNEXQUERY_OPERATE_MESSAGE );
00294 
00295     CreateListBoxL();
00296     
00297     iHandler->HandleListBoxEventL(
00298             iListBox, MEikListBoxObserver::EEventEnterKeyPressed );
00299     }

void CAknExQueryContainer::CreateListBoxL (   ) 
 

CreateListBoxL Creates listbox object.

Definition at line 306 of file aknexquerycontainer.cpp.

References DeleteListBoxL(), iHandler, and iListBox.

Referenced by PopoutListBoxL().

00307     {
00308     DeleteListBoxL();
00309 
00310     TInt resourceId = R_AKNEXQUERY_MULTILINE_TIME_AND_DURATION_LIST_ITEM;
00311     iHandler = new ( ELeave ) CAknExQueryTimeAndDurationListEventHandler(
00312                     this );
00313 
00314     TInt flags( CEikListBox::EPopout | CEikListBox::ELeftDownInViewRect );
00315     iListBox = new ( ELeave ) CEikColumnListBox;
00316     iListBox->ConstructL( this, flags );
00317 
00318     iListBox->SetListBoxObserver( iHandler );
00319     iListBox->SetBorder( TGulBorder::EShallowRaised );
00320     iListBox->CreateScrollBarFrameL( ETrue );
00321     iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(
00322         CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto );
00323 
00324     // Creates list items
00325     CDesCArray* textArray = iCoeEnv->ReadDesCArrayResourceL( resourceId );
00326     iListBox->Model()->SetItemTextArray( textArray );
00327     iListBox->Model()->SetOwnershipType( ELbmOwnsItemArray );
00328 
00329     // Sets pixel values of width.
00330     TRect rect( TPoint( KAknExQueryListBoxRectPointX,
00331         KAknExQueryListBoxRectPointY ),
00332         TSize( KAknExQueryListBoxRectWidth,
00333         KAknExQueryListBoxRectHeight )  );
00334 
00335     CColumnListBoxData* columnData = iListBox->ItemDrawer()->ColumnData();
00336     columnData->SetColumnWidthPixelL( KAknExQueryNameColumnIndex,
00337                                       rect.Width() );
00338     columnData->SetColumnWidthPixelL( KAknExQueryNameGapColumnIndex,
00339                                       rect.Width() );
00340 
00341     // Gets current number of list box items.
00342     TInt numberOfItems( iListBox->Model()->NumberOfItems() );
00343     // Gets new height of list box.
00344     TInt height( iListBox->CalcHeightBasedOnNumOfItems( numberOfItems ) );
00345     // If new height is less than defined height of list box
00346     // sets new height to list box height.
00347     if ( height < rect.Height() )
00348         {
00349         rect.SetHeight( height );
00350         }
00351 
00352     iListBox->SetRect( rect ); // Sets rectangle of list box.
00353     ActivateL();
00354     }

void CAknExQueryContainer::DeleteListBoxL (   ) 
 

DeleteListBoxL Deletes listbox object.

Definition at line 361 of file aknexquerycontainer.cpp.

References iHandler, and iListBox.

Referenced by CreateListBoxL(), and CAknExQueryView::SetTitlePaneL().

00362     {
00363     if ( iListBox )
00364         {
00365         delete iListBox;
00366         iListBox = NULL;
00367         }
00368     if ( iHandler )
00369         {
00370         delete iHandler;
00371         iHandler = NULL;
00372         }
00373     }

void CAknExQueryContainer::CreateLabelL (  TInt  aResourceId  ) 
 

CreateLabelL Creates label object.

Parameters:
aResourceId 

Definition at line 380 of file aknexquerycontainer.cpp.

References iLabelResultMessage.

Referenced by CAknExQueryView::HandleCommandL().

00381     {
00382     if ( !iLabelResultMessage )
00383         {
00384         iLabelResultMessage = new ( ELeave ) CEikLabel;
00385         iLabelResultMessage->SetContainerWindowL( *this );
00386         iLabelResultMessage->SetRect( Rect() );
00387         iLabelResultMessage->SetAlignment( EHCenterVTop );
00388         iLabelResultMessage->SetPosition( AKNEXQUERY_LABEL2_POSITION );
00389         if (AknLayoutUtils::Variant() == EApacVariant)
00390                         {
00391                         iLabelResultMessage->SetFont( ApacPlain16() );
00392                         }
00393                 else
00394                         {
00395                         iLabelResultMessage->SetFont( LatinBold19() );
00396                     }
00397         }
00398 
00399     TBuf<KAknExQueryTextBufLength> labelText;
00400     iCoeEnv->ReadResource( labelText, aResourceId );
00401     iLabelResultMessage->SetTextL( labelText );
00402     }

void CAknExQueryContainer::DeleteLabelL (   ) 
 

DeleteLabelL Deletes label object.

Definition at line 409 of file aknexquerycontainer.cpp.

References iLabelResultMessage.

Referenced by CAknExQueryView::SetTitlePaneL().

00410     {
00411     delete iLabelResultMessage;
00412     iLabelResultMessage = NULL;
00413     }

void CAknExQueryContainer::SetTextToLabelL (  TInt  aResourceId  ) 
 

SetTextToLabelL Set Label text.

Parameters:
aResourceId 

Definition at line 420 of file aknexquerycontainer.cpp.

References iLabel.

Referenced by ConstructL(), CAknExQueryView::HandleCommandL(), PopoutListBoxL(), ShowConfirmationQueryL(), ShowGlobalListQueryL(), ShowListQueryL(), and ShowMultiLineTimeAndDurationLayoutL().

00421     {
00422     TBuf<KAknExQueryTextBufLength> messageString;
00423     iCoeEnv->ReadResource( messageString, aResourceId );
00424     iLabel->SetTextL( messageString );
00425     DrawNow();
00426     }

void CAknExQueryContainer::ShowMessageL (  const TDesC &  aMessage  ) 
 

ShowMessageL Show Message Text.

Parameters:
aMessage 

Definition at line 434 of file aknexquerycontainer.cpp.

References iLabelResultMessage.

Referenced by ShowListQueryL(), and ShowResultMessageL().

00435     {
00436     iLabelResultMessage->SetTextL( aMessage );
00437     DrawNow();
00438     }

void CAknExQueryContainer::ShowMultiLineTimeAndDurationLayoutL (  const TInt  aResourceId,
const TInt  aTopResourceId
) 
 

ShowMultiLineTimeAndDurationLayoutL Show multi line time and duration layout.

Parameters:
aResourceId  for dialog
aTopResourceId  for top of multi line.

Definition at line 554 of file aknexquerycontainer.cpp.

References iDisplayDialog, and SetTextToLabelL().

Referenced by CAknExQueryTimeAndDurationListEventHandler::HandleSelectedListItemL().

00557     {
00558     iDisplayDialog = ETrue;
00559     SetTextToLabelL( R_AKNEXQUERY_OPERATE_MESSAGE );
00560 
00561     TBuf<KAknExQueryTextBufLength> bufferRes;
00562 
00563     iCoeEnv -> ReadResource(bufferRes, aTopResourceId);
00564 
00565     TTime topDateTime;
00566     topDateTime.Set(bufferRes);
00567         topDateTime.HomeTime();
00568 
00569     TTimeIntervalSeconds bottomDuration = 300;  // set timer field to 5 minutes
00570 
00571     CAknMultiLineDataQueryDialog* dlg =
00572         CAknMultiLineDataQueryDialog::NewL( topDateTime, bottomDuration );
00573 
00574     dlg->ExecuteLD( aResourceId );
00575 
00576     iDisplayDialog = EFalse;
00577     }

void CAknExQueryContainer::ShowGlobalListQueryL (   ) 
 

ShowGlobalListQueryL The function for the test of the following three APIs. MoveSelectionUp, MoveSelectionDown, SelectItem.

Definition at line 609 of file aknexquerycontainer.cpp.

References iDisplayDialog, iGlobalListObserver, iGlobalListQuery, CAknExQueryGlobalListObserver::NewL(), CAknExQueryGlobalListObserver::SetSelectItemFlag(), SetTextToLabelL(), CAknExQueryGlobalListObserver::Start(), and CAknExQueryGlobalListObserver::UnsetSelectItemFlag().

Referenced by CAknExQueryView::HandleCommandL().

00610     {
00611     iDisplayDialog = ETrue;
00612     SetTextToLabelL( R_AKNEXQUERY_OPERATE_MESSAGE );
00613 
00614     CDesCArray* textArray = iCoeEnv->ReadDesCArrayResourceL(
00615        R_AKNEXQUERY_SUB_POPUP_DATA );
00616 
00617     CleanupStack::PushL( textArray );
00618 
00619     if ( iGlobalListObserver )
00620         {
00621         iGlobalListObserver->Cancel();
00622         delete iGlobalListObserver;
00623         iGlobalListObserver = NULL;
00624         }
00625     iGlobalListObserver = CAknExQueryGlobalListObserver::NewL( this );
00626     iGlobalListObserver->UnsetSelectItemFlag();
00627 
00628     iGlobalListObserver->Start();
00629 
00630     if ( iGlobalListQuery )
00631         {
00632         delete iGlobalListQuery;
00633         iGlobalListQuery = NULL;
00634         }
00635     iGlobalListQuery = CAknGlobalListQuery::NewL();
00636 
00637     iGlobalListObserver->SetSelectItemFlag();
00638     iGlobalListQuery->ShowListQueryL(
00639         textArray,
00640         iGlobalListObserver->iStatus,
00641         0 );
00642 
00643     CleanupStack::PopAndDestroy(); // textArray
00644     iDisplayDialog = EFalse;
00645     }

TKeyResponse CAknExQueryContainer::OfferKeyEventL (  const TKeyEvent &  aKeyEvent,
TEventCode  aType
) 
 

From CCoeControl, OfferKeyEventL. Handles the key events.

Returns:
if key-event is consumed, EKeyWasConsumed. Else EKeyWasNotConsumed
Parameters:
aKeyEvent  Key event
aType  Type of key event ( EEventKey, EEventKeyUp or EEventKeyDown )

Definition at line 445 of file aknexquerycontainer.cpp.

References CAknExQueryView::DisplayNextOutlineL(), iDisplayDialog, iListBox, and iView.

00448     {
00449     if ( aType != EEventKey )
00450         {
00451         return EKeyWasNotConsumed;
00452         }
00453     switch ( aKeyEvent.iCode )
00454         {
00455         case EKeySpace:
00456             if ( iDisplayDialog )
00457                 {
00458                 return EKeyWasNotConsumed;
00459                 }
00460             iView->DisplayNextOutlineL();
00461             DrawNow();
00462             break;
00463         default:
00464             if ( !iDisplayDialog && iListBox )
00465                 {
00466                 return iListBox->OfferKeyEventL( aKeyEvent, aType );
00467                 }
00468             else
00469                 {
00470                 return EKeyWasNotConsumed;
00471                 }
00472         }
00473     return EKeyWasConsumed;
00474     }

void CAknExQueryContainer::SizeChanged (   )  [private]
 

From CCoeControl, SizeChanged.

Definition at line 481 of file aknexquerycontainer.cpp.

References iLabel.

00482     {
00483     if ( iLabel )
00484         {
00485         iLabel->SetExtent( AKNEXQUERY_LABEL_ORIGIN, Size() );
00486         iLabel->SetAlignment( EHCenterVCenter );
00487         }
00488     }

TInt CAknExQueryContainer::CountComponentControls (   )  const [private]
 

From CCoeControl, CountComponentControls. Returns number of component.

Returns:
Number of controls

Definition at line 495 of file aknexquerycontainer.cpp.

References iLabelResultMessage, and iListBox.

00496     {
00497     TInt count( KAknExQueryCountComponentControls );
00498     if ( iLabelResultMessage )
00499         {
00500         count++;
00501         }
00502     if ( iListBox )
00503         {
00504         count++;
00505         }
00506     return count;
00507     }

CCoeControl * CAknExQueryContainer::ComponentControl (  TInt  aIndex  )  const [private]
 

From CCoeControl, ComponentControl. Returns pointer to particular component.

Returns:
Pointer to Control's component control, identified by index
Parameters:
aIndex  Index of the control

Definition at line 514 of file aknexquerycontainer.cpp.

References iLabel, iLabelResultMessage, and iListBox.

00515     {
00516     switch ( aIndex )
00517         {
00518         case EAknExQueryComponentLabel:
00519             return iLabel;
00520         case EAknExQueryComponentLabel2:
00521             if ( iLabelResultMessage )
00522                 {
00523                 return iLabelResultMessage;
00524                 }
00525             else
00526                 {
00527                 return iListBox;
00528                 }
00529         case EAknExQueryComponentListBox:
00530             return iListBox;
00531         default:
00532             return NULL;
00533         }
00534     }

void CAknExQueryContainer::Draw (  const TRect &  aRect  )  const [private]
 

From CCoeControl, Draw.

Parameters:
aRect  Region of the control to be ( re )drawn.

Definition at line 541 of file aknexquerycontainer.cpp.

00542     {
00543     CWindowGc& gc = SystemGc();
00544     gc.SetPenStyle( CGraphicsContext::ENullPen );
00545     gc.SetBrushColor( KAknExQueryGray );
00546     gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
00547     gc.DrawRect( aRect );
00548     }

void CAknExQueryContainer::ShowResultMessageL (  TBool  aResult  )  [private]
 

ShowResultMessageL Show Result Message.

Parameters:
aResult 

Definition at line 163 of file aknexquerycontainer.cpp.

References ShowMessageL().

Referenced by ShowConfirmationQueryL().

00164     {
00165     TInt res( R_AKNEXQUERY_NO_OR_CANCEL_MESSAGE );
00166 
00167     if ( aResult )
00168         {
00169         res = R_AKNEXQUERY_YES_OR_OK_MESSAGE;
00170         }
00171 
00172     TBuf<KAknExQueryTextBufLength> messageConfirmationQuery;
00173     iCoeEnv->ReadResource( messageConfirmationQuery, res );
00174 
00175     ShowMessageL( messageConfirmationQuery );
00176     }

void CAknExQueryContainer::SetIconL (  CAknQueryDialog *  aDlg,
TInt32  aBitmap,
TInt32  aMask
)  [private]
 

SetIconL

Parameters:
aDlg 
aBitmap 
aMask 

Definition at line 583 of file aknexquerycontainer.cpp.

Referenced by ShowConfirmationQueryL().

00586     {
00587     CEikImage* image = new ( ELeave ) CEikImage();
00588     CleanupStack::PushL( image );
00589 
00590     CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(
00591         KAknExQueryMbmFilePath, aBitmap );
00592     CleanupStack::PushL( bitmap );
00593     CFbsBitmap* mask = iEikonEnv->CreateBitmapL(
00594         KAknExQueryMbmFilePath, aMask );
00595     CleanupStack::PushL( mask );
00596 
00597     image->SetBitmap( bitmap );
00598     image->SetMask( mask );
00599     CleanupStack::Pop( 2 ); //mask and bitmap
00600 
00601     aDlg->QueryHeading()->SetHeaderImageL( image );
00602     CleanupStack::PopAndDestroy(); //image
00603     }


Member Data Documentation

CEikLabel* CAknExQueryContainer::iLabel [private]
 

iLabel Owned by CAknExQueryContainer object.

Definition at line 263 of file aknexquerycontainer.h.

Referenced by ComponentControl(), ConstructL(), SetTextToLabelL(), SizeChanged(), and ~CAknExQueryContainer().

CEikLabel* CAknExQueryContainer::iLabelResultMessage [private]
 

iLabelResultMessage Owned by CAknExQueryContainer object.

Definition at line 269 of file aknexquerycontainer.h.

Referenced by ComponentControl(), CountComponentControls(), CreateLabelL(), DeleteLabelL(), ShowMessageL(), and ~CAknExQueryContainer().

CAknExQueryView* CAknExQueryContainer::iView [private]
 

iView Does not own

Definition at line 275 of file aknexquerycontainer.h.

Referenced by OfferKeyEventL().

CEikColumnListBox* CAknExQueryContainer::iListBox [private]
 

iListBox Owned by CAknExQueryContainer object.

Definition at line 281 of file aknexquerycontainer.h.

Referenced by ComponentControl(), CountComponentControls(), CreateListBoxL(), DeleteListBoxL(), OfferKeyEventL(), PopoutListBoxL(), and ~CAknExQueryContainer().

CAknExQueryBaseListEventHandler* CAknExQueryContainer::iHandler [private]
 

iHandler Owned by CAknExQueryContainer object.

Definition at line 287 of file aknexquerycontainer.h.

Referenced by CreateListBoxL(), DeleteListBoxL(), PopoutListBoxL(), and ~CAknExQueryContainer().

TBool CAknExQueryContainer::iDisplayDialog [private]
 

iDisplayDialog, boolean for Display Dialog

Definition at line 292 of file aknexquerycontainer.h.

Referenced by OfferKeyEventL(), ShowConfirmationQueryL(), ShowGlobalListQueryL(), ShowListQueryL(), and ShowMultiLineTimeAndDurationLayoutL().

CAknGlobalListQuery* CAknExQueryContainer::iGlobalListQuery [private]
 

iGlobalListQuery Owned by CAknExQueryContainer object.

Definition at line 298 of file aknexquerycontainer.h.

Referenced by ShowGlobalListQueryL(), and ~CAknExQueryContainer().

CAknExQueryGlobalListObserver* CAknExQueryContainer::iGlobalListObserver [private]
 

iGlobalListObserver Owned by CAknExQueryContainer object.

Definition at line 304 of file aknexquerycontainer.h.

Referenced by ShowGlobalListQueryL(), and ~CAknExQueryContainer().


The documentation for this class was generated from the following files:

© Nokia 2009

Back to top