1 /* |
|
2 * Copyright (c) 2002-2006 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: Placeholder view during synchronous view activation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSPLACEHOLDERVIEW_H |
|
20 #define GSPLACEHOLDERVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <vwsdef.h> |
|
25 #include <coeview.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Dummy view class used by CGSPluginAndViewIdCache view switching between two |
|
35 * actual views. See CGSPluginAndViewIdCache for details. |
|
36 * |
|
37 * @since Series60_3.1 |
|
38 * |
|
39 */ |
|
40 class CGSPlaceholderView : public CBase, public MCoeView |
|
41 { |
|
42 public: // Constructor and destructor |
|
43 |
|
44 /** |
|
45 * |
|
46 */ |
|
47 static CGSPlaceholderView* NewL( CCoeAppUi& aAppUi ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CGSPlaceholderView(); |
|
53 |
|
54 private: |
|
55 |
|
56 /** |
|
57 * C++ constructor |
|
58 */ |
|
59 CGSPlaceholderView( CCoeAppUi& aAppUi ); |
|
60 |
|
61 /** |
|
62 * Second phase constructor |
|
63 */ |
|
64 void ConstructL(); |
|
65 |
|
66 public: // API |
|
67 |
|
68 /** |
|
69 * |
|
70 */ |
|
71 void ActivateL(); |
|
72 |
|
73 /** |
|
74 * |
|
75 */ |
|
76 const TVwsViewId& PreviouslyActiveViewId() const; |
|
77 |
|
78 /** |
|
79 * |
|
80 */ |
|
81 void SetPreviouslyActiveViewId( const TVwsViewId& aViewId ); |
|
82 |
|
83 private: // From MCoeView |
|
84 TVwsViewId ViewId() const; |
|
85 void ViewActivatedL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage ); |
|
86 void ViewDeactivated(); |
|
87 |
|
88 private: // Internal methods |
|
89 |
|
90 private: // Data |
|
91 CCoeAppUi& iAppUi; |
|
92 TVwsViewId iPreviouslyActiveViewId; |
|
93 }; |
|
94 |
|
95 |
|
96 #endif // GSPLACEHOLDERVIEW_H |
|
97 // End of File |
|