changed: added Cur structure
we have there two pointers: Request * request; Session * session; these are the current request and the current session the session GC was moved to SessionManager (was in SessionContainer) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@708 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -49,10 +49,10 @@ void SelectDefaultFunction(PluginInfo & info)
|
||||
{
|
||||
if( info.system->mounts.pmount->type == ticket_info.mount_type_ticket )
|
||||
{
|
||||
if( info.request->is_item )
|
||||
info.request->function = &fun_ticket;
|
||||
if( info.cur->request->is_item )
|
||||
info.cur->request->function = &fun_ticket;
|
||||
else
|
||||
info.request->function = &fun_show_tickets;
|
||||
info.cur->request->function = &fun_show_tickets;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,9 +76,9 @@ void FstabChanged(PluginInfo & info)
|
||||
|
||||
void ProcessRequest(PluginInfo & info)
|
||||
{
|
||||
if( info.request->function == &info.functions->fun_reload )
|
||||
if( info.cur->request->function == &info.functions->fun_reload )
|
||||
{
|
||||
if( info.request->IsParam(L"tickets") )
|
||||
if( info.cur->request->IsParam(L"tickets") )
|
||||
ticket_info.ReadTicketConf();
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ void AddNotifyTemplate(PluginInfo & info)
|
||||
void CreateSession(PluginInfo & info)
|
||||
{
|
||||
SessionData * p = new SessionData();
|
||||
info.request->session->plugin_data.Assign(p);
|
||||
info.cur->session->plugin_data.Assign(p);
|
||||
log << log4 << "Ticket: created ticket plugin data: " << (void*)p << logend;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ using namespace Ticket;
|
||||
ticket_info.SetTDb(&tdb);
|
||||
ticket_info.SetConfig(info.config);
|
||||
ticket_info.SetSystem(info.system);
|
||||
ticket_info.SetRequest(info.request);
|
||||
ticket_info.SetCur(info.cur);
|
||||
ticket_info.SetFunctions(info.functions);
|
||||
ticket_info.plugin_id = info.plugin_id;
|
||||
|
||||
|
Reference in New Issue
Block a user