QString Report::getTextualDescription() { //! //!Generates the textual description that will be sent. //! QString textualReport; textualReport.append( "OpenGooDTS Report " + uuid.toString() + " generated on " + dateTime.toString() +"\n" + "-----------------------------------------------------\n" + "- Architecture -\n" + "-----------------------------------------------------\n" + "- " + arch->getGameVer() + " in " + arch->getBuild() + "\n" + "- " + arch->getOs() + " on " + arch->getArch() + " with " + arch->getVga() + ", " + arch->getDriverVer() + "\n" + "-----------------------------------------------------\n" + "- Report -\n" + "-----------------------------------------------------\n" + "-Tracer=\n" + getDebugText()+"\n" + "-UserDescription=\n" + getUserText()+"\n" + "-----------------------------------------------------\n" + "Sent on " + sendDate.toString() + "\n"); return textualReport; }
wxString SbOverviewTable::GetValue(int row, int col) { if (row >= getNumRows()) return _("???"); SimpleOverviewRow *tableRow = getRowAt(row); if (tableRow == 0) return _("???"); switch (col) { case COL_PROGRAM: return (getProgramText(tableRow)); case COL_USER: return (getUserText(tableRow)); default: return (getFilterText(col, tableRow)); } }
/*------------------------------------------------------------------------------------------------------------------ -- FUNCTION: sendText -- -- DATE: March 20, 2011 -- -- REVISIONS: (Date and Description) -- -- DESIGNER: Duncan Donaldson. -- -- PROGRAMMER: Duncan Donaldson. -- -- INTERFACE: void MainWindow::sendText(void) -- -- RETURNS: void. -- -- NOTES: -- gets the user text, formats it into a packet, then sends the packet to the server. ----------------------------------------------------------------------------------------------------------------------*/ void MainWindow::sendText() { QString text(getUserText()); QString packet(createTextPacket(text, this->username_)); send_packet(sock_, (char*)packet.toAscii().constData()); }