Network Status Menu Item
[Menu System]

Collaboration diagram for Network Status Menu Item:

Displays the current network status and provides a path to a network options submenu. More...


Files

file  netstat.c
 Implements the network status menu item.
file  netstat.h
 Defines an interface to the network status menu item.

Functions

void NetStatFocus (MenuItem *item)
 Changes the network status item's display based on receiving or losing focus.
Bool NetStatInit (MenuItem *item)
 Sets up the network status menu item for use.
int NetStatInput (MenuItem *item, Uint8 *ec, rtsa_char keyval)
 Responds to user input.
void NetStatUninit (MenuItem *item)
 Removes dynamically allocated data that is only needed by the network status menu item while it is in use.
int NetStatUpdate (MenuItem *item)
 Updates the network status item with new information and places its render items in the appropriate spots.

Detailed Description

Displays the current network status and provides a path to a network options submenu.


Function Documentation

void NetStatFocus ( MenuItem item  ) 

Changes the network status item's display based on receiving or losing focus.

Author:
Jeff Jackowski

Definition at line 288 of file netstat.c.

References ClearRenderItem(), MenuItem_t::hasFocus, localhostAddrStr, NETSTATE_CLIENT, NETSTATE_DISCONN, networkState, PlaceRenderItem(), TEXTITEM_FIREOPT, TEXTITEM_NETOPTS, textItems, and timeSyncState.

Referenced by NetStatInit().

Here is the call graph for this function:

Bool NetStatInit ( MenuItem item  ) 

Sets up the network status menu item for use.

Note:
There is no corresponding uninitalization function.
Author:
Jeff Jackowski

Definition at line 73 of file netstat.c.

References MenuItem_t::active, AddRenderItem(), MenuItem_t::data, FALSE, MenuItem_t::focus, MenuItem_t::input, LAYER_TEXT, RenderItem_t::loc, MenuItem_t::minHeight, MenuItem_t::minWidth, netdat, NetStatFocus(), NetStatInput(), NetStatUpdate(), RenderItem_t::renderer, TEXTITEM_FIREOPT, TEXTITEM_NETOPTS, TEXTITEM_NETSTAT, textItems, TRUE, and MenuItem_t::update.

Referenced by MenuRootInit().

Here is the call graph for this function:

int NetStatInput ( MenuItem item,
Uint8 *  ec,
rtsa_char  keyval 
)

Responds to user input.

Returns:
???
Author:
Jeff Jackowski

Definition at line 310 of file netstat.c.

Referenced by NetStatInit().

void NetStatUninit ( MenuItem item  ) 

Removes dynamically allocated data that is only needed by the network status menu item while it is in use.

Parameters:
item A pointer to the item that represents the network status menu item.
Author:
Jeff Jackowski

Definition at line 103 of file netstat.c.

References netdat.

Referenced by MenuRootUninit().

int NetStatUpdate ( MenuItem item  ) 

Updates the network status item with new information and places its render items in the appropriate spots.

Returns:
Always zero.
Author:
Jeff Jackowski

Definition at line 161 of file netstat.c.

References SocketAddr_t::addr, ClearRenderItem(), COLOR_TEXT, colorFmtInd, FALSE, FONT_SCORE, GetNetErrorString(), MenuItem_t::hasFocus, SocketAddr_t::ipv4, SocketAddr_t::ipv6, MenuItem_t::isPlaced, RenderItem_t::loc, localhostAddrStr, localhostName, LookupResult(), netdat, netError, NETSTATE_CLIENT, NETSTATE_CONERR, NETSTATE_CONNECTING, NETSTATE_DISCONN, NETSTATE_RCVCFG, NETSTATE_SEARCHERR, NETSTATE_SRVDENY, networkState, outgoingAddr, PlaceRenderItem(), MenuItem_t::region, RenderLatency(), RenderLocalAddr(), RenderTSync(), statHost, STRING_NETLOOKING, strings, TEXTITEM_FIREOPT, TEXTITEM_NETOPTS, TEXTITEM_NETSTAT, textItems, TextRenderString(), TIMESYNC_FINISHED, TIMESYNC_INPROG, TIMESYNC_POOR, timeSyncState, and TRUE.

Referenced by NetStatInit().

Here is the call graph for this function:


Generated on Mon May 28 04:41:43 2007 for Retro Tank Super Attack by  doxygen 1.5.2