|
1 /* |
|
2 * Copyright (c) 2002 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 * Works as a mediator to different views |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CCBS_UI_VIEW_FACTORY_H |
|
22 #define CCBS_UI_VIEW_FACTORY_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <CbsCommon.h> |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MCbs; |
|
31 class CCbsUiTopicListView; |
|
32 class CCbsUiTopicView; |
|
33 class CCbsUiMsgView; |
|
34 class CCbsUiTopicListMonitor; |
|
35 class CCbsUiSettingsView; |
|
36 class CAknView; |
|
37 class CCbsUiTopicListMonitor; |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 |
|
42 /** |
|
43 * For creating views in cbsui. |
|
44 * |
|
45 */ |
|
46 class CCbsUiViewFactory : public CBase |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * C++ constructor. |
|
52 */ |
|
53 CCbsUiViewFactory( |
|
54 MCbs& aServer, CCbsUiTopicListMonitor& aTopicMonitor ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CCbsUiViewFactory(); |
|
60 |
|
61 public: // New functions |
|
62 |
|
63 /** |
|
64 * Returns pointer to topic list view and keeps a reference |
|
65 * to that object. |
|
66 * |
|
67 * @return created view |
|
68 */ |
|
69 CAknView* CreateTopicListViewLC(); |
|
70 |
|
71 /** |
|
72 * Returns pointer to topioc view and keeps a reference |
|
73 * to that object. |
|
74 * |
|
75 * @return created view |
|
76 */ |
|
77 CAknView* CreateTopicViewLC(); |
|
78 |
|
79 /** |
|
80 * Returns pointer to msg view and keeps a reference |
|
81 * to that object. |
|
82 * |
|
83 * @return created view |
|
84 */ |
|
85 CAknView* CreateMsgViewLC(); |
|
86 |
|
87 /** |
|
88 * Returns pointer to settings view and keeps a reference |
|
89 * to that object. |
|
90 * |
|
91 * @return created view |
|
92 */ |
|
93 CAknView* CreateSettingsViewLC(); |
|
94 |
|
95 private: // Data |
|
96 |
|
97 // Ref: |
|
98 CCbsUiTopicListMonitor& iTopicMonitor; |
|
99 |
|
100 // Ref: |
|
101 MCbs& iServer; |
|
102 }; |
|
103 |
|
104 #endif // CCBS_UI_VIEW_FACTORY_H |
|
105 |
|
106 // End of File |