fixed: find_ticket_value (in plugins/ticket/templates.cpp)
should find the first item (can be more than one item with the same 'param') fixed: added sorting tickets params in ReadTicketParams() (in plugins/ticket/ticketinfo.cpp) fixed: plugin should have its own 'PluginInfo info' struct a plugin's function can call another plugin's functions added: removing tickets files/images added: removing threads changed: rm function will call WINIX_FILE_REMOVED now when deleting directories git-svn-id: svn://ttmath.org/publicrep/winix/trunk@710 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -13,6 +13,39 @@
|
||||
namespace Ticket
|
||||
{
|
||||
|
||||
SessionData::SessionData()
|
||||
{
|
||||
fun_rm = 0;
|
||||
}
|
||||
|
||||
|
||||
SessionData::~SessionData()
|
||||
{
|
||||
RemoveFileMap(create_file_map);
|
||||
RemoveFileMap(new_file_map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void SessionData::RemoveFileMap(SessionData::FileMap & file_map)
|
||||
{
|
||||
FileMap::iterator i;
|
||||
|
||||
if( fun_rm )
|
||||
{
|
||||
for(i=file_map.begin() ; i!=file_map.end() ; ++i)
|
||||
{
|
||||
for(size_t a=0 ; a<i->second.size() ; ++a)
|
||||
{
|
||||
long file_id = i->second[a];
|
||||
fun_rm->RemoveItemById(file_id);
|
||||
}
|
||||
}
|
||||
|
||||
file_map.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Ticket & SessionData::GetTicket(long id, SessionData::TicketMap & ticket_map, bool * is_new)
|
||||
|
||||
Reference in New Issue
Block a user