EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CorpRegistryBound.h
Go to the documentation of this file.
1 
2 
3 
4 #ifndef __EVEMU_CORP_CORPREGISTRY_BOUND_H_
5 #define __EVEMU_CORP_CORPREGISTRY_BOUND_H_
6 
7 
8 #include "../eve-server.h"
9 
10 #include "PyBoundObject.h"
11 #include "PyServiceCD.h"
13 
15 : public PyBoundObject
16 {
17 public:
19 
21  virtual ~CorpRegistryBound() { delete m_dispatch; }
22  virtual void Release() {
23  //I hate this statement
24  delete this;
25  }
26 
27  PyCallable_DECL_CALL(GetEveOwners);
28  PyCallable_DECL_CALL(GetCorporation);
29  PyCallable_DECL_CALL(GetCorporations);
30  PyCallable_DECL_CALL(GetInfoWindowDataForChar);
31  PyCallable_DECL_CALL(GetLockedItemLocations);
32  PyCallable_DECL_CALL(AddCorporation);
33  PyCallable_DECL_CALL(GetSuggestedTickerNames);
34  PyCallable_DECL_CALL(GetOffices);
35  PyCallable_DECL_CALL(GetStations);
36 
37  PyCallable_DECL_CALL(CreateRecruitmentAd);
38  PyCallable_DECL_CALL(UpdateRecruitmentAd);
39  PyCallable_DECL_CALL(DeleteRecruitmentAd);
40  PyCallable_DECL_CALL(GetRecruiters);
41  PyCallable_DECL_CALL(GetRecruitmentAdsForCorporation);
42  PyCallable_DECL_CALL(GetMyApplications);
43  PyCallable_DECL_CALL(InsertApplication);
44  PyCallable_DECL_CALL(GetApplications);
45  PyCallable_DECL_CALL(UpdateApplicationOffer);
46  PyCallable_DECL_CALL(DeleteApplication);
47 
48  PyCallable_DECL_CALL(UpdateDivisionNames);
49  PyCallable_DECL_CALL(UpdateCorporation);
50  PyCallable_DECL_CALL(UpdateLogo);
51  PyCallable_DECL_CALL(SetAccountKey);
52  PyCallable_DECL_CALL(GetMember);
53  PyCallable_DECL_CALL(GetMembers);
54 
55  PyCallable_DECL_CALL(MoveCompanyShares);
56  PyCallable_DECL_CALL(MovePrivateShares);
57  PyCallable_DECL_CALL(GetSharesByShareholder);
58  PyCallable_DECL_CALL(GetShareholders);
59  PyCallable_DECL_CALL(PayoutDividend);
60 
61  PyCallable_DECL_CALL(CanViewVotes);
62  PyCallable_DECL_CALL(InsertVoteCase);
63  PyCallable_DECL_CALL(GetVotes);
64  PyCallable_DECL_CALL(CanVote);
65  PyCallable_DECL_CALL(InsertVote);
66  PyCallable_DECL_CALL(GetVoteCasesByCorporation);
67  PyCallable_DECL_CALL(GetVoteCaseOptions);
68  PyCallable_DECL_CALL(GetSanctionedActionsByCorporation);
69 
70  PyCallable_DECL_CALL(GetRoleGroups);
71  PyCallable_DECL_CALL(GetRoles);
72 
73  PyCallable_DECL_CALL(CreateLabel);
74  PyCallable_DECL_CALL(GetLabels);
75  PyCallable_DECL_CALL(DeleteLabel);
76  PyCallable_DECL_CALL(EditLabel);
77  PyCallable_DECL_CALL(AssignLabels);
78  PyCallable_DECL_CALL(RemoveLabels);
79 
80  PyCallable_DECL_CALL(GetTitles);
81  PyCallable_DECL_CALL(UpdateTitle);
82  PyCallable_DECL_CALL(UpdateTitles);
83  PyCallable_DECL_CALL(DeleteTitle);
84 
85  PyCallable_DECL_CALL(AddBulletin);
86  PyCallable_DECL_CALL(GetBulletins);
87  PyCallable_DECL_CALL(DeleteBulletin);
88 
89  PyCallable_DECL_CALL(GetLocationalRoles);
90  PyCallable_DECL_CALL(GetRecentKillsAndLosses);
91  PyCallable_DECL_CALL(UpdateMember);
92  PyCallable_DECL_CALL(ExecuteActions);
93 
94  PyCallable_DECL_CALL(GetCorporateContacts);
95  PyCallable_DECL_CALL(AddCorporateContact);
96  PyCallable_DECL_CALL(EditContactsRelationshipID);
97  PyCallable_DECL_CALL(RemoveCorporateContacts);
98  PyCallable_DECL_CALL(EditCorporateContact);
99 
100  PyCallable_DECL_CALL(CreateAlliance);
101  PyCallable_DECL_CALL(ApplyToJoinAlliance);
102  PyCallable_DECL_CALL(DeleteAllianceApplication);
103  PyCallable_DECL_CALL(GetAllianceApplications);
104  PyCallable_DECL_CALL(GetSuggestedAllianceShortNames);
105 
106  PyCallable_DECL_CALL(GetMemberTrackingInfo);
107  PyCallable_DECL_CALL(GetMembersPaged);
108  PyCallable_DECL_CALL(GetMembersByIds);
109  PyCallable_DECL_CALL(GetMemberIDsWithMoreThanAvgShares);
110  PyCallable_DECL_CALL(GetMemberIDsByQuery);
111  PyCallable_DECL_CALL(GetMemberTrackingInfoSimple);
112 
113  PyCallable_DECL_CALL(GetRentalDetailsPlayer);
114  PyCallable_DECL_CALL(GetRentalDetailsCorp);
115 
116  PyCallable_DECL_CALL(UpdateCorporationAbilities);
117  PyCallable_DECL_CALL(UpdateStationManagementSettings);
118  PyCallable_DECL_CALL(GetNumberOfPotentialCEOs);
119 
120  PyCallable_DECL_CALL(CanLeaveCurrentCorporation);
121 
122 
123 protected:
124  static void FillOCApplicationChange(OnCorporationApplicationChanged& OCAC, const Corp::ApplicationInfo& Old, const Corp::ApplicationInfo& New);
125 
126  bool GetSearchValues(int8 op, PyRep* rep, std::ostringstream& query);
127  uint8 GetQueryType(std::string queryType);
128 
130 
131  Dispatcher *const m_dispatch;
132 
134 };
135 
136 #endif // __EVEMU_CORP_CORPREGISTRY_BOUND_H_
Base Python wire object.
Definition: PyRep.h:66
unsigned __int8 uint8
Definition: eve-compat.h:46
PyCallable_DECL_CALL(GetEveOwners)
CorporationDB & db
bool GetSearchValues(int8 op, PyRep *rep, std::ostringstream &query)
signed __int8 int8
Definition: eve-compat.h:45
PyCallable_Make_Dispatcher(CorpRegistryBound) CorpRegistryBound(PyServiceMgr *mgr
CorporationDB & m_db
unsigned __int32 uint32
Definition: eve-compat.h:50
Dispatcher *const m_dispatch
virtual void Release()
static void FillOCApplicationChange(OnCorporationApplicationChanged &OCAC, const Corp::ApplicationInfo &Old, const Corp::ApplicationInfo &New)
CorporationDB uint32 corpID
uint8 GetQueryType(std::string queryType)