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