|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #ifndef IRABSTRACTVIEWMANAGER_H |
|
18 #define IRABSTRACTVIEWMANAGER_H |
|
19 |
|
20 #include <hbmainwindow.h> |
|
21 |
|
22 #include "irviewdefinitions.h" |
|
23 #include "irsystemeventobserver.h" |
|
24 |
|
25 class IRApplication; |
|
26 class IRBaseView; |
|
27 |
|
28 class IRAbstractViewManager : public HbMainWindow |
|
29 { |
|
30 public: |
|
31 IRAbstractViewManager(); |
|
32 void setApplication(IRApplication *aApplication); |
|
33 |
|
34 public: |
|
35 virtual IRBaseView* getView(TIRViewId aViewId, bool aCreateIfNotExist = false) = 0; |
|
36 |
|
37 virtual bool isViewInStack(TIRViewId aViewId) const = 0; |
|
38 |
|
39 virtual void activateView(TIRViewId aViewId, bool aPushCurrentView = true) = 0; |
|
40 |
|
41 virtual void activateView(IRBaseView *aView, bool aPushCurrentView = true) = 0; |
|
42 |
|
43 virtual TIRViewId currentViewId() const = 0; |
|
44 |
|
45 virtual void pushViewById(TIRViewId aViewId) = 0; |
|
46 |
|
47 //Peter : use of TIRSystemEventType causes dependence of InternetRadio/uiinc/irsystemeventobserver.h |
|
48 virtual TIRHandleResult handleSystemEvent(TIRSystemEventType aEvent) = 0; |
|
49 |
|
50 virtual void backToPreviousView() = 0; |
|
51 |
|
52 protected: |
|
53 IRApplication* iApplication; |
|
54 }; |
|
55 |
|
56 #endif |