84 * @param aIndex index of the button, starting at 0 |
84 * @param aIndex index of the button, starting at 0 |
85 */ |
85 */ |
86 const TDesC& PortalButtonIcon( TInt aIndex ); |
86 const TDesC& PortalButtonIcon( TInt aIndex ); |
87 |
87 |
88 /** |
88 /** |
89 * Portal button action method. |
89 * Returns url to for browser by button index |
90 * Defines what happens when the portal button is pressed. |
|
91 * @param aIndex index of the button, starting at 0 |
90 * @param aIndex index of the button, starting at 0 |
92 */ |
91 */ |
93 TMethod PortalButtonPrimaryMethod( TInt aIndex ); |
92 const TDesC& PortalButtonBrowserUrl( TInt aIndex ); |
94 |
93 |
95 /** |
94 /** |
96 * Service name for the primary method. |
95 * Returns client uid by button index |
97 * For EHttp this is unused. |
|
98 * For EWidget, this is the widget Bundle ID. |
|
99 * For EApplication, this is the application name. |
|
100 * @param aIndex index of the button, starting at 0 |
96 * @param aIndex index of the button, starting at 0 |
101 */ |
97 */ |
102 const TDesC& PortalButtonPrimaryService( TInt aIndex ); |
98 TUid PortalButtonClientUid( TInt aIndex ); |
103 |
99 |
104 /** |
100 /** |
105 * parameters related to the method. |
101 * Returns client parameter by button index |
106 * For EHttp this is the HTTP address |
|
107 * For EWidget the parameters passed to the widget |
|
108 * For EApplication the params passed to the app. |
|
109 * @param aIndex index of the button, starting at 0 |
102 * @param aIndex index of the button, starting at 0 |
110 */ |
103 */ |
111 const TDesC& PortalButtonPrimaryParams( TInt aIndex ); |
104 const TDesC& PortalButtonClientParam( TInt aIndex ); |
112 |
105 |
113 /** |
|
114 * Secondary method, which is excuted if |
|
115 * primary method fails. |
|
116 * Works like Primary method. |
|
117 * @param aIndex index of the button, starting at 0 |
|
118 */ |
|
119 TMethod PortalButtonSecondaryMethod( TInt aIndex ); |
|
120 |
|
121 /** |
|
122 * Service name for the primary method. |
|
123 * For EHttp this is unused. |
|
124 * For EWidget, this is the widget Bundle ID. |
|
125 * For EApplication, this is the application name. |
|
126 * @param aIndex index of the button, starting at 0 |
|
127 */ |
|
128 const TDesC& PortalButtonSecondaryService( TInt aIndex ); |
|
129 |
|
130 /** |
|
131 * Parameters for Secondary method. Like Primary method |
|
132 * Works like Primary params. |
|
133 * @param aIndex index of the button, starting at 0 |
|
134 */ |
|
135 const TDesC& PortalButtonSecondaryParams( TInt aIndex ); |
|
136 |
|
137 private: // New functions |
106 private: // New functions |
138 |
107 |
139 void LoadConfigurationL(); |
108 void LoadConfigurationL(); |
140 TInt FindCorrectLanguageId(); |
109 TInt FindCorrectLanguageId(); |
141 HBufC* ReadParameterL( TInt aKey ); |
110 HBufC* ReadParameterL( TInt aKey ); |