180 Executes action on an item |
180 Executes action on an item |
181 \param entryId of this item |
181 \param entryId of this item |
182 \param actionName string with action name |
182 \param actionName string with action name |
183 \retval int error code, 0 if no error |
183 \retval int error code, 0 if no error |
184 */ |
184 */ |
185 int HsMenuService::executeAction(int entryId, const QString &actionName, |
185 int HsMenuService::executeAction(int entryId, const QString &actionName, |
186 QObject* receiver, const char* member) |
186 QObject* receiver, const char* member) |
187 { |
187 { |
188 qDebug() << "HsMenuService::executeAction entryId:" << entryId |
188 qDebug() << "HsMenuService::executeAction entryId:" << entryId |
189 << "actionName:" << actionName; |
189 << "actionName:" << actionName; |
190 return CaService::instance()->executeCommand( |
190 return CaService::instance()->executeCommand( |
191 entryId, actionName, receiver, member); |
191 entryId, actionName, receiver, member); |
192 } |
192 } |
|
193 |
|
194 /*! |
|
195 Executes action on an item entry |
|
196 \param entry of this item |
|
197 \param actionName string with action name |
|
198 \retval int error code, 0 if no error |
|
199 */ |
|
200 int HsMenuService::executeAction(const CaEntry &entry, |
|
201 const QString &actionName, QObject* receiver, const char* member) |
|
202 { |
|
203 qDebug() << "HsMenuService::executeAction entryId:" << entry.id() |
|
204 << "actionName:" << actionName; |
|
205 return CaService::instance()->executeCommand( |
|
206 entry, actionName, receiver, member); |
|
207 } |
|
208 |
193 |
209 |
194 /*! |
210 /*! |
195 Launch task switcher |
211 Launch task switcher |
196 \retval boolean launching status |
212 \retval boolean launching status |
197 */ |
213 */ |