Nokia N97 SDK
Example Applications Guide

CCEWaitNote Class Reference

#include <CCEWaitNote.h>

Inheritance diagram for CCEWaitNote:

List of all members.

Detailed Description

Wait note for CLF Example Application. Shows a wait note to indicate the refresh of the List Model. The wait note is closed, when refreshing operation has completed. This wait note is used in classes CCEGroupView and CCEMusicView when calling MCLFItemListModel::RefreshL().

Definition at line 36 of file CCEWaitNote.h.


Public Member Functions

virtual  ~CCEWaitNote ()
void  CloseWaitNoteL ()
void  OpenWaitNoteL (const TInt aResourceId)

Static Public Member Functions

static CCEWaitNote *  NewL ()

Protected Member Functions

void  DialogDismissedL (const TInt aButtonId)

Private Member Functions

  CCEWaitNote ()

Private Attributes

CAknWaitDialog *  iWaitDialog


Constructor & Destructor Documentation

CCEWaitNote::~CCEWaitNote (   )  [virtual]
 

Destructor.

Definition at line 46 of file CCEWaitNote.cpp.

References iWaitDialog.

00047     {
00048     if( iWaitDialog )
00049         {
00050         // Do not delete CAknWaitDialog object:
00051         // CAknWaitDialog::ProcessFinishedL should be used instead.
00052         TRAP_IGNORE( iWaitDialog->ProcessFinishedL() );
00053         }
00054     }

CCEWaitNote::CCEWaitNote (   )  [private]
 

C++ default constructor.

Definition at line 30 of file CCEWaitNote.cpp.

00031     {
00032     }


Member Function Documentation

CCEWaitNote * CCEWaitNote::NewL (   )  [static]
 

Creates and returns a new instance of this class.

Returns:
Pointer to the CCEWaitNote object

Definition at line 39 of file CCEWaitNote.cpp.

Referenced by CCEMusicView::ConstructL(), and CCEGroupView::ConstructL().

00040     {
00041     CCEWaitNote* self = new (ELeave) CCEWaitNote;
00042     return self;
00043     }

void CCEWaitNote::DialogDismissedL (  const TInt  aButtonId  )  [protected]
 

From MProgressDialogCallback. Gets called when the dialog is dismissed/closed.

Parameters:
aButtonId  Softkey Button Id

Definition at line 61 of file CCEWaitNote.cpp.

00062     {
00063     }

void CCEWaitNote::CloseWaitNoteL (   ) 
 

Close the wait note dialog.

Definition at line 70 of file CCEWaitNote.cpp.

References iWaitDialog.

Referenced by CCEGroupView::HandleCommandL(), CCEMusicView::ItemsChangedL(), and OpenWaitNoteL().

00071     {
00072     // Close and delete the wait note dialog,
00073     // if it has not been dismissed yet
00074     if( iWaitDialog )
00075         {
00076         iWaitDialog->ProcessFinishedL();
00077         }
00078     }

void CCEWaitNote::OpenWaitNoteL (  const TInt  aResourceId  ) 
 

Open the wait note dialog.

Parameters:
aResourceId  Wait note resource id

Definition at line 85 of file CCEWaitNote.cpp.

References CloseWaitNoteL(), and iWaitDialog.

Referenced by CCEGroupView::HandleCommandL(), and CCEMusicView::ItemsChangedL().

00086     {
00087     CloseWaitNoteL();
00088 
00089     // Create and view the wait note dialog
00090     iWaitDialog = new (ELeave) CAknWaitDialog(
00091         reinterpret_cast<CEikDialog**>( &iWaitDialog ) );
00092     iWaitDialog->SetCallback( this );
00093     iWaitDialog->ExecuteLD( aResourceId );
00094     }


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

© Nokia 2009

Back to top