From b7c991c686cd440cb8b81745ec587fbf29deb97d Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 3 Jun 2014 17:41:45 +0000 Subject: IEView: Added support for custom database events (e.g. status changes) (fixes #694) git-svn-id: http://svn.miranda-ng.org/main/trunk@9405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/Utils.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'plugins/IEView/src/Utils.cpp') diff --git a/plugins/IEView/src/Utils.cpp b/plugins/IEView/src/Utils.cpp index 4c7b0ddf8d..37c0da77f2 100644 --- a/plugins/IEView/src/Utils.cpp +++ b/plugins/IEView/src/Utils.cpp @@ -185,3 +185,15 @@ void Utils::appendIcon(char **str, int *sizeAlloced, const char *iconFile) { Utils::appendText(str, sizeAlloced, " ", workingDirUtf8, iconFile); } + +bool Utils::DbEventIsForMsgWindow(DBEVENTINFO *dbei) +{ + DBEVENTTYPEDESCR *et = (DBEVENTTYPEDESCR*)CallService(MS_DB_EVENT_GETTYPE, (WPARAM)dbei->szModule, (LPARAM)dbei->eventType); + return et && (et->flags & DETF_MSGWINDOW); +} + +bool Utils::DbEventIsForHistory(DBEVENTINFO *dbei) +{ + DBEVENTTYPEDESCR *et = (DBEVENTTYPEDESCR*)CallService(MS_DB_EVENT_GETTYPE, (WPARAM)dbei->szModule, (LPARAM)dbei->eventType); + return et && (et->flags & DETF_HISTORY); +} \ No newline at end of file -- cgit v1.2.3