Planeshift
QuestionManager Class Reference

QuestionManager keeps track of all the questions of any kind that are pending. More...

#include <questionmanager.h>

Public Member Functions

void CancelQuestion (PendingQuestion *question)
 Removes specified question from list and from GUI on questioned client. More...
 
 QuestionManager ()
 
void SendQuestion (PendingQuestion *question)
 Sends a question to a client. More...
 
virtual ~QuestionManager ()
 
- Public Member Functions inherited from MessageManager< QuestionManager >
void HandleMessage (MsgEntry *msg, Client *client)
 Transfers the message to the manager specific function. More...
 
void Subscribe (FunctionPointer fpt, msgtype type, uint32_t flags=0x01)
 Subscribes this manager to a specific message type with a custom callback. More...
 
bool Unsubscribe (msgtype type)
 Unsubscribes this manager from a specific message type. More...
 
bool Unsubscribe (FunctionPointer handler, msgtype type)
 Unsubscribes a specific handler from a specific message type. More...
 
bool UnsubscribeAll ()
 Unsubscribes this manager from all message types. More...
 
virtual ~MessageManager ()
 Unsubscribes all messages then destroys this object. More...
 
- Public Member Functions inherited from MessageManagerBase
csArray< csString > DecodeCommandArea (Client *client, csString target)
 Decodes an area: expression. More...
 
gemObjectFindObjectByString (const csString &str, gemActor *me) const
 Find the object we are referring to in str. More...
 
ClientFindPlayerClient (const char *name)
 Finds Client* of character with given name. More...
 
virtual bool Verify (MsgEntry *pMsg, unsigned int flags, Client *&client)
 

Protected Member Functions

void HandleQuestionResponse (MsgEntry *pMsg, Client *client)
 

Protected Attributes

csHash< PendingQuestion * > questions
 

Additional Inherited Members

- Public Types inherited from MessageManager< QuestionManager >
typedef void(QuestionManager::* FunctionPointer) (MsgEntry *, Client *)
 

Detailed Description

QuestionManager keeps track of all the questions of any kind that are pending.

Definition at line 105 of file questionmanager.h.

Constructor & Destructor Documentation

QuestionManager::QuestionManager ( )
virtual QuestionManager::~QuestionManager ( )
virtual

Member Function Documentation

void QuestionManager::CancelQuestion ( PendingQuestion question)

Removes specified question from list and from GUI on questioned client.

void QuestionManager::HandleQuestionResponse ( MsgEntry pMsg,
Client client 
)
protected
void QuestionManager::SendQuestion ( PendingQuestion question)

Sends a question to a client.

Member Data Documentation

csHash<PendingQuestion*> QuestionManager::questions
protected

Definition at line 122 of file questionmanager.h.


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