ExpensesAppUi.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. ========================================================================
  3. Name : ExpensesAppUi.h
  4. Author : Vishal Dharankar
  5. Copyright : Created by Vishal Dharankar
  6. Description :
  7. ========================================================================
  8. */
  9. #ifndef EXPENSESAPPUI_H
  10. #define EXPENSESAPPUI_H
  11. // [[[ begin generated region: do not modify [Generated Includes]
  12. #include <aknviewappui.h>
  13. // ]]] end generated region [Generated Includes]
  14. #include "expense.h"
  15. // [[[ begin generated region: do not modify [Generated Forward Declarations]
  16. class CExpensesListBoxView;
  17. class CExpensesFormView;
  18. // ]]] end generated region [Generated Forward Declarations]
  19. /**
  20. * @class CExpensesAppUi ExpensesAppUi.h
  21. * @brief The AppUi class handles application-wide aspects of the user interface, including
  22. * view management and the default menu, control pane, and status pane.
  23. */
  24. class CExpensesAppUi : public CAknViewAppUi
  25. {
  26. public:
  27. // constructor and destructor
  28. CExpensesAppUi();
  29. virtual ~CExpensesAppUi();
  30. void ConstructL();
  31. public:
  32. // from CCoeAppUi
  33. TKeyResponse HandleKeyEventL(
  34. const TKeyEvent& aKeyEvent,
  35. TEventCode aType );
  36. // from CEikAppUi
  37. void HandleCommandL( TInt aCommand );
  38. void HandleResourceChangeL( TInt aType );
  39. // from CAknAppUi
  40. void HandleViewDeactivation(
  41. const TVwsViewId& aViewIdToBeDeactivated,
  42. const TVwsViewId& aNewlyActivatedViewId );
  43. private:
  44. void InitializeContainersL();
  45. // [[[ begin generated region: do not modify [Generated Methods]
  46. public:
  47. // ]]] end generated region [Generated Methods]
  48. RArray<Expense>& ExpArray() { return this->iExpArray; }
  49. void SetSelIndex(TInt aIndex) { iSelIndex = aIndex; }
  50. TInt GetSelIndex() { return iSelIndex; }
  51. void SetAddOrView(TBool aState){ iAddOrView = aState; }
  52. TBool GetAddOrView(){ return iAddOrView; }
  53. // [[[ begin generated region: do not modify [Generated Instance Variables]
  54. private:
  55. CExpensesListBoxView* iExpensesListBoxView;
  56. CExpensesFormView* iExpensesFormView;
  57. // ]]] end generated region [Generated Instance Variables]
  58. // [[[ begin [User Handlers]
  59. protected:
  60. // ]]] end [User Handlers]
  61. RArray<Expense> iExpArray;
  62. TInt iSelIndex;
  63. TBool iAddOrView;
  64. };
  65. #endif // EXPENSESAPPUI_H