crashreporter/main.cpp File Reference

#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[])


Function Documentation

int main ( int  argc,
char *  argv[] 
)

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().


Generated on Mon Aug 30 19:14:03 2010 for Vidalia by  doxygen 1.5.9