void SecurityItem::sendMsg() { #ifdef DEBUG_ITEM std::cerr << "SecurityItem::sendMsg()"; std::cerr << std::endl; #endif std::cerr << __PRETTY_FUNCTION__ << ": suspended for now." << std::endl; #ifdef SUSPENDED MessageComposer *nMsgDialog = MessageComposer::newMsg(); if (nMsgDialog == NULL) { return; } RsPeerId peerId ; if(rsMsgs->getDistantMessagePeerId(mGpgId,peerId)) { nMsgDialog->addRecipient(MessageComposer::TO, peerId, mGpgId); nMsgDialog->show(); nMsgDialog->activateWindow(); } /* window will destroy itself! */ #endif }
void MessageWindow::newmessage() { MessageComposer *msgComposer = MessageComposer::newMsg(); if (msgComposer == NULL) { return; } /* fill it in */ msgComposer->show(); msgComposer->activateWindow(); /* window will destroy itself! */ }
void MessageWidget::forward() { /* put msg on msgBoard, and switch to it. */ if (currMsgId.empty()) { return; } MessageComposer *msgComposer = MessageComposer::forwardMsg(currMsgId); if (msgComposer == NULL) { return; } msgComposer->show(); msgComposer->activateWindow(); /* window will destroy itself! */ }
void PeerItem::sendMsg() { #ifdef DEBUG_ITEM std::cerr << "PeerItem::sendMsg()"; std::cerr << std::endl; #endif MessageComposer *nMsgDialog = MessageComposer::newMsg(); if (nMsgDialog == NULL) { return; } nMsgDialog->addRecipient(MessageComposer::TO, mPeerId, false); nMsgDialog->show(); nMsgDialog->activateWindow(); /* window will destroy itself! */ }
void IdDialog::sendMsg() { QTreeWidgetItem *item = ui->idTreeWidget->currentItem(); if (!item) { return; } MessageComposer *nMsgDialog = MessageComposer::newMsg(); if (nMsgDialog == NULL) { return; } std::string keyId = item->text(RSID_COL_KEYID).toStdString(); nMsgDialog->addRecipient(MessageComposer::TO, RsGxsId(keyId)); nMsgDialog->show(); nMsgDialog->activateWindow(); /* window will destroy itself! */ }