|
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 * Provisioning context list view |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CWPCXVIEW_H |
|
21 #define CWPCXVIEW_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknview.h> |
|
25 #include "MWPContextObserver.h" |
|
26 |
|
27 // CONSTANTS |
|
28 // UID of view |
|
29 const TUid KProvisioningCxViewId = {1}; |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CWPCxContainer; |
|
33 class CWPEngine; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * CProvisioningDumpView view class. |
|
39 * |
|
40 */ |
|
41 class CWPCxView : public CAknView, private MWPContextObserver |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * EPOC default constructor. |
|
47 */ |
|
48 void ConstructL(); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CWPCxView(); |
|
54 |
|
55 public: // from CAknView |
|
56 |
|
57 TUid Id() const; |
|
58 void HandleCommandL(TInt aCommand); |
|
59 void HandleClientRectChange(); |
|
60 |
|
61 private: // from CAknView |
|
62 |
|
63 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
64 const TDesC8& aCustomMessage); |
|
65 void DoDeactivate(); |
|
66 |
|
67 public: // From MWPContextObserver |
|
68 void ContextChangeL( RDbNotifier::TEvent aEvent ); |
|
69 |
|
70 private: |
|
71 // From MEikMenuObserver |
|
72 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
73 |
|
74 private: // new methods |
|
75 void DeleteContextL(); |
|
76 void LaunchPopupL(); |
|
77 |
|
78 private: // Data |
|
79 /// The context list container. Owns. |
|
80 CWPCxContainer* iContainer; |
|
81 |
|
82 /// The ProvisioningEngine instance. Owns. |
|
83 CWPEngine* iEngine; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif |
|
88 |
|
89 // End of File |