File: MainWindow.html

package info (click to toggle)
pppload 1.0-5
  • links: PTS
  • area: contrib
  • in suites: hamm
  • size: 116 kB
  • ctags: 84
  • sloc: cpp: 408; makefile: 175
file content (71 lines) | stat: -rw-r--r-- 4,083 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<HTML>
<HEAD>
<TITLE>MainWindow</TITLE>
</HEAD>
<BODY>
<H1 ALIGN=CENTER>MainWindow</H1>
<P> Main window of PPPLoad. <A HREF=#1>More...</A></P>
<P>Publicly inherits QWidget.</P>
<H2>Public Methods</H2>
<TABLE BORDER=0>
<TR><TD VALIGN=TOP ALIGN=RIGHT>  <TD VALIGN=TOP ALIGN=RIGHT><A HREF="#2"><B>MainWindow</B></A><TD>(  QWidget* parent=???, const char* name=??? );
</TABLE>
<H2>Public Slots</H2>
<TABLE BORDER=0>
<TR><TD VALIGN=TOP ALIGN=RIGHT>  void<TD VALIGN=TOP ALIGN=RIGHT><A HREF="#3"><B>linkDown</B></A><TD>(  );
<TR><TD VALIGN=TOP ALIGN=RIGHT>  void<TD VALIGN=TOP ALIGN=RIGHT><A HREF="#4"><B>updateStats</B></A><TD>(  unsigned int rxDelta,  unsigned int txDelta,  unsigned int rxTotal,  unsigned int txTotal );
</TABLE>
<H2>Protected Methods</H2>
<TABLE BORDER=0>
<TR><TD VALIGN=TOP ALIGN=RIGHT>virtual  void<TD VALIGN=TOP ALIGN=RIGHT><A HREF="#5"><B>paintEvent</B></A><TD>(  QPaintEvent* e );
<TR><TD VALIGN=TOP ALIGN=RIGHT>virtual  void<TD VALIGN=TOP ALIGN=RIGHT><A HREF="#6"><B>resizeEvent</B></A><TD>(  QResizeEvent* e );
</TABLE>
<H2>Private Methods</H2>
<TABLE BORDER=0>
<TR><TD VALIGN=TOP ALIGN=RIGHT>  QString<TD VALIGN=TOP ALIGN=RIGHT><A HREF="#7"><B>bytesToString</B></A><TD>(  int bytes );
<TR><TD VALIGN=TOP ALIGN=RIGHT>  void<TD VALIGN=TOP ALIGN=RIGHT><A HREF="#8"><B>redrawGraph</B></A><TD>(  );
</TABLE>
<H2>Private Data Members</H2>
<TABLE BORDER=0>
<TR><TD ALIGN=RIGHT> int<TD><B>_dataSize</B>;<TD><EM> The size of the data arrays.</EM>
<TR><TD ALIGN=RIGHT> int<TD><B>_fontBaseline</B>;<TD><EM> Baseline for the font.</EM>
<TR><TD ALIGN=RIGHT> int<TD><B>_fontHeight</B>;<TD><EM> Height of one character.</EM>
<TR><TD ALIGN=RIGHT> int<TD><B>_fontWidth</B>;<TD><EM> Width of one character.</EM>
<TR><TD ALIGN=RIGHT> int<TD><B>_historySize</B>;<TD><EM> The size of the history arrays (basically the width of the window).</EM>
<TR><TD ALIGN=RIGHT> int<TD><B>_max</B>;<TD><EM> Current maximum transfer rate.</EM>
<TR><TD ALIGN=RIGHT> QPixmap<TD><B>_pixmap</B>;<TD><EM> Off-screen buffer for drawing and paint events.</EM>
<TR><TD ALIGN=RIGHT> int<TD><B>_rxAverage</B>;<TD><EM> Average receive rate.</EM>
<TR><TD ALIGN=RIGHT> int*<TD><B>_rxData</B>;<TD><EM> Array of receive data for computing average.</EM>
<TR><TD ALIGN=RIGHT> int*<TD><B>_rxHistory</B>;<TD><EM> Array of last n receive rates.</EM>
<TR><TD ALIGN=RIGHT> QString<TD><B>_rxStr</B>;<TD><EM> Last receive total string.</EM>
<TR><TD ALIGN=RIGHT> int<TD><B>_txAverage</B>;<TD><EM> Average transmit rate.</EM>
<TR><TD ALIGN=RIGHT> int*<TD><B>_txData</B>;<TD><EM> Array of transmit data for computing average.</EM>
<TR><TD ALIGN=RIGHT> int*<TD><B>_txHistory</B>;<TD><EM> Array of last n transmit rates.</EM>
<TR><TD ALIGN=RIGHT> QString<TD><B>_txStr</B>;<TD><EM> Last transmit total string.</EM>
</TABLE>
<HR><H2>Detailed Documentation</H2>
<P> Main window of PPPLoad.</P>
 The MainWindow takes PPP stats updates from a PPPStats object, and draws a graph of the transmit and receive rates.  Below the graph, the total number of bytes transmitted and received is displayed.<H2>Public Methods Documentation</H2>
<H4>   MainWindow (  QWidget* parent=???, const char* name=??? );</H4>
<P> Create the main window.</P>
<H2>Public Slots Documentation</H2>
<H4>  void linkDown (  );</H4>
<P> Process a link down indication.</P>
<H4>  void updateStats (  unsigned int rxDelta,  unsigned int txDelta,  unsigned int rxTotal,  unsigned int txTotal );</H4>
<P> Process the stats update from a PPPStats object.</P>
<H2>Protected Methods Documentation</H2>
<H4>virtual  void paintEvent (  QPaintEvent* e );</H4>
<P> Redraw the contents of the window.</P>
<H4>virtual  void resizeEvent (  QResizeEvent* e );</H4>
<P> Rescale the graph to fit in the new window size.</P>
<H2>Private Methods Documentation</H2>
<H4>  QString bytesToString (  int bytes );</H4>
<P> Convert a number of bytes to a reasonable string.</P>
<H4>  void redrawGraph (  );</H4>
<P> Redraw the graph using the stored data.</P>
</BODY>
</HTML>
<HR>
Return to <A HREF="index.html">Index</A>.<BR>
Automatically generated on <STRONG>Oct 27 22:18
</STRONG>