#include "CrashReportDialog.h"#include <QApplication>#include <QFileInfo>#include <QMessageBox>#include <QTextStream>#include <QTextCodec>Go to the source code of this file.
Functions | |
| QByteArray | read_minidump_file (const QString &fileName, QString &errorMessage) |
| QHash< QString, QString > | read_annotations_file (const QString &fileName, QString &errorMessage) |
| int | main (int argc, char *argv[]) |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 91 of file crashreporter/main.cpp.
References err(), read_annotations_file(), read_minidump_file(), CrashReportDialog::setCrashAnnotations(), and CrashReportDialog::setMinidump().
| QHash<QString,QString> read_annotations_file | ( | const QString & | fileName, | |
| QString & | errorMessage | |||
| ) |
Read the crash dump annotations file given by fileName and parse each line into a Key=Value pair. Returns a QHash containing the keys mapped to their values on success. If a file or parse error occurs, this returns a default-constructed QHash and sets errorMessage to a string describing the error encountered.
Definition at line 61 of file crashreporter/main.cpp.
Referenced by main().
| QByteArray read_minidump_file | ( | const QString & | fileName, | |
| QString & | errorMessage | |||
| ) |
Open the minidump file given by fileName and read its entire contents into a QByteArray. Returns the contents of the minidump file on success. If an error occurs, this returns a default-constructed QByteArray and sets errorMessage to a string describing the error ecountered.
Definition at line 34 of file crashreporter/main.cpp.
Referenced by main().
1.6.3