<!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: RouterInfoDialog Class 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 class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><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="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>RouterInfoDialog Class Reference</h1><!-- doxytag: class="RouterInfoDialog" --> <p><code>#include <<a class="el" href="_router_info_dialog_8h_source.html">RouterInfoDialog.h</a>></code></p> <p><a href="class_router_info_dialog-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_router_info_dialog.html#a30274f8fdca4338b4e2eb5891aaeac86">RouterInfoDialog</a> (QWidget *parent=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_router_info_dialog.html#ab37f1f26d1629069144ba01a968a02b3">setRouterInfo</a> (const QStringList &desc, const <a class="el" href="class_router_status.html">RouterStatus</a> &status)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_router_info_dialog.html#a6e648df61468e036ff5b898d18bd228b">setLocation</a> (const QString &location)</td></tr> <tr><td colspan="2"><h2>Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">quint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_router_info_dialog.html#affe4d88c05677c1c8e8f53a9f76c5bc0">adjustUptime</a> (quint64 uptime, const QDateTime &published)</td></tr> <tr><td colspan="2"><h2>Private Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">Ui::RouterInfoDialog </td><td class="memItemRight" valign="bottom"><a class="el" href="class_router_info_dialog.html#a6ac0f5d5ceba6180555d57c145e144aa">ui</a></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Definition at line <a class="el" href="_router_info_dialog_8h_source.html#l00029">29</a> of file <a class="el" href="_router_info_dialog_8h_source.html">RouterInfoDialog.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a30274f8fdca4338b4e2eb5891aaeac86"></a><!-- doxytag: member="RouterInfoDialog::RouterInfoDialog" ref="a30274f8fdca4338b4e2eb5891aaeac86" args="(QWidget *parent=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">RouterInfoDialog::RouterInfoDialog </td> <td>(</td> <td class="paramtype">QWidget * </td> <td class="paramname"> <em>parent</em> = <code>0</code></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Default constructor. </p> <p>Definition at line <a class="el" href="_router_info_dialog_8cpp_source.html#l00022">22</a> of file <a class="el" href="_router_info_dialog_8cpp_source.html">RouterInfoDialog.cpp</a>.</p> <p>References <a class="el" href="_router_info_dialog_8h_source.html#l00055">ui</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="affe4d88c05677c1c8e8f53a9f76c5bc0"></a><!-- doxytag: member="RouterInfoDialog::adjustUptime" ref="affe4d88c05677c1c8e8f53a9f76c5bc0" args="(quint64 uptime, const QDateTime &published)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">quint64 RouterInfoDialog::adjustUptime </td> <td>(</td> <td class="paramtype">quint64 </td> <td class="paramname"> <em>uptime</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const QDateTime & </td> <td class="paramname"> <em>published</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Adjusts <b>uptime</b> to be the greater of either <b>published</b> or <b>uptime</b> plus the number of seconds elapsed since <b>published</b>. </p> <p>Definition at line <a class="el" href="_router_info_dialog_8cpp_source.html#l00029">29</a> of file <a class="el" href="_router_info_dialog_8cpp_source.html">RouterInfoDialog.cpp</a>.</p> <p>Referenced by <a class="el" href="_router_info_dialog_8cpp_source.html#l00040">setRouterInfo()</a>.</p> </div> </div> <a class="anchor" id="a6e648df61468e036ff5b898d18bd228b"></a><!-- doxytag: member="RouterInfoDialog::setLocation" ref="a6e648df61468e036ff5b898d18bd228b" args="(const QString &location)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void RouterInfoDialog::setLocation </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"> <em>location</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the geographic location information displayed in the dialog to <b>location</b>. </p> <p>Definition at line <a class="el" href="_router_info_dialog_8cpp_source.html#l00075">75</a> of file <a class="el" href="_router_info_dialog_8cpp_source.html">RouterInfoDialog.cpp</a>.</p> <p>References <a class="el" href="_router_info_dialog_8h_source.html#l00055">ui</a>.</p> </div> </div> <a class="anchor" id="ab37f1f26d1629069144ba01a968a02b3"></a><!-- doxytag: member="RouterInfoDialog::setRouterInfo" ref="ab37f1f26d1629069144ba01a968a02b3" args="(const QStringList &desc, const RouterStatus &status)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void RouterInfoDialog::setRouterInfo </td> <td>(</td> <td class="paramtype">const QStringList & </td> <td class="paramname"> <em>desc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="class_router_status.html">RouterStatus</a> & </td> <td class="paramname"> <em>status</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Populates the dialog's UI with information parsed from the router descriptor <b>desc</b> and the router status information in <b>status</b>. </p> <p>Definition at line <a class="el" href="_router_info_dialog_8cpp_source.html#l00040">40</a> of file <a class="el" href="_router_info_dialog_8cpp_source.html">RouterInfoDialog.cpp</a>.</p> <p>References <a class="el" href="_router_info_dialog_8cpp_source.html#l00029">adjustUptime()</a>, <a class="el" href="_router_descriptor_8h_source.html#l00059">RouterDescriptor::contact()</a>, <a class="el" href="_router_status_8h_source.html#l00068">RouterStatus::flags()</a>, <a class="el" href="_router_descriptor_8h_source.html#l00075">RouterDescriptor::hibernating()</a>, <a class="el" href="_router_descriptor_8h_source.html#l00047">RouterDescriptor::ip()</a>, <a class="el" href="_router_status_8h_source.html#l00075">RouterStatus::isValid()</a>, <a class="el" href="_router_descriptor_8h_source.html#l00045">RouterDescriptor::name()</a>, <a class="el" href="_router_descriptor_8h_source.html#l00069">RouterDescriptor::observedBandwidth()</a>, <a class="el" href="_router_descriptor_8h_source.html#l00055">RouterDescriptor::platform()</a>, <a class="el" href="_router_descriptor_8h_source.html#l00061">RouterDescriptor::published()</a>, <a class="el" href="_router_status_8h_source.html#l00041">RouterStatus::Running</a>, <a class="el" href="stringutil_8cpp_source.html#l00345">string_format_bandwidth()</a>, <a class="el" href="stringutil_8cpp_source.html#l00337">string_format_datetime()</a>, <a class="el" href="stringutil_8cpp_source.html#l00314">string_format_uptime()</a>, <a class="el" href="_router_info_dialog_8h_source.html#l00055">ui</a>, and <a class="el" href="_router_descriptor_8h_source.html#l00057">RouterDescriptor::uptime()</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a6ac0f5d5ceba6180555d57c145e144aa"></a><!-- doxytag: member="RouterInfoDialog::ui" ref="a6ac0f5d5ceba6180555d57c145e144aa" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Ui::RouterInfoDialog <a class="el" href="class_router_info_dialog.html#a6ac0f5d5ceba6180555d57c145e144aa">RouterInfoDialog::ui</a><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_router_info_dialog_8h_source.html#l00055">55</a> of file <a class="el" href="_router_info_dialog_8h_source.html">RouterInfoDialog.h</a>.</p> <p>Referenced by <a class="el" href="_router_info_dialog_8cpp_source.html#l00022">RouterInfoDialog()</a>, <a class="el" href="_router_info_dialog_8cpp_source.html#l00075">setLocation()</a>, and <a class="el" href="_router_info_dialog_8cpp_source.html#l00040">setRouterInfo()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="_router_info_dialog_8h_source.html">RouterInfoDialog.h</a></li> <li><a class="el" href="_router_info_dialog_8cpp_source.html">RouterInfoDialog.cpp</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Aug 30 22:58:57 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>