Planeshift
GUIHandler Class Reference

This class receives all network messages from the server which affect the GUI or are displayable by the GUI. More...

#include <guihandler.h>

Public Member Functions

psInventoryCacheGetInventoryCache (void)
 
 GUIHandler ()
 
const char * HandleCommand (const char *)
 Interprets a received message and executes the command. More...
 
void HandleMessage (MsgEntry *me)
 
- Public Member Functions inherited from psCmdBase
virtual void HandleMessage (MsgEntry *msg, Client *)
 Interprets a received message and executes the command. More...
 
 psCmdBase (ClientMsgHandler *mh, CmdHandler *ch, iObjectRegistry *obj)
 
void Report (int severity, const char *msgtype, const char *description,...)
 
virtual bool Setup (ClientMsgHandler *mh, CmdHandler *ch)
 
virtual bool Verify (MsgEntry *, unsigned int, Client *&)
 
virtual ~psCmdBase ()
 

Protected Member Functions

void HandleInventory (MsgEntry *me)
 

Additional Inherited Members

- Protected Attributes inherited from psCmdBase
CmdHandlercmdsource
 
ClientMsgHandlermsgqueue
 
iObjectRegistry * objreg
 

Detailed Description

This class receives all network messages from the server which affect the GUI or are displayable by the GUI.

It unpacks these messages and publishes them to the correct widget subscriber names.

Definition at line 49 of file guihandler.h.

Constructor & Destructor Documentation

GUIHandler::GUIHandler ( )

Member Function Documentation

psInventoryCache* GUIHandler::GetInventoryCache ( void  )
inline

Definition at line 57 of file guihandler.h.

const char* GUIHandler::HandleCommand ( const char *  cmd)
inlinevirtual

Interprets a received message and executes the command.

char * returned can be an error message to display.

Implements psCmdBase.

Definition at line 55 of file guihandler.h.

void GUIHandler::HandleInventory ( MsgEntry me)
protected
void GUIHandler::HandleMessage ( MsgEntry me)
virtual

Implements psCmdBase.


The documentation for this class was generated from the following file: