Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: Zap::QueryServersUserInterface Class Reference

# Zap::QueryServersUserInterface Class Reference

`#include <UIQueryServers.h>`

Inheritance diagram for Zap::QueryServersUserInterface:

## Public Types

enum | { MaxServerNameLen = 20, ServersPerScreen = 21, ServersAbove = 9, ServersBelow = 9,
MaxPendingPings = 15,
MaxPendingQueries = 10,
PingQueryTimeout = 1500,
PingQueryRetryCount = 3
}

## Public Member Functions

| QueryServersUserInterface ()
S32 | findSelectedIndex ()
void | onKeyDown (U32 key)
void | onSpecialKeyDown (U32 key)
void | onControllerButtonDown (U32 buttonIndex)
void | onActivate ()
void | idle (U32 t)
void | render ()
void | addPingServers (const Vector< IPAddress > &ipList)
void | sort ()
void | gotPingResponse (const Address &theAddress, const Nonce &clientNonce, U32 clientIdentityToken)
void | gotQueryResponse (const Address &theAddress, const Nonce &clientNonce, const char *serverName, U32 playerCount, U32 maxPlayers, bool dedicated, bool passwordRequired)

## Data Fields

U32 | selectedId
S32 | sortColumn
S32 | lastSortColumn
bool | sortAscending
bool | shouldSort
Nonce | mNonce
U32 | pendingPings
U32 | pendingQueries
U32 | broadcastPingSendTime
U32 | lastUsedServerId
Vector< ServerRef > | servers
Vector< ColumnInfo > | columns

## Data Structures

struct | ColumnInfo
struct | ServerRef

## Member Enumeration Documentation

anonymous enum

Enumerator:

  MaxServerNameLen |
  ServersPerScreen |
  ServersAbove |
  ServersBelow |
  MaxPendingPings |
  MaxPendingQueries |
  PingQueryTimeout |
  PingQueryRetryCount |

## Constructor & Destructor Documentation

Zap::QueryServersUserInterface::QueryServersUserInterface | ( |  | ) |

## Member Function Documentation

S32 Zap::QueryServersUserInterface::findSelectedIndex | ( |  | ) |

void Zap::QueryServersUserInterface::onKeyDown | ( | U32 | key | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::QueryServersUserInterface::onSpecialKeyDown | ( | U32 | key | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::QueryServersUserInterface::onControllerButtonDown | ( | U32 | buttonIndex | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::QueryServersUserInterface::onActivate | ( |  | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::QueryServersUserInterface::idle | ( | U32 | t | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::QueryServersUserInterface::render | ( |  | ) | `[virtual]`

Reimplemented from Zap::UserInterface.

void Zap::QueryServersUserInterface::addPingServers | ( | const Vector< IPAddress > & | ipList | ) |

void Zap::QueryServersUserInterface::sort | ( |  | ) |

void Zap::QueryServersUserInterface::gotPingResponse | ( | const Address & | theAddress,
|  | const Nonce & | clientNonce,
|  | U32 | clientIdentityToken |
| ) |  |  |

void Zap::QueryServersUserInterface::gotQueryResponse | ( | const Address & | theAddress,
|  | const Nonce & | clientNonce,
|  | const char * | serverName,
|  | U32 | playerCount,
|  | U32 | maxPlayers,
|  | bool | dedicated,
|  | bool | passwordRequired |
| ) |  |  |

## Field Documentation

U32 Zap::QueryServersUserInterface::selectedId

S32 Zap::QueryServersUserInterface::sortColumn

S32 Zap::QueryServersUserInterface::lastSortColumn

bool Zap::QueryServersUserInterface::sortAscending

bool Zap::QueryServersUserInterface::shouldSort

Nonce Zap::QueryServersUserInterface::mNonce

U32 Zap::QueryServersUserInterface::pendingPings

U32 Zap::QueryServersUserInterface::pendingQueries

U32 Zap::QueryServersUserInterface::broadcastPingSendTime

U32 Zap::QueryServersUserInterface::lastUsedServerId

Vector<ServerRef> Zap::QueryServersUserInterface::servers

Vector<ColumnInfo> Zap::QueryServersUserInterface::columns