diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-17 05:37:25 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-17 05:37:25 +0000 |
commit | b9e3d0d154f994e77091e250a412415a2c454140 (patch) | |
tree | 1b7311ff1dfbd4d51bbae93730158eb14b61d379 /protocols/Tox/src/tox_events.cpp | |
parent | e01f8fc1b12bef2619ade2c8a664d8d15116cfe9 (diff) |
Tox: removed unneeded event
git-svn-id: http://svn.miranda-ng.org/main/trunk@12879 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_events.cpp')
-rw-r--r-- | protocols/Tox/src/tox_events.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp index f1e21e955a..22b7bf4afd 100644 --- a/protocols/Tox/src/tox_events.cpp +++ b/protocols/Tox/src/tox_events.cpp @@ -40,58 +40,4 @@ void CToxProto::InitCustomDbEvents() dbEventType.descr = Translate("Audio end");
dbEventType.eventIcon = GetIconHandle("audio_end");
CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType);
-}
-
-int CToxProto::OnDbEventAdded(WPARAM hContact, LPARAM hEvent)
-{
- DWORD dwSignature;
-
- DBEVENTINFO dbei = { sizeof(dbei) };
- dbei.cbBlob = sizeof(DWORD);
- dbei.pBlob = (PBYTE)&dwSignature;
- db_event_get(hEvent, &dbei);
- if (dbei.flags & (DBEF_SENT | DBEF_READ) || dbei.eventType <= DB_EVENT_ACTION || dwSignature == 0)
- return 0;
-
- DBEVENTTYPEDESCR *dbEventType = (DBEVENTTYPEDESCR*)CallService(MS_DB_EVENT_GETTYPE, (WPARAM)MODULE, dbei.eventType);
- if (dbEventType == NULL)
- return 0;
-
- CLISTEVENT cle = { sizeof(cle) };
- cle.flags |= CLEF_TCHAR;
- cle.hContact = hContact;
- cle.hDbEvent = hEvent;
- cle.hIcon = Skin_GetIconByHandle(dbEventType->eventIcon);
-
- TCHAR szTooltip[256];
- mir_sntprintf(szTooltip, SIZEOF(szTooltip), _T("%s %s %s"), _A2T(dbEventType->descr), TranslateT("from"), pcli->pfnGetContactDisplayName(hContact, 0));
- cle.ptszTooltip = szTooltip;
-
- char szService[256];
- switch (dbei.eventType)
- {
- case DB_EVENT_AUDIO_CALL:
- mir_snprintf(szService, SIZEOF(szService), "%s/Audio/Call", GetContactProto(hContact));
- break;
-
- case DB_EVENT_AUDIO_RING:
- mir_snprintf(szService, SIZEOF(szService), "%s/Audio/Ring", GetContactProto(hContact));
- break;
-
- case DB_EVENT_AUDIO_START:
- mir_snprintf(szService, SIZEOF(szService), "%s/Audio/Start", GetContactProto(hContact));
- break;
-
- case DB_EVENT_AUDIO_END:
- mir_snprintf(szService, SIZEOF(szService), "%s/Audio/End", GetContactProto(hContact));
- break;
-
- default:
- return 0;
- }
- cle.pszService = szService;
-
- CallService(MS_CLIST_ADDEVENT, 0, (LPARAM)&cle);
-
- return 0;
}
\ No newline at end of file |