1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef EXPENSESAPPUI_H
- #define EXPENSESAPPUI_H
- #include <aknviewappui.h>
- #include "expense.h"
- class CExpensesListBoxView;
- class CExpensesFormView;
- class CExpensesAppUi : public CAknViewAppUi
- {
- public:
-
- CExpensesAppUi();
- virtual ~CExpensesAppUi();
- void ConstructL();
- public:
-
- TKeyResponse HandleKeyEventL(
- const TKeyEvent& aKeyEvent,
- TEventCode aType );
-
- void HandleCommandL( TInt aCommand );
- void HandleResourceChangeL( TInt aType );
-
- void HandleViewDeactivation(
- const TVwsViewId& aViewIdToBeDeactivated,
- const TVwsViewId& aNewlyActivatedViewId );
- private:
- void InitializeContainersL();
-
- public:
-
- RArray<Expense>& ExpArray() { return this->iExpArray; }
- void SetSelIndex(TInt aIndex) { iSelIndex = aIndex; }
- TInt GetSelIndex() { return iSelIndex; }
- void SetAddOrView(TBool aState){ iAddOrView = aState; }
- TBool GetAddOrView(){ return iAddOrView; }
-
-
- private:
- CExpensesListBoxView* iExpensesListBoxView;
- CExpensesFormView* iExpensesFormView;
-
-
-
-
- protected:
-
- RArray<Expense> iExpArray;
- TInt iSelIndex;
- TBool iAddOrView;
- };
- #endif
|