|
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 LOGABSTRACTVIEWMANAGER_H |
|
18 #define LOGABSTRACTVIEWMANAGER_H |
|
19 |
|
20 |
|
21 #include "logsdefs.h" |
|
22 class HbMainWindow; |
|
23 |
|
24 /** |
|
25 * For view changing. |
|
26 */ |
|
27 class LogsAbstractViewManager |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Activate view. Previously active view is deactivated. |
|
33 * @param viewId, id for activated view |
|
34 * @return true if activated succesfully, otherwise false |
|
35 */ |
|
36 virtual bool activateView(LogsAppViewId viewId) = 0; |
|
37 |
|
38 /** |
|
39 * Activate view by giving activation arguments. Previously active |
|
40 * view is deactivated. |
|
41 * @param viewId, id for activated view |
|
42 * @param showDialer, true if view should show dialer when activated |
|
43 * @param args, custom arguments for view |
|
44 * @return true if activated succesfully, otherwise false |
|
45 */ |
|
46 virtual bool activateView(LogsAppViewId viewId, bool showDialer, QVariant args) = 0; |
|
47 |
|
48 /** |
|
49 * Activate previous view. |
|
50 * @return true if activated succesfully, otherwise false |
|
51 */ |
|
52 virtual bool activatePreviousView() = 0; |
|
53 |
|
54 /** |
|
55 * Returns application main window |
|
56 */ |
|
57 virtual HbMainWindow& mainWindow() = 0; |
|
58 |
|
59 /** |
|
60 * Exit the application. |
|
61 */ |
|
62 virtual void exitApplication() = 0; |
|
63 |
|
64 }; |
|
65 |
|
66 #endif //LOGABSTRACTVIEWMANAGER_H |