void ShowPopup(HANDLE hContact, int type, int templateNum, TCHAR **vars, int numVars) { if (templateNum == 0 && !opts[type].popup_track_changes) return; if (templateNum == 1 && !opts[type].popup_track_removes) return; TCHAR *templ = (templateNum == 1 ? opts[type].popup_template_removed : opts[type].popup_template_changed); Buffer<TCHAR> txt; ReplaceTemplate(&txt, hContact, templ, vars, numVars); ShowPopupEx(hContact, NULL, txt.str, new PopupData(hContact, type), POPUP_TYPE_NORMAL, &opts[type], type); }
void ShowPopup(MCONTACT hContact, const TCHAR *title, const TCHAR *description) { ShowPopupEx(hContact, title, description, (void*)hContact, POPUP_TYPE_NORMAL, &opts); }
void ShowTestPopup(MCONTACT hContact,const TCHAR *title, const TCHAR *description, const Options *op) { ShowPopupEx(hContact, title, description, NULL, POPUP_TYPE_TEST, op); }
// Show an error popup void ShowErrPopup(const TCHAR *description, const TCHAR *title) { ShowPopupEx(NULL, title == NULL ? _T(MODULE_NAME) _T(" Error") : title, description, NULL, POPUP_TYPE_ERROR, NULL); }
void ShowPopup(HANDLE hContact, const TCHAR *title, const TCHAR *description) { ShowPopupEx(hContact, title, description, hContact, POPUP_TYPE_NORMAL, &opts); }
void ShowTestPopup(const TCHAR *title, const TCHAR *description, const Options *op) { ShowPopupEx(NULL, title, description, NULL, POPUP_TYPE_TEST, op); }
void ShowTestPopup(int typeNum, const TCHAR *title, const TCHAR *description, const Options *op) { ShowPopupEx(NULL, title, description, new PopupData(), POPUP_TYPE_TEST, op, typeNum); }
// Show an error popup void ShowErrPopup(int typeNum, const TCHAR *description, const TCHAR *title) { ShowPopupEx(NULL, title == NULL ? _T(MODULE_NAME) _T(" Error") : title, description, new PopupData(), POPUP_TYPE_ERROR, NULL, typeNum); }