|
1 /* |
|
2 * Copyright (c) 2005 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: GSGenPlugin header. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSGENPLUGIN_H |
|
20 #define GSGENPLUGIN_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 class CGSTabHelper; |
|
33 |
|
34 // Constants |
|
35 _LIT( KGSGenPluginResourceFileName, "z:GSGenPluginRsc.rsc" ); |
|
36 _LIT( KGSGenPluginIconDirAndName, "z:GSGenPlugin.mbm"); // Use KDC_BITMAP_DIR |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * CGSGenPlugin view class. |
|
42 * |
|
43 * @since Series60_3.1 |
|
44 */ |
|
45 class CGSGenPlugin : public CGSParentPlugin |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Symbian OS two-phased constructor |
|
51 * @return |
|
52 */ |
|
53 static CGSGenPlugin* NewL( TAny* aInitParams ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 ~CGSGenPlugin(); |
|
59 |
|
60 public: // From CAknView |
|
61 |
|
62 /** |
|
63 * See base class. |
|
64 */ |
|
65 TUid Id() const; |
|
66 |
|
67 /** |
|
68 * See base class. |
|
69 */ |
|
70 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
71 TUid aCustomMessageId, |
|
72 const TDesC8& aCustomMessage ); |
|
73 /** |
|
74 * See base class. |
|
75 */ |
|
76 void DoDeactivate(); |
|
77 |
|
78 public: // From CGSParentPlugin |
|
79 |
|
80 /** |
|
81 * See base class. |
|
82 */ |
|
83 TUid UpperLevelViewUid(); |
|
84 |
|
85 /** |
|
86 * See base class. |
|
87 */ |
|
88 void GetHelpContext( TCoeHelpContext& aContext ); |
|
89 |
|
90 public: // From CGSPluginInterface |
|
91 |
|
92 /** |
|
93 * See base class. |
|
94 */ |
|
95 void GetCaptionL( TDes& aCaption ) const; |
|
96 |
|
97 /** |
|
98 * See base class. |
|
99 */ |
|
100 CGulIcon* CreateIconL( const TUid aIconType ); |
|
101 |
|
102 /** |
|
103 * See base class. |
|
104 */ |
|
105 TInt PluginProviderCategory() const; |
|
106 |
|
107 protected: // From MEikMenuObserver |
|
108 |
|
109 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
110 |
|
111 protected: // New |
|
112 /** |
|
113 * C++ default constructor. |
|
114 */ |
|
115 CGSGenPlugin(); |
|
116 |
|
117 /** |
|
118 * Symbian OS default constructor. |
|
119 */ |
|
120 void ConstructL(); |
|
121 |
|
122 private: // Data |
|
123 |
|
124 // Resource loader. |
|
125 RConeResourceLoader iResourceLoader; |
|
126 |
|
127 // Tab hepler. |
|
128 CGSTabHelper* iTabHelper; |
|
129 }; |
|
130 |
|
131 |
|
132 #endif // GSGENPLUGIN_H |
|
133 // End of File |