class ServerData

Represent information about a server. More...

Definition#include <ServerData.h>
InheritsQObject
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class encapsulates information necessary to connect to a server.

ServerData (const unsigned int serverIdx, const QString& name, const unsigned int port)

Create a new ServerData object.

Parameters:
serverIdxInternal server index.
nameName (host) of the server.
portConnection port on the server.

unsigned int getServerIdx ()
[const]

Get the server's internal index.

Returns: The internal server index of this server.

const QString& getHost ()
[const]

Get the server's host or IP.

Returns: A string containing the server's host, or IP address.

unsigned int getPort ()
[const]

Get the server's port.

Returns: The server's port to connect on.