ExpensesListBoxView.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. ========================================================================
  3. Name : ExpensesListBoxView.h
  4. Author : Vishal Dharankar
  5. Copyright : Created by Vishal Dharankar
  6. Description :
  7. ========================================================================
  8. */
  9. #ifndef EXPENSESLISTBOXVIEW_H
  10. #define EXPENSESLISTBOXVIEW_H
  11. // [[[ begin generated region: do not modify [Generated Includes]
  12. #include <aknview.h>
  13. // ]]] end generated region [Generated Includes]
  14. // [[[ begin [Event Handler Includes]
  15. // ]]] end [Event Handler Includes]
  16. // [[[ begin generated region: do not modify [Generated Constants]
  17. // ]]] end generated region [Generated Constants]
  18. // [[[ begin generated region: do not modify [Generated Forward Declarations]
  19. class CExpensesListBox;
  20. // ]]] end generated region [Generated Forward Declarations]
  21. /**
  22. * Avkon view class for ExpensesListBoxView. It is register with the view server
  23. * by the AppUi. It owns the container control.
  24. * @class CExpensesListBoxView ExpensesListBoxView.h
  25. */
  26. class CExpensesListBoxView : public CAknView
  27. {
  28. // [[[ begin [Public Section]
  29. public:
  30. // constructors and destructor
  31. CExpensesListBoxView();
  32. static CExpensesListBoxView* NewL();
  33. static CExpensesListBoxView* NewLC();
  34. void ConstructL();
  35. virtual ~CExpensesListBoxView();
  36. // from base class CAknView
  37. TUid Id() const;
  38. void HandleCommandL( TInt aCommand );
  39. // [[[ begin generated region: do not modify [Generated Methods]
  40. CExpensesListBox* CreateContainerL();
  41. // ]]] end generated region [Generated Methods]
  42. // ]]] end [Public Section]
  43. void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
  44. // [[[ begin [Protected Section]
  45. protected:
  46. // from base class CAknView
  47. void DoActivateL(
  48. const TVwsViewId& aPrevViewId,
  49. TUid aCustomMessageId,
  50. const TDesC8& aCustomMessage );
  51. void DoDeactivate();
  52. void HandleStatusPaneSizeChange();
  53. // [[[ begin generated region: do not modify [Overridden Methods]
  54. // ]]] end generated region [Overridden Methods]
  55. // [[[ begin [User Handlers]
  56. TBool HandleTestMenuItemSelectedL( TInt aCommand );
  57. TBool HandleAdd_ExpenseMenuItemSelectedL( TInt aCommand );
  58. void HandleExpensesListBoxViewActivatedL();
  59. TBool HandleDeleteMenuItemSelectedL( TInt aCommand );
  60. TBool HandleView_MenuItemSelectedL( TInt aCommand );
  61. TBool HandleControlPaneRightSoftKeyPressedL( TInt aCommand );
  62. // ]]] end [User Handlers]
  63. // ]]] end [Protected Section]
  64. // [[[ begin [Private Section]
  65. private:
  66. void SetupStatusPaneL();
  67. void CleanupStatusPane();
  68. // [[[ begin generated region: do not modify [Generated Instance Variables]
  69. CExpensesListBox* iExpensesListBox;
  70. // ]]] end generated region [Generated Instance Variables]
  71. // [[[ begin generated region: do not modify [Generated Methods]
  72. // ]]] end generated region [Generated Methods]
  73. // ]]] end [Private Section]
  74. };
  75. #endif // EXPENSESLISTBOXVIEW_H