contentstorage/caclient/src/cahandlerproxy.cpp
changeset 116 305818acdca4
parent 99 7aaf39b772ac
child 127 7b66bc3c6dc9
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
    50 
    50 
    51 /*!
    51 /*!
    52   Forwards execute request to an appropriate handler if found otherwise ignores the request.
    52   Forwards execute request to an appropriate handler if found otherwise ignores the request.
    53   \param entry Subject for the requested command.
    53   \param entry Subject for the requested command.
    54   \param commandName Name of the command to be executed.
    54   \param commandName Name of the command to be executed.
       
    55   \param receiver QObject class with slot.
       
    56   \param member Slot from QObject class.
    55   \retval KErrNone on succes, error code otherwise.
    57   \retval KErrNone on succes, error code otherwise.
    56   \sa e32err.h for KErrNone definition.
    58   \sa e32err.h for KErrNone definition.
    57 */
    59 */
    58 int CaHandlerProxy::execute(const CaEntry &entry, const QString &commandName)
    60 int CaHandlerProxy::execute(const CaEntry &entry, const QString &commandName,
       
    61         QObject* receiver, const char* member)
    59 {
    62 {
    60     CaHandler *const handler = getHandler(entry, commandName);
    63     CaHandler *const handler = getHandler(entry, commandName);
    61     int result = -1;
    64     int result = -1;
    62 
    65 
    63     if (handler) {
    66     if (handler) {
    64             result = handler->execute(entry, commandName);
    67             result = handler->execute(entry, commandName, receiver, member);
    65     }
    68     }
    66     return result;
    69     return result;
    67 }
    70 }
    68 
    71 
    69 /*!
    72 /*!