summaryrefslogtreecommitdiff
path: root/plugins/NewEventNotify/src/popup.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-30 18:57:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-30 18:57:14 +0300
commitb362935f54084acecfe8f8a1f60a1fa18ac46d66 (patch)
tree8d292423e4731bf271074cb2ae5f5b9b65a722eb /plugins/NewEventNotify/src/popup.cpp
parentec516b756030446b0a6b11604e102f3ec7b03031 (diff)
obsolete ICQ trash removed from headers
Diffstat (limited to 'plugins/NewEventNotify/src/popup.cpp')
-rw-r--r--plugins/NewEventNotify/src/popup.cpp56
1 files changed, 2 insertions, 54 deletions
diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp
index 43ca3d2e27..24c697f4c3 100644
--- a/plugins/NewEventNotify/src/popup.cpp
+++ b/plugins/NewEventNotify/src/popup.cpp
@@ -201,10 +201,10 @@ static wchar_t* GetEventPreview(DBEVENTINFO *dbei)
commentFix = POPUP_COMMENT_FILE;
break;
+ case EVENTTYPE_CONTACTS:
// blob format is:
// ASCIIZ nick
// ASCIIZ UID
- case EVENTTYPE_CONTACTS:
if (dbei->pBlob) {
// count contacts in event
char* pcBlob = (char *)dbei->pBlob;
@@ -227,6 +227,7 @@ static wchar_t* GetEventPreview(DBEVENTINFO *dbei)
commentFix = POPUP_COMMENT_CONTACTS;
break;
+ case EVENTTYPE_ADDED:
// blob format is:
// DWORD numeric uin (ICQ only afaik)
// DWORD HANDLE to contact
@@ -234,7 +235,6 @@ static wchar_t* GetEventPreview(DBEVENTINFO *dbei)
// ASCIIZ first name
// ASCIIZ last name
// ASCIIZ email (or YID)
- case EVENTTYPE_ADDED:
if (dbei->pBlob) {
char szUin[16];
wchar_t szBuf[2048];
@@ -290,58 +290,6 @@ static wchar_t* GetEventPreview(DBEVENTINFO *dbei)
commentFix = POPUP_COMMENT_AUTH;
break;
- // blob format is:
- // ASCIIZ text, usually "Sender IP: xxx.xxx.xxx.xxx\r\n%s"
- // ASCIIZ from name
- // ASCIIZ from e-mail
- case ICQEVENTTYPE_WEBPAGER:
- if (dbei->pBlob) comment1 = mir_a2u((const char *)dbei->pBlob);
- commentFix = POPUP_COMMENT_WEBPAGER;
- break;
-
- // blob format is:
- // ASCIIZ text, usually of the form "Subject: %s\r\n%s"
- // ASCIIZ from name
- // ASCIIZ from e-mail
- case ICQEVENTTYPE_EMAILEXPRESS:
- if (dbei->pBlob) comment1 = mir_a2u((const char *)dbei->pBlob);
- commentFix = POPUP_COMMENT_EMAILEXP;
- break;
-
- // blob format is:
- // ASCIIZ text, usually of the form "SMS From: +XXXXXXXX\r\nTEXT"
- case ICQEVENTTYPE_SMS:
- if (dbei->pBlob) {
- if (dbei->flags & DBEF_UTF) {
- // utf-8 in blob
- comment1 = mir_utf8decodeW((char*)dbei->pBlob);
- }
- else if (dbei->cbBlob == (mir_wstrlen((wchar_t *)dbei->pBlob) + 1)*(sizeof(wchar_t) + 1)) {
- // wchar in blob (the old hack)
- comment1 = mir_wstrdup((wchar_t*)dbei->pBlob);
- }
- else comment1 = mir_a2u((char *)dbei->pBlob);
- }
- commentFix = POPUP_COMMENT_SMS;
- break;
-
- // blob format is:
- // ASCIIZ text, usually of the form "SMS Confirmation From: +XXXXXXXXXXXX\r\nSMS was sent succesfully"
- case ICQEVENTTYPE_SMSCONFIRMATION:
- if (dbei->pBlob) {
- if (dbei->flags & DBEF_UTF) {
- // utf-8 in blob
- comment1 = mir_utf8decodeW((char*)dbei->pBlob);
- }
- else if (dbei->cbBlob == (mir_wstrlen((wchar_t *)dbei->pBlob) + 1)*(sizeof(wchar_t) + 1)) {
- // wchar in blob (the old hack)
- comment1 = mir_wstrdup((wchar_t*)dbei->pBlob);
- }
- else comment1 = mir_a2u((char *)dbei->pBlob);
- }
- commentFix = POPUP_COMMENT_SMSCONFIRMATION;
- break;
-
default:
DBEVENTTYPEDESCR *pei = DbEvent_GetType(dbei->szModule, dbei->eventType);
// support for custom database event types