equal
deleted
inserted
replaced
|
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 CNTABSTRACTVIEW_H_ |
|
18 #define CNTABSTRACTVIEW_H_ |
|
19 |
|
20 #include <cntabstractviewmanager.h> |
|
21 #include <cntviewparams.h> |
|
22 |
|
23 class HbView; |
|
24 |
|
25 class CntAbstractView |
|
26 { |
|
27 |
|
28 public: |
|
29 virtual ~CntAbstractView(){} |
|
30 |
|
31 public: |
|
32 /** |
|
33 * View is activated after its added to main window and is |
|
34 * ready to be drawn. |
|
35 */ |
|
36 virtual void activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs ) = 0; |
|
37 |
|
38 /** |
|
39 * View is deactivated just before its removed from |
|
40 * main window. |
|
41 */ |
|
42 virtual void deactivate() = 0; |
|
43 |
|
44 /** |
|
45 * Default view is not deleted when its removed from |
|
46 * main window. So, if view is NOT default, its deleted |
|
47 * after its removed from main window. |
|
48 */ |
|
49 virtual bool isDefault() const = 0; |
|
50 |
|
51 /** |
|
52 * return the view implementation. |
|
53 */ |
|
54 virtual HbView* view() const = 0; |
|
55 |
|
56 /*! |
|
57 * return the view id |
|
58 */ |
|
59 virtual int viewId() const = 0; |
|
60 }; |
|
61 #endif /* CNTABSTRACTVIEW_H_ */ |