|
1 /* |
|
2 * Copyright (c) 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: Header file for emptyview |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CIMAGEPRINTEMPTYVIEW_H |
|
19 #define CIMAGEPRINTEMPTYVIEW_H |
|
20 |
|
21 |
|
22 #include <aknview.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CEmptyContainer; |
|
26 |
|
27 const TUid KImagePrintEmptyViewId = { 1 }; |
|
28 |
|
29 /** |
|
30 * Class for showing empty view before capabilities has retrieved |
|
31 */ |
|
32 class CEmptyView : public CAknView |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Factory method NewL |
|
39 * @return The new object. |
|
40 */ |
|
41 static CEmptyView* NewL(); |
|
42 |
|
43 /** |
|
44 * Factory method NewLC |
|
45 * @return The new object. |
|
46 */ |
|
47 static CEmptyView* NewLC(); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CEmptyView(); |
|
53 |
|
54 private: // from base class CAknView |
|
55 |
|
56 /** |
|
57 * From CAknView |
|
58 * Returns view id. |
|
59 * @param None. |
|
60 * @return View id. |
|
61 */ |
|
62 TUid Id() const; |
|
63 |
|
64 /** |
|
65 * From CAknView |
|
66 * Handles user commands. |
|
67 * @param aCommand A command id. |
|
68 * @return None. |
|
69 */ |
|
70 void HandleCommandL(TInt aCommand); |
|
71 |
|
72 /** |
|
73 * From CAknView |
|
74 * Activates view. |
|
75 * @param aPrevViewId Id of previous view. |
|
76 * @param aCustomMessageId Custom message id. |
|
77 * @param aCustomMessage Custom message. |
|
78 * @return None. |
|
79 */ |
|
80 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
81 const TDesC8& aCustomMessage); |
|
82 |
|
83 /** |
|
84 * From CAknView |
|
85 * Deactivates view. |
|
86 * @param None. |
|
87 * @return None. |
|
88 */ |
|
89 void DoDeactivate(); |
|
90 |
|
91 /** |
|
92 * C++ default constructor |
|
93 */ |
|
94 CEmptyView(); |
|
95 |
|
96 /** |
|
97 * Symbian 2nd phase constructor. |
|
98 * @param None |
|
99 * @return None |
|
100 */ |
|
101 void ConstructL(); |
|
102 |
|
103 private: // data |
|
104 |
|
105 /** |
|
106 * Container control of this view |
|
107 * Own |
|
108 */ |
|
109 CEmptyContainer* iContainer; |
|
110 |
|
111 }; |
|
112 |
|
113 #endif // CIMAGEPRINTEMPTYVIEW_H |