|
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: GSTelPlugin header. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSTELPLUGIN_H |
|
20 #define GSTELPLUGIN_H |
|
21 |
|
22 // Includes |
|
23 #include <aknview.h> |
|
24 #include <eikclb.h> |
|
25 #include <gsparentplugin.h> |
|
26 #include <gsfwviewuids.h> |
|
27 #include <eikmenup.h> |
|
28 |
|
29 // Classes referenced |
|
30 class CAknViewAppUi; |
|
31 class RConeResourceLoader; |
|
32 class CGSTabHelper; |
|
33 |
|
34 // Constants |
|
35 _LIT( KGSTelPluginResourceFileName, "z:GSTelPluginRsc.rsc" ); |
|
36 _LIT( KGSDefaultTelIconFileName, "Z:\\resource\\apps\\GSTelplugin.mbm"); |
|
37 _LIT( KGSTelPluginIconFileName, "\\resource\\apps\\GSTelplugin.mif"); |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 /** |
|
42 * CGSGenPlugin view class. |
|
43 * |
|
44 * @since Series60_3.1 |
|
45 */ |
|
46 class CGSTelPlugin : public CGSParentPlugin |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Symbian OS two-phased constructor |
|
52 * @return |
|
53 */ |
|
54 static CGSTelPlugin* NewL( TAny* aInitParams ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 ~CGSTelPlugin(); |
|
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 * See base class. |
|
76 */ |
|
77 void DoDeactivate(); |
|
78 |
|
79 public: // From CGSParentPlugin |
|
80 |
|
81 /** |
|
82 * See base class. |
|
83 */ |
|
84 TUid UpperLevelViewUid(); |
|
85 |
|
86 /** |
|
87 * See base class. |
|
88 */ |
|
89 //TGSListboxTypes ListBoxType(); |
|
90 |
|
91 /** |
|
92 * See base class. |
|
93 */ |
|
94 void GetHelpContext( TCoeHelpContext& aContext ); |
|
95 |
|
96 public: // From CGSPluginInterface |
|
97 |
|
98 /** |
|
99 * See base class. |
|
100 */ |
|
101 void GetCaptionL( TDes& aCaption ) const; |
|
102 |
|
103 /** |
|
104 * See base class. |
|
105 */ |
|
106 CGulIcon* CreateIconL( const TUid aIconType ); |
|
107 |
|
108 /** |
|
109 * See base class. |
|
110 */ |
|
111 TInt PluginProviderCategory() const; |
|
112 |
|
113 protected: // From MEikMenuObserver |
|
114 |
|
115 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
116 |
|
117 protected: // New |
|
118 /** |
|
119 * C++ default constructor. |
|
120 */ |
|
121 CGSTelPlugin(); |
|
122 |
|
123 /** |
|
124 * Symbian OS default constructor. |
|
125 */ |
|
126 void ConstructL(); |
|
127 |
|
128 private: // Data |
|
129 |
|
130 // Resource loader. |
|
131 RConeResourceLoader iResourceLoader; |
|
132 |
|
133 // Tab hepler. |
|
134 CGSTabHelper* iTabHelper; |
|
135 }; |
|
136 |
|
137 |
|
138 #endif // GSTELPLUGIN_H |
|
139 // End of File |