db: core/user table has only 'notify' column now (previous was cms_notify, thread_notify)
added: notifications for tickets (not finished yet) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@688 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "core/users.h"
|
||||
#include "core/dirs.h"
|
||||
#include "core/synchro.h"
|
||||
#include "core/plugin.h"
|
||||
|
||||
|
||||
|
||||
@@ -67,6 +68,8 @@ void Notify::Init()
|
||||
|
||||
notify_template_cms = AddTemplate(L"notify_email_cms.txt"); // !! do konfiga
|
||||
notify_template_thread = AddTemplate(L"notify_email_thread.txt");
|
||||
|
||||
plugin.Call(WINIX_NOTIFY_ADD_TEMPLATE);
|
||||
}
|
||||
|
||||
|
||||
@@ -121,8 +124,16 @@ void Notify::ItemChanged(int notify_code, const Item & item)
|
||||
return;
|
||||
}
|
||||
|
||||
ItemChanged(msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// raw form
|
||||
void Notify::ItemChanged(const NotifyMsg & msg)
|
||||
{
|
||||
notify_pool.Add(msg);
|
||||
SendSignalToThread(); //we are in the first locked thread
|
||||
SendSignalToThread(); // we are in the first locked thread
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user