00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __AKNDIALOG_H__
00019 #define __AKNDIALOG_H__
00020
00021
00022 #include <eikdialg.h>
00023 #include <eikmobs.h>
00024
00025
00026 class CAknDialogAttributes;
00027
00035 class CAknDialog : public CEikDialog, public MEikMenuObserver
00036 {
00037 public :
00038
00042 IMPORT_C CAknDialog() ;
00043
00052 IMPORT_C void ConstructL( TInt aMenuTitleResourceId ) ;
00053
00057 IMPORT_C ~CAknDialog() ;
00058
00075 IMPORT_C TInt ExecuteLD( TInt aResourceId ) ;
00076
00084 IMPORT_C void PrepareLC(TInt aResourceId);
00085
00104 IMPORT_C TInt RunLD();
00105
00106
00121 IMPORT_C virtual void SetEmphasis( CCoeControl* aMenuControl,
00122 TBool aEmphasis ) ;
00129 IMPORT_C virtual void DynInitMenuPaneL( TInt aResourceId,
00130 CEikMenuPane* aMenuPane ) ;
00131
00139 IMPORT_C virtual void ProcessCommandL( TInt aCommandId ) ;
00140
00141
00142
00175 IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
00176 TEventCode aType) ;
00177
00191 IMPORT_C void FocusChanged(TDrawNow aDrawNow);
00192
00209 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);
00210
00211 private:
00212
00213 IMPORT_C virtual void Reserved_MtsmPosition();
00214
00215 IMPORT_C virtual void Reserved_MtsmObject();
00216
00217 private:
00218
00222 IMPORT_C void* ExtensionInterface( TUid aInterface );
00223
00224 protected:
00225
00250 IMPORT_C virtual TBool OkToExitL( TInt aButtonId ) ;
00251
00257 IMPORT_C void DisplayMenuL() ;
00258
00264 IMPORT_C void HideMenu() ;
00265
00274 IMPORT_C TBool MenuShowing() const ;
00275
00282 IMPORT_C virtual void SizeChanged();
00283
00291 IMPORT_C virtual void Draw(const TRect &aRect) const;
00292
00293 protected:
00294
00303 IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
00304
00305 private:
00306
00307 IMPORT_C virtual void CEikDialog_Reserved_1();
00308
00309 IMPORT_C virtual void CEikDialog_Reserved_2();
00310
00311 private:
00312
00313 IMPORT_C virtual void CAknDialog_Reserved();
00314
00315 protected:
00316
00322 void CreateMenuBarL(TInt aMenuTitleResourceId);
00323
00324 protected:
00325
00330 CEikMenuBar* iMenuBar;
00331
00332 private:
00333
00334 enum TAknDialogFlag
00335 {
00336 EAknDialogFlagDialogDeleted = 1,
00337 EAknDialogFlagDefaultSounds = 2,
00338 EAknDialogFlagNotConstructed = 4
00339 };
00340
00341 CAknDialogAttributes* iAttributes;
00342
00343 CAknDialogAttributes* AttributesL();
00344
00345 } ;
00346
00347
00348 #endif
00349
00350
00351