69 sLog.Debug(
"MailingListMgrService",
"Called GetJoinedLists stub" );
77 sLog.Debug(
"MailingListMgrService",
"Called Create stub" );
78 Call_CreateMailingList
args;
79 if (!args.Decode(&call.
tuple)) {
80 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
85 args.defaultMemberAccess, args.mailCost);
95 sLog.Debug(
"MailingListMgrService",
"Called Join stub" );
96 Call_SingleStringArg
args;
97 if (!args.Decode(&call.
tuple)) {
98 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
102 std::string listName = args.arg;
110 sLog.Debug(
"MailingListMgrService",
"Called Leave stub" );
111 Call_SingleIntegerArg
args;
112 if (!args.Decode(&call.
tuple)) {
113 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
117 int listID = args.arg;
125 sLog.Debug(
"MailingListMgrService",
"Called Delete stub" );
126 Call_SingleIntegerArg
args;
127 if (!args.Decode(&call.
tuple)) {
128 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
132 int listID = args.arg;
140 sLog.Debug(
"MailingListMgrService",
"Called KickMembers stub" );
141 Call_MemberList
args;
142 if (!args.Decode(&call.
tuple)) {
143 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
147 for (
int i = 0; i < args.memberIDs->size(); i++) {
148 PyRep *member = args.memberIDs->GetItem(i);
149 member->
Dump(SERVICE__ERROR,
"member item");
159 sLog.Debug(
"MailingListMgrService",
"Called GetMembers stub" );
160 Call_SingleIntegerArg
args;
161 if (!args.Decode(&call.
tuple)) {
162 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
166 int listID = args.arg;
173 sLog.Debug(
"MailingListMgrService",
"Called SetEntityAccess stub" );
174 Call_SetEntityAccess
args;
175 if (!args.Decode(&call.
tuple)) {
176 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
187 sLog.Debug(
"MailingListMgrService",
"Called ClearEntityAccess stub" );
188 Call_ClearEntityAccess
args;
189 if (!args.Decode(&call.
tuple)) {
190 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
201 sLog.Debug(
"MailingListMgrService",
"Called SetMembersMuted stub" );
202 Call_MemberList
args;
203 if (!args.Decode(&call.
tuple)) {
204 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
214 sLog.Debug(
"MailingListMgrService",
"Called SetMembersOperator stub" );
215 Call_MemberList
args;
216 if (!args.Decode(&call.
tuple)) {
217 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
227 sLog.Debug(
"MailingListMgrService",
"Called SetMembersClear stub" );
228 Call_MemberList
args;
229 if (!args.Decode(&call.
tuple)) {
230 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
240 sLog.Debug(
"MailingListMgrService",
"Called SetDefaultAccess stub" );
241 Call_SetDefaultAccess
args;
242 if (!args.Decode(&call.
tuple)) {
243 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
248 args.defaultMemberAccess, args.mailCost);
256 sLog.Debug(
"MailingListMgrService",
"Called GetInfo stub" );
257 Call_SingleIntegerArg
args;
258 if (!args.Decode(&call.
tuple)) {
259 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
263 int listID = args.arg;
267 return new PyObject(
"util.KeyVal", ret);
275 sLog.Debug(
"MailingListMgrService",
"Called GetSettings stub" );
276 Call_SingleIntegerArg
args;
277 if (!args.Decode(&call.
tuple)) {
278 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
287 int listID = args.arg;
294 sLog.Debug(
"MailingListMgrService",
"Called GetWelcomeMail stub" );
295 Call_SingleIntegerArg
args;
296 if (!args.Decode(&call.
tuple)) {
297 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
301 int listID = args.arg;
308 sLog.Debug(
"MailingListMgrService",
"Called SaveWelcomeMail stub" );
309 Call_SaveWelcomeMail
args;
310 if (!args.Decode(&call.
tuple)) {
311 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
321 sLog.Debug(
"MailingListMgrService",
"Called SendWelcomeMail stub" );
322 Call_SaveWelcomeMail
args;
323 if (!args.Decode(&call.
tuple)) {
324 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
334 sLog.Debug(
"MailingListMgrService",
"Called ClearWelcomeMail stub" );
335 Call_SingleIntegerArg
args;
336 if (!args.Decode(&call.
tuple)) {
337 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
341 int listID = args.arg;
Dispatcher *const m_dispatch
void SetMailingListDefaultAccess(int32 listID, int32 defaultAccess, int32 defaultMemberAccess, int32 cost)
PyDict * GetJoinedMailingLists(uint32 characterID)
int32 GetCharacterID() const
const char * GetName() const
void Dump(FILE *into, const char *pfx) const
Dumps object to file.
#define sLog
Evaluates to a NewLog instance.
#define codelog(type, fmt,...)
PyDict * GetMailingListMembers(int32 listID)
uint32 CreateMailingList(uint32 creator, std::string name, int32 defaultAccess, int32 defaultMemberAccess, int32 cost)
virtual ~MailingListMgrService()
#define PyCallable_REG_CALL(c, m)
PyObject * MailingListGetSettings(int32 listID)
Dispatcher *const m_dispatch
PyCallable_Make_InnerDispatcher(MailingListMgrService) MailingListMgrService
void SetItem(PyRep *key, PyRep *value)
SetItem adds or sets a database entry.