EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MissionMgrService.cpp
Go to the documentation of this file.
1 /*
2  ------------------------------------------------------------------------------------
3  LICENSE:
4  ------------------------------------------------------------------------------------
5  This file is part of EVEmu: EVE Online Server Emulator
6  Copyright 2006 - 2011 The EVEmu Team
7  For the latest information visit http://evemu.org
8  ------------------------------------------------------------------------------------
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU Lesser General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License along with
19  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20  Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21  http://www.gnu.org/copyleft/lesser.txt.
22  ------------------------------------------------------------------------------------
23  Author: Zhur
24 */
25 
26 #include "eve-server.h"
27 
28 #include "PyServiceCD.h"
30 
31 /*
32 class MissionMgrBound
33 : public PyBoundObject {
34 public:
35 
36  PyCallable_Make_Dispatcher(MissionMgrBound)
37 
38  MissionMgrBound(PyServiceMgr *mgr, MissionMgrDB *db)
39  : PyBoundObject(mgr, "MissionMgrBound"),
40  m_db(db),
41  m_dispatch(new Dispatcher(this))
42  {
43  _SetCallDispatcher(m_dispatch);
44 
45  PyCallable_REG_CALL(MissionMgrBound, )
46  PyCallable_REG_CALL(MissionMgrBound, )
47  }
48  virtual ~MissionMgrBound() { delete m_dispatch; }
49  virtual void Release() {
50  //I hate this statement
51  delete this;
52  }
53 
54  PyCallable_DECL_CALL()
55  PyCallable_DECL_CALL()
56 
57 protected:
58  MissionMgrDB *const m_db;
59  Dispatcher *const m_dispatch; //we own this
60 };
61 */
62 
64 
66 : PyService(mgr, "missionMgr"),
67  m_dispatch(new Dispatcher(this))
68 {
69  _SetCallDispatcher(m_dispatch);
70 
71  PyCallable_REG_CALL(MissionMgrService, GetMyCourierMissions);
72 }
73 
75  delete m_dispatch;
76 }
77 
78 /*
79 PyBoundObject *MissionMgrService::CreateBoundObject(Client *pClient, PyTuple *bind_args) {
80  _log(CLIENT__MESSAGE, "MissionMgrService bind request for:");
81  bind_args->Dump(CLIENT__MESSAGE, " ");
82 
83  return(new MissionMgrBound(m_manager, &m_db));
84 }*/
85 
86 PyResult MissionMgrService::Handle_GetMyCourierMissions( PyCallArgs& call )
87 {
88  //SELECT * FROM courierMissions
89  sLog.White("MissionMgrService", "Handle_GetMyCourierMissions() size=%u", call.tuple->size() );
90  call.Dump(SERVICE__CALL_DUMP);
91 
92  return nullptr;
93 }
Dispatcher *const m_dispatch
PyCallable_Make_InnerDispatcher(MissionMgrService) MissionMgrService
size_t size() const
Definition: PyRep.h:591
#define sLog
Evaluates to a NewLog instance.
Definition: LogNew.h:250
#define PyCallable_REG_CALL(c, m)
Definition: PyServiceCD.h:78
void Dump(LogType type) const
Definition: PyCallable.cpp:81
Dispatcher *const m_dispatch
PyTuple * tuple
Definition: PyCallable.h:50