contentstorage/cahandler/url/src/caurlhandler.cpp
changeset 116 305818acdca4
parent 98 d2f833ab7940
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
    41 
    41 
    42 /*!
    42 /*!
    43  * Execute a given command.
    43  * Execute a given command.
    44  * \param entry a reference to CaEntry instance.
    44  * \param entry a reference to CaEntry instance.
    45  * \param command a given command.
    45  * \param command a given command.
       
    46  * \param receiver a QObject class with slot to invoke.
       
    47  * \param member a slot to invoke.
    46  * \retval an error code.
    48  * \retval an error code.
    47  */
    49  */
    48 int CaUrlHandler::execute(const CaEntry &entry, const QString &command)
    50 int CaUrlHandler::execute(const CaEntry &entry, const QString &command,
       
    51         QObject* receiver, const char* member)
    49 {
    52 {
       
    53 	Q_UNUSED(receiver);
       
    54 	Q_UNUSED(member);
       
    55 	
    50     int err(KErrGeneral);
    56     int err(KErrGeneral);
    51     if (command == caCmdOpen) {
    57     if (command == caCmdOpen) {
    52         QString attribute = entry.attribute(caAttrUrl);
    58         QString attribute = entry.attribute(caAttrUrl);
    53         if (!attribute.isNull() &&
    59         if (!attribute.isNull() &&
    54             QDesktopServices::openUrl(QUrl(attribute))) {
    60             QDesktopServices::openUrl(QUrl(attribute))) {