<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Vidalia: main.cpp File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_b47abd1aad201a152869566145babb61.html">src</a> » <a class="el" href="dir_038e8b3624109884d464700e800a8093.html">crashreporter</a> </div> </div> <div class="contents"> <h1>crashreporter/main.cpp File Reference</h1><code>#include "<a class="el" href="_crash_report_dialog_8h_source.html">CrashReportDialog.h</a>"</code><br/> <code>#include <QApplication></code><br/> <code>#include <QFileInfo></code><br/> <code>#include <QMessageBox></code><br/> <code>#include <QTextStream></code><br/> <code>#include <QTextCodec></code><br/> <p><a href="crashreporter_2main_8cpp_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">QByteArray </td><td class="memItemRight" valign="bottom"><a class="el" href="crashreporter_2main_8cpp.html#ae449ceb371bcc6a5349a09c14da744fc">read_minidump_file</a> (const QString &fileName, QString &errorMessage)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QHash< QString, QString > </td><td class="memItemRight" valign="bottom"><a class="el" href="crashreporter_2main_8cpp.html#aa44efe08a13deffbec4467faa932b5c9">read_annotations_file</a> (const QString &fileName, QString &errorMessage)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="crashreporter_2main_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a><!-- doxytag: member="crashreporter/main.cpp::main" ref="a0ddf1224851353fc92bfbff6f499fa97" args="(int argc, char *argv[])" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int main </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>argc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"> <em>argv</em>[]</td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="crashreporter_2main_8cpp_source.html#l00091">91</a> of file <a class="el" href="crashreporter_2main_8cpp_source.html">crashreporter/main.cpp</a>.</p> <p>References <a class="el" href="stringutil_8cpp_source.html#l00038">err()</a>, <a class="el" href="crashreporter_2main_8cpp_source.html#l00061">read_annotations_file()</a>, <a class="el" href="crashreporter_2main_8cpp_source.html#l00034">read_minidump_file()</a>, <a class="el" href="_crash_report_dialog_8cpp_source.html#l00046">CrashReportDialog::setCrashAnnotations()</a>, and <a class="el" href="_crash_report_dialog_8cpp_source.html#l00052">CrashReportDialog::setMinidump()</a>.</p> </div> </div> <a class="anchor" id="aa44efe08a13deffbec4467faa932b5c9"></a><!-- doxytag: member="crashreporter/main.cpp::read_annotations_file" ref="aa44efe08a13deffbec4467faa932b5c9" args="(const QString &fileName, QString &errorMessage)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QHash<QString,QString> read_annotations_file </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"> <em>fileName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString & </td> <td class="paramname"> <em>errorMessage</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Read the crash dump annotations file given by <b>fileName</b> 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 <b>errorMessage</b> to a string describing the error encountered. </p> <p>Definition at line <a class="el" href="crashreporter_2main_8cpp_source.html#l00061">61</a> of file <a class="el" href="crashreporter_2main_8cpp_source.html">crashreporter/main.cpp</a>.</p> <p>Referenced by <a class="el" href="crashreporter_2main_8cpp_source.html#l00091">main()</a>.</p> </div> </div> <a class="anchor" id="ae449ceb371bcc6a5349a09c14da744fc"></a><!-- doxytag: member="crashreporter/main.cpp::read_minidump_file" ref="ae449ceb371bcc6a5349a09c14da744fc" args="(const QString &fileName, QString &errorMessage)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QByteArray read_minidump_file </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"> <em>fileName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString & </td> <td class="paramname"> <em>errorMessage</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Open the minidump file given by <b>fileName</b> 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 <b>errorMessage</b> to a string describing the error ecountered. </p> <p>Definition at line <a class="el" href="crashreporter_2main_8cpp_source.html#l00034">34</a> of file <a class="el" href="crashreporter_2main_8cpp_source.html">crashreporter/main.cpp</a>.</p> <p>Referenced by <a class="el" href="crashreporter_2main_8cpp_source.html#l00091">main()</a>.</p> </div> </div> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Aug 30 22:58:55 2010 for Vidalia by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>