Planeshift
cmdadmin.h
Go to the documentation of this file.
1 /*
2  * cmdadmin.h - Author: Keith Fulton
3  *
4  * Copyright (C) 2001 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 
21 #ifndef __CMDADMIN_H__
22 #define __CMDADMIN_H__
23 //=============================================================================
24 // Crystal Space Includes
25 //=============================================================================
26 
27 //=============================================================================
28 // Project Includes
29 //=============================================================================
30 #include "net/cmdbase.h"
31 
32 //=============================================================================
33 // Local Includes
34 //=============================================================================
35 
36 
37 class ClientMsgHandler;
38 
42 class psAdminCommands : public psCmdBase
43 {
44 public:
46  CmdHandler *ch,
47  iObjectRegistry* obj);
48  virtual ~psAdminCommands();
49 
50  // iCmdSubscriber interface
51  virtual const char *HandleCommand(const char *cmd);
52 
53  // iNetSubscriber interface
54  virtual void HandleMessage(MsgEntry *msg);
55 };
56 
57 #endif
58 
virtual ~psAdminCommands()
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
Handles messages to be sent out, connects to server and send those.
virtual const char * HandleCommand(const char *cmd)
Interprets a received message and executes the command.
psAdminCommands(ClientMsgHandler *mh, CmdHandler *ch, iObjectRegistry *obj)
virtual void HandleMessage(MsgEntry *msg)
This implements a subscriber object which handles admin-oriented commands.
Definition: cmdadmin.h:42