added: sessions data for plugins (plugindata.h plugindata.cpp)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@598 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-05-04 21:58:22 +00:00
parent aff4cc516e
commit 2ad666d221
20 changed files with 604 additions and 243 deletions

View File

@@ -132,6 +132,12 @@ void RequestController::SaveSessions()
}
void RequestController::DeleteAllPluginsData()
{
session_manager.DeleteAllPluginsData();
}
void RequestController::SaveSessionsIfNeeded()
{
time_t t = time(0);
@@ -207,17 +213,21 @@ void RequestController::Loop()
request.SendAll();
notify.ItemChanged(request.notify_code);
}
catch(const std::logic_error & e)
{
log << log1 << "std logic exception: " << e.what() << logend;
}
catch(const std::exception & e)
{
log << log1 << "uncaught std exception: " << e.what() << logend;
log << log1 << "std exception: " << e.what() << logend;
}
catch(const Error & e)
{
log << log1 << "uncaught exception: Error: " << e << logend;
log << log1 << "exception: Error: " << e << logend;
}
catch(...)
{
log << log1 << "uncaught exception" << logend;
log << log1 << "uncaught unknown exception" << logend;
}
SaveSessionsIfNeeded();