contentstorage/cahandler/app/src/caapphandlerplugin.cpp
changeset 103 b99b84bcd2d1
parent 83 156f692b1687
equal deleted inserted replaced
83:156f692b1687 103:b99b84bcd2d1
    32 
    32 
    33 /*!
    33 /*!
    34     \param descriptor Service descriptor.
    34     \param descriptor Service descriptor.
    35     \param context Ignored.
    35     \param context Ignored.
    36     \param session Ignored.
    36     \param session Ignored.
    37     \return An instance of the CaS60HandlerAdapter<CaAppHandler> when descriptor interface name
    37     \retval an instance of the CaAppHandler when descriptor interface name
    38     is "com.nokia.homescreen.ICommandHandler", NULL otherwise.
    38     is "com.nokia.homescreen.ICommandHandler", NULL otherwise.
    39 */
    39 */
    40 QObject *CaAppHandlerPlugin::createInstance(const QServiceInterfaceDescriptor &descriptor,
    40 QObject *CaAppHandlerPlugin::createInstance(const QServiceInterfaceDescriptor &descriptor,
    41         QServiceContext *context,
    41         QServiceContext *context,
    42         QAbstractSecuritySession *session)
    42         QAbstractSecuritySession *session)
    49         return new CaAppHandler();
    49         return new CaAppHandler();
    50     } else {
    50     } else {
    51         return 0;
    51         return 0;
    52     }
    52     }
    53 }
    53 }
       
    54 
       
    55 #ifdef COVERAGE_MEASUREMENT
       
    56 #pragma CTC SKIP
       
    57 #endif //COVERAGE_MEASUREMENT (QT macro)
       
    58 
    54 Q_EXPORT_PLUGIN2(caapphandlerplugin, CaAppHandlerPlugin)
    59 Q_EXPORT_PLUGIN2(caapphandlerplugin, CaAppHandlerPlugin)
    55 
    60 
       
    61 #ifdef COVERAGE_MEASUREMENT
       
    62 #pragma CTC ENDSKIP
       
    63 #endif //COVERAGE_MEASUREMENT
    56 
    64 
    57 /*!
       
    58     \class CaHandler
       
    59     \ingroup
       
    60     \brief Interface for command handlers
       
    61 */
       
    62 
       
    63 /*!
       
    64     \fn int CaHandler::execute(const CaEntry &entry, const QString &commandName) = 0
       
    65     \param entry Subject of the command.
       
    66     \param commandName The name of the command to execute.
       
    67     Returns 0 on success, error code otherwise.
       
    68     \sa e32err.h for error code descriptions.
       
    69 */
       
    70 
       
    71 /*!
       
    72     \class CaS60HandlerAdapter<typename Plugin>
       
    73     \ingroup
       
    74     \brief Adapter for S60 command handlers.
       
    75 
       
    76     Adapts S60 command handlers to CaHandler interface
       
    77 
       
    78     \sa CaHandler
       
    79 */
       
    80 
       
    81 /*!
       
    82     \fn int CaS60HandlerAdapter<typename Plugin>::execute(const CaEntry &entry, const QString &commandName)
       
    83     \param entry Subject of the command.
       
    84     \param commandName The name of the command to execute.
       
    85     \return 0 on success, error code otherwise.
       
    86     \sa e32err.h for error code descriptions.
       
    87 */