equal
deleted
inserted
replaced
17 |
17 |
18 #include <cadefs.h> |
18 #include <cadefs.h> |
19 #include <qserviceinterfacedescriptor.h> |
19 #include <qserviceinterfacedescriptor.h> |
20 #include <qabstractsecuritysession.h> |
20 #include <qabstractsecuritysession.h> |
21 #include <qservicecontext.h> |
21 #include <qservicecontext.h> |
|
22 |
22 #include "cahandlerloader.h" |
23 #include "cahandlerloader.h" |
23 |
|
24 #include "caapphandler.h" |
24 #include "caapphandler.h" |
25 #include "caapphandlerplugin.h" |
25 #include "caapphandlerplugin.h" |
26 #include "cas60handleradapter.h" |
26 #include "cas60apphandleradapter.h" |
27 |
27 |
28 /*! |
28 /*! |
29 \class CaAppHandlerPlugin |
29 \class CaAppHandlerPlugin |
30 \ingroup |
30 \ingroup |
31 \brief Implementation of Qt SF plugin for application command handler. |
31 \brief Implementation of Qt SF plugin for application command handler. |
45 Q_UNUSED(context); |
45 Q_UNUSED(context); |
46 Q_UNUSED(session); |
46 Q_UNUSED(session); |
47 |
47 |
48 if (descriptor.interfaceName() == |
48 if (descriptor.interfaceName() == |
49 "com.nokia.homescreen.ICommandHandler") { |
49 "com.nokia.homescreen.ICommandHandler") { |
50 return new CaS60HandlerAdapter<CCaAppHandler>; |
50 return new CaS60AppHandlerAdapter(); |
51 } else { |
51 } else { |
52 return 0; |
52 return 0; |
53 } |
53 } |
54 } |
54 } |
55 // TODO: uncomment when it will be used in plugin |
55 Q_EXPORT_PLUGIN2(caapphandlerplugin, CaAppHandlerPlugin) |
56 //Q_EXPORT_PLUGIN2(caapphandlerplugin, CaAppHandlerPlugin) |
|
57 |
56 |
58 |
57 |
59 /*! |
58 /*! |
60 \class CaHandler |
59 \class CaHandler |
61 \ingroup |
60 \ingroup |
79 |
78 |
80 \sa CaHandler |
79 \sa CaHandler |
81 */ |
80 */ |
82 |
81 |
83 /*! |
82 /*! |
84 \fn int CaS60HandlerAdapter<typename Plugin>::execute(const CaEntry &entry, const QString &commandName) |
83 \fn int CaS60HandlerAdapter<typename Plugin>::execute(const CaEntry &entry, const QString &commandName) |
85 \param entry Subject of the command. |
84 \param entry Subject of the command. |
86 \param commandName The name of the command to execute. |
85 \param commandName The name of the command to execute. |
87 \return 0 on success, error code otherwise. |
86 \return 0 on success, error code otherwise. |
88 \sa e32err.h for error code descriptions. |
87 \sa e32err.h for error code descriptions. |
89 */ |
88 */ |