phonebookengines/cntactions/src/cntmessageaction.cpp
changeset 71 7cc7d74059f9
parent 59 a642906a277a
child 72 6abfb1094884
equal deleted inserted replaced
65:ae724a111993 71:7cc7d74059f9
    74         
    74         
    75     //QContactType == TypeGroup
    75     //QContactType == TypeGroup
    76     if (QContactType::TypeGroup == m_contact.type()) {
    76     if (QContactType::TypeGroup == m_contact.type()) {
    77         QString interface("com.nokia.symbian.IMessageSend");
    77         QString interface("com.nokia.symbian.IMessageSend");
    78         QString operation("send(QVariantMap,QString)");
    78         QString operation("send(QVariantMap,QString)");
    79         m_request = m_AppManager.create(interface, operation, false); // not embedded
    79         m_request = m_AppManager.create(interface, operation, true); // embedded
    80         if (m_request==NULL) {
    80         if (m_request==NULL) {
    81             emitResult(GeneralError, retValue);
    81             emitResult(GeneralError, retValue);
    82             return;
    82             return;
    83         }
    83         }
    84         
    84         
   102     //QContactType == TypeContact
   102     //QContactType == TypeContact
   103     //detail exist use it
   103     //detail exist use it
   104     else if (m_detail.definitionName() == QContactPhoneNumber::DefinitionName) {
   104     else if (m_detail.definitionName() == QContactPhoneNumber::DefinitionName) {
   105         QString interface("com.nokia.symbian.IMessageSend");
   105         QString interface("com.nokia.symbian.IMessageSend");
   106         QString operation("send(QString,qint32,QString)");
   106         QString operation("send(QString,qint32,QString)");
   107         m_request = m_AppManager.create(interface, operation, false); // not embedded
   107         m_request = m_AppManager.create(interface, operation, true); // embedded
   108         if (m_request==NULL) {
   108         if (m_request==NULL) {
   109             emitResult(GeneralError, retValue);
   109             emitResult(GeneralError, retValue);
   110             return;
   110             return;
   111         }
   111         }
   112         
   112