Ejemplo n.º 1
0
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);
}
Ejemplo n.º 2
0
void ShowPopup(MCONTACT hContact, const TCHAR *title, const TCHAR *description)
{
	ShowPopupEx(hContact, title, description, (void*)hContact, POPUP_TYPE_NORMAL, &opts);
}
Ejemplo n.º 3
0
void ShowTestPopup(MCONTACT hContact,const TCHAR *title, const TCHAR *description, const Options *op)
{
	ShowPopupEx(hContact, title, description, NULL, POPUP_TYPE_TEST, op);
}
Ejemplo n.º 4
0
// 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);
}
Ejemplo n.º 5
0
void ShowPopup(HANDLE hContact, const TCHAR *title, const TCHAR *description)
{
	ShowPopupEx(hContact, title, description, hContact, POPUP_TYPE_NORMAL, &opts);
}
Ejemplo n.º 6
0
void ShowTestPopup(const TCHAR *title, const TCHAR *description, const Options *op)
{
	ShowPopupEx(NULL, title, description, NULL, POPUP_TYPE_TEST, op);
}
Ejemplo n.º 7
0
void ShowTestPopup(int typeNum, const TCHAR *title, const TCHAR *description, const Options *op)
{
	ShowPopupEx(NULL, title, description, new PopupData(), POPUP_TYPE_TEST, op, typeNum);
}
Ejemplo n.º 8
0
// 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);
}