contentstorage/cahandler/tapp/src/catapphandler.cpp
changeset 103 b99b84bcd2d1
parent 83 156f692b1687
child 121 0b3699f6c654
equal deleted inserted replaced
83:156f692b1687 103:b99b84bcd2d1
    56 /*!
    56 /*!
    57  Executes \a command by default "open" on template application represented by \a entry.
    57  Executes \a command by default "open" on template application represented by \a entry.
    58  Uses XQApplicationManager
    58  Uses XQApplicationManager
    59  \param entry Subject of the \a command.
    59  \param entry Subject of the \a command.
    60  \param command Description of the command.
    60  \param command Description of the command.
    61  \return Error code described in QSERVICEMANAGER.H
    61  \retval Error code described in QSERVICEMANAGER.H
    62  */
    62  */
    63 int CaTappHandler::execute(const CaEntry& entry, const QString& command)
    63 int CaTappHandler::execute(const CaEntry& entry, const QString& command)
    64 {
    64 {
    65     // this returns Error enum from QSERVICEMANAGER.H
    65     // this returns Error enum from QSERVICEMANAGER.H
    66     int error = 0;
    66     int error = 0;
    76                     error = request->lastError();
    76                     error = request->lastError();
    77                 }
    77                 }
    78             }
    78             }
    79         }
    79         }
    80     } else {
    80     } else {
    81         // TODO: error code cleanning and appropriate conversion (in other classes too).
    81         // TODO: error code cleanning and an appropriate conversion (in other classes too).
    82         static const int NotSupportedErrorCode = 100;
    82         static const int NotSupportedErrorCode = 100;
    83         error = NotSupportedErrorCode;
    83         error = NotSupportedErrorCode;
    84     }
    84     }
    85     return error;
    85     return error;
    86 }
    86 }