Planeshift
|
00001 /* 00002 * subscriber.h 00003 * 00004 * Copyright (C) 2001 PlaneShift Team ([email protected], 00005 * http://www.planeshift.it) 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License 00009 * as published by the Free Software Foundation (version 2 of the License) 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 * 00018 */ 00019 #ifndef __SUBSCRIBER_H__ 00020 #define __SUBSCRIBER_H__ 00021 00022 #include <csutil/refcount.h> 00023 #include <csutil/ref.h> 00024 00025 class MsgEntry; 00026 class Client; 00027 00037 struct iNetSubscriber : public virtual csRefCount 00038 { 00039 virtual bool Verify(MsgEntry *msg,unsigned int flags,Client*& client) = 0; 00040 00044 virtual void HandleMessage(MsgEntry* msg,Client *client) = 0; 00045 }; 00046 00052 struct iCmdSubscriber : public virtual csRefCount 00053 { 00058 virtual const char *HandleCommand(const char *cmd) = 0; 00059 }; 00060 00063 #endif 00064