|
1 /* |
|
2 * Copyright (c) 2005-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: GSPDataPlugin header. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSPDATAPLUGIN_H |
|
20 #define GSPDATAPLUGIN_H |
|
21 |
|
22 // Includes |
|
23 #include <aknview.h> |
|
24 #include <eikclb.h> |
|
25 #include <eikmenup.h> |
|
26 #include <gsparentplugin.h> |
|
27 #include <gsfwviewuids.h> |
|
28 |
|
29 // Classes referenced |
|
30 class CAknViewAppUi; |
|
31 class RConeResourceLoader; |
|
32 |
|
33 // Constants |
|
34 _LIT( KPDataResourceFileName, "z:GSPdataPluginRsc.rsc" ); |
|
35 _LIT( KGSPDataPluginIconDirAndName, "z:GSPDataPlugin.mbm"); // Use KDC_BITMAP_DIR |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 /** |
|
40 * CGSPDataPlugin view class. |
|
41 * |
|
42 * @since Series60_3.1 |
|
43 */ |
|
44 class CGSPDataPlugin : public CGSParentPlugin |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * Symbian OS two-phased constructor |
|
50 * @return |
|
51 */ |
|
52 static CGSPDataPlugin* NewL( TAny* aInitParams ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 ~CGSPDataPlugin(); |
|
58 |
|
59 public: // From CAknView |
|
60 |
|
61 /** |
|
62 * See base class. |
|
63 */ |
|
64 TUid Id() const; |
|
65 |
|
66 /** |
|
67 * See base class. |
|
68 */ |
|
69 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
70 TUid aCustomMessageId, |
|
71 const TDesC8& aCustomMessage ); |
|
72 /** |
|
73 * See base class. |
|
74 */ |
|
75 void DoDeactivate(); |
|
76 |
|
77 public: // From CGSParentPlugin |
|
78 |
|
79 /** |
|
80 * See base class. |
|
81 */ |
|
82 TUid UpperLevelViewUid(); |
|
83 |
|
84 /** |
|
85 * See base class. |
|
86 */ |
|
87 TGSListboxTypes ListBoxType(); |
|
88 |
|
89 /** |
|
90 * See base class. |
|
91 */ |
|
92 void GetHelpContext( TCoeHelpContext& aContext ); |
|
93 |
|
94 public: // From CGSPluginInterface |
|
95 |
|
96 /** |
|
97 * See base class. |
|
98 */ |
|
99 void GetCaptionL( TDes& aCaption ) const; |
|
100 |
|
101 /** |
|
102 * See base class. |
|
103 */ |
|
104 CGulIcon* CreateIconL( const TUid aIconType ); |
|
105 |
|
106 /** |
|
107 * See base class. |
|
108 */ |
|
109 TInt PluginProviderCategory() const; |
|
110 |
|
111 TAny* CustomOperationL( TAny* aParam1, TAny* aParam2 ); |
|
112 |
|
113 protected: // From MEikMenuObserver |
|
114 |
|
115 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
116 |
|
117 protected: // New |
|
118 /** |
|
119 * C++ default constructor. |
|
120 */ |
|
121 CGSPDataPlugin(); |
|
122 |
|
123 /** |
|
124 * Symbian OS default constructor. |
|
125 */ |
|
126 void ConstructL(); |
|
127 |
|
128 private: // Data |
|
129 |
|
130 // Resource loader. |
|
131 RConeResourceLoader iResourceLoader; |
|
132 |
|
133 // Indicates view active status |
|
134 TBool iViewActive; |
|
135 |
|
136 }; |
|
137 |
|
138 |
|
139 #endif // GSPDATAPLUGIN_H |
|
140 // End of File |