<!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: CrashReporter.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_695ba8f8357372e02d38c40b3c6dbe81.html">vidalia</a> </div> </div> <div class="contents"> <h1>CrashReporter.cpp File Reference</h1><code>#include "<a class="el" href="_crash_reporter_8cpp_source.html">CrashReporter.h</a>"</code><br/> <code>#include "<a class="el" href="stringutil_8h_source.html">stringutil.h</a>"</code><br/> <code>#include <QString></code><br/> <code>#include <QStringList></code><br/> <code>#include <QFileInfo></code><br/> <code>#include <QDir></code><br/> <code>#include <time.h></code><br/> <p><a href="_crash_reporter_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>Namespaces</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html">CrashReporter</a></td></tr> <tr><td colspan="2"><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_crash_reporter_8cpp.html#a256a5721249aa3309437212cc21a9fe4">PATH_SEPARATOR</a> "/"</td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_crash_reporter_8cpp.html#a2978f60d40d64f3605b5a99f66f292a9">TEXT</a>(x) (x)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_crash_reporter_8cpp.html#a27e42a19d426e201449bda1bece7f03c">TIME_TO_STRING</a>(buf, buflen, t) snprintf(buf, buflen, "%ld", t)</td></tr> <tr><td colspan="2"><h2>Typedefs</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a2ad675022ae0caeed0b343fbe68c260a">CrashReporter::_char_t</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a7f103c1c4a6a5336c07c295fb3d57c59">CrashReporter::_file_handle_t</a></td></tr> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a1edb285e570ef0280215b76d64cdb7bd">CrashReporter::append_string</a> (_char_t *dst, const _char_t *src, size_t siz)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a659fa8cd5291558399170f30b896be19">CrashReporter::write_keyval_to_file</a> (_file_handle_t hFile, const char *key, const char *val)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a0df289f62a24ba102918023c29180b65">CrashReporter::write_extra_dump_info</a> (const _char_t *path, const _char_t *id, time_t crashTime)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a8aa4157e4e43db82e9cc627706fd0869">CrashReporter::minidump_callback</a> (const _char_t *path, const _char_t *id, void *context, bool succeeded)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a4cb74d71fc0972d3fdded194edf5ef6f">CrashReporter::install_exception_handler</a> (const QString &dumpPath)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a8c3f2a5d31dbc36bd7081e45394d09ec">CrashReporter::remove_exception_handler</a> (void)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a2abd2ccfcc795446372a6e01bb49711b">CrashReporter::set_crash_reporter</a> (const QString &crashReporter)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#ac9f4cdac9b824b9d9f44fa3c9b6151d8">CrashReporter::set_restart_options</a> (const QString &executable, const QStringList &arguments)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a1eca6858cc79eb2d3b50ea0eba54c851">CrashReporter::set_build_version</a> (const QString &version)</td></tr> <tr><td colspan="2"><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <br class="typebreak"/> google_breakpad::ExceptionHandler * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a68279653bb2f9003952242369d189966">CrashReporter::exceptionHandler</a> = 0</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a089bdae0589abfed537108b3178afc82">CrashReporter::showCrashReporter</a> = false</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static _char_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a03e663ff6e57345decf21cedf92a1e3f">CrashReporter::crashReporterExecutable</a> [MAX_PATH_LEN+1] = TEXT("")</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#a0c6bed2dc9adb279d4ae43c87f415f8e">CrashReporter::buildVersion</a> [MAX_VERSION_LEN+1] = ""</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#aa8122b1a399bd7e377e1d7dfa23912bf">CrashReporter::restartExecutable</a> [MAX_CMD_LEN+1] = ""</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#af447abd1782604ba769867672cf95b20">CrashReporter::restartExecutableArgs</a> [MAX_CMD_LEN+1] = ""</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_crash_reporter.html#aeb3998ee5335eb5862727240ba3a60c2">CrashReporter::startupTime</a> = 0</td></tr> </table> <hr/><h2>Define Documentation</h2> <a class="anchor" id="a256a5721249aa3309437212cc21a9fe4"></a><!-- doxytag: member="CrashReporter.cpp::PATH_SEPARATOR" ref="a256a5721249aa3309437212cc21a9fe4" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define PATH_SEPARATOR "/"</td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_crash_reporter_8cpp_source.html#l00063">63</a> of file <a class="el" href="_crash_reporter_8cpp_source.html">CrashReporter.cpp</a>.</p> </div> </div> <a class="anchor" id="a2978f60d40d64f3605b5a99f66f292a9"></a><!-- doxytag: member="CrashReporter.cpp::TEXT" ref="a2978f60d40d64f3605b5a99f66f292a9" args="(x)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TEXT</td> <td>(</td> <td class="paramtype">x </td> <td class="paramname"></td> <td> ) </td> <td> (x)</td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_crash_reporter_8cpp_source.html#l00064">64</a> of file <a class="el" href="_crash_reporter_8cpp_source.html">CrashReporter.cpp</a>.</p> <p>Referenced by <a class="el" href="_crash_reporter_8cpp_source.html#l00124">CrashReporter::append_string()</a>.</p> </div> </div> <a class="anchor" id="a27e42a19d426e201449bda1bece7f03c"></a><!-- doxytag: member="CrashReporter.cpp::TIME_TO_STRING" ref="a27e42a19d426e201449bda1bece7f03c" args="(buf, buflen, t)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define TIME_TO_STRING</td> <td>(</td> <td class="paramtype">buf, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">buflen, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">t </td> <td class="paramname"></td> <td> ) </td> <td> snprintf(buf, buflen, "%ld", t)</td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_crash_reporter_8cpp_source.html#l00065">65</a> of file <a class="el" href="_crash_reporter_8cpp_source.html">CrashReporter.cpp</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>