Collaboration diagram for Network Status Menu Item:
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. |
void NetStatFocus | ( | MenuItem * | item | ) |
Changes the network status item's display based on receiving or losing focus.
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:
Sets up the network status menu item for use.
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:
Responds to user input.
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.
item | A pointer to the item that represents the network status menu item. |
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.
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: