WebStatisticsPage Class Reference
[Webserver]

A class for showing game statistics. More...

#include <webstatisticspage.h>

Inheritance diagram for WebStatisticsPage:

Inheritance graph
[legend]
Collaboration diagram for WebStatisticsPage:

Collaboration graph
[legend]
List of all members.

Public Types

typedef char *(*) Callback (WebStatisticsPage *sender, void *data, const char *title, WebSrvClient *)
 the result of the callback will be freed (deleted) automatically after usage!
typedef list< TABLE_ROW
>::iterator 
ItemIter

Public Member Functions

DECLSPEC WebStatisticsPage (const char *uri)
virtual DECLSPEC int send (WebSrvClient *client, Uint32 &responsecode)
DECLSPEC ItemIter addItem (const char *title, Callback c, void *cb_data)
DECLSPEC void removeItem (ItemIter i)
DECLSPEC void setTitle (const char *t)
DECLSPEC void setHeading (const char *t)
DECLSPEC void setEnding (const char *t)

Public Attributes

int wTableTitles
int wTable
int wBorder
Uint32 colorTable

Classes

struct  TABLE_ROW

Detailed Description

A class for showing game statistics.

This class shows a simple webpage with game-statistics It's very dirty code, because it's just for testing the network-interface or other things


Member Function Documentation

int WebStatisticsPage::send ( WebSrvClient *  client,
Uint32 &  responsecode 
) [virtual]

Use this function in derived classes to respond on requests.

Parameters:
client the connected client, that is requesting
responsecode the return-code of the page, sent to the client (i.e. 200, when OK; 400 on error...) has to be assigned to this variable
Returns:
the number of bytes sent to the client

Reimplemented from WebPage.


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:37 2007 for netrinjo by  doxygen 1.5.1