55 sLog.Warning(
"TutorialService::Handle_GetTutorials()",
"size= %u", call.
tuple->
size() );
56 call.
Dump(SERVICE__CALL_DUMP);
61 sLog.Warning(
"TutorialService::Handle_GetTutorialInfo()",
"size= %u", call.
tuple->
size() );
62 call.
Dump(SERVICE__CALL_DUMP);
63 Call_GetTutorialInfo
args;
64 if (!args.Decode(&call.
tuple)) {
65 codelog(SERVICE__ERROR,
"%s: Failed to decode arguments.",
GetName());
69 Rsp_GetTutorialInfo rsp;
72 if(rsp.pagecriterias == NULL) {
73 codelog(SERVICE__ERROR,
"An error occured while getting pagecriterias for tutorial %u.", args.tutorialID);
78 if(rsp.pages == NULL) {
79 codelog(SERVICE__ERROR,
"An error occured while getting pages for tutorial %u.", args.tutorialID);
84 if(rsp.tutorial == NULL) {
85 codelog(SERVICE__ERROR,
"An error occured while getting tutorial %u.", args.tutorialID);
90 if(rsp.criterias == NULL) {
91 codelog(SERVICE__ERROR,
"An error occured while getting criterias for tutorial %u.", args.tutorialID);
244 sLog.White(
"TutorialService::Handle_GetTutorialAgents()",
"size= %u", call.
tuple->
size() );
245 call.
Dump(SERVICE__CALL_DUMP);
247 return new PyInt( 0 );
251 sLog.White(
"TutorialService::Handle_GetCriterias()",
"size= %u", call.
tuple->
size() );
252 call.
Dump(SERVICE__CALL_DUMP);
257 sLog.White(
"TutorialService::Handle_GetCategories()",
"size= %u", call.
tuple->
size() );
258 call.
Dump(SERVICE__CALL_DUMP);
264 sLog.White(
"TutorialService::Handle_GetContextHelp()",
"size= %u", call.
tuple->
size() );
265 call.
Dump(SERVICE__CALL_DUMP);
1129 return new PyInt( 0 );
Dispatcher *const m_dispatch
virtual ~TutorialService()
PyRep * GetPages(uint32 tutorialID)
Dispatcher *const m_dispatch
PyRep * GetAllCriterias()
const char * GetName() const
#define sLog
Evaluates to a NewLog instance.
#define codelog(type, fmt,...)
PyRep * GetPageCriterias(uint32 tutorialID)
PyRep * GetTutorial(uint32 tutorialID)
PyCallable_Make_InnerDispatcher(TutorialService) TutorialService
#define PyCallable_REG_CALL(c, m)
PyRep * GetTutorialCriterias(uint32 tutorialID)
PyRep * GetAllTutorials()
void Dump(LogType type) const