diff options
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber.cpp | 7 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_file.cpp | 1 | ||||
-rw-r--r-- | protocols/JabberG/src/stdafx.h | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp index e65d2688cc..84cbfe2c4e 100644 --- a/protocols/JabberG/src/jabber.cpp +++ b/protocols/JabberG/src/jabber.cpp @@ -36,6 +36,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #pragma comment(lib, "Secur32.lib")
HMODULE hMsftedit;
+HANDLE g_hevEventEdited;
CMPlugin g_plugin;
@@ -122,11 +123,13 @@ static int OnModulesLoaded(WPARAM, LPARAM) int CMPlugin::Load()
{
#ifdef _WIN64
- bPlatform = true;
+ bPlatform = true;
#else
- bPlatform = false;
+ bPlatform = false;
#endif
+ g_hevEventEdited = CreateHookableEvent(ME_DB_EVENT_EDITED);
+
Miranda_GetVersionText(szCoreVersion, _countof(szCoreVersion));
CallService(MS_UTILS_GETCOUNTRYLIST, (WPARAM)&g_cbCountries, (LPARAM)&g_countries);
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index 00e051f75d..dc622efc31 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -98,6 +98,7 @@ void __cdecl CJabberProto::OfflineFileThread(OFDTHREAD *param) dbv.dVal = written;
db_event_setJson(param->hDbEvent, "ft", &dbv);
db_event_setJson(param->hDbEvent, "fs", &dbv);
+ NotifyEventHooks(g_hevEventEdited, 0, param->hDbEvent);
if (param->bOpen)
ShellExecuteW(nullptr, L"open", param->wszPath, nullptr, nullptr, SW_SHOWDEFAULT);
diff --git a/protocols/JabberG/src/stdafx.h b/protocols/JabberG/src/stdafx.h index 23e3b9b5c7..384f300be8 100644 --- a/protocols/JabberG/src/stdafx.h +++ b/protocols/JabberG/src/stdafx.h @@ -507,7 +507,7 @@ extern unsigned int g_nTempFileId; extern int g_cbCountries;
extern struct CountryListEntry* g_countries;
-extern HANDLE hExtListInit, hDiscoInfoResult;
+extern HANDLE hExtListInit, hDiscoInfoResult, g_hevEventEdited;
/*******************************************************************
* Function declarations
|