summaryrefslogtreecommitdiff
path: root/Protocols/SIP/popup.cpp
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2010-01-30 06:05:24 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2010-01-30 06:05:24 +0000
commit579bf3eb524d1001d5d786d0207568b487b60ba2 (patch)
tree0e259b81ca25c56f6ffc1f5241e770abae5bab1c /Protocols/SIP/popup.cpp
parente9d52596afd12795a9f5533cefc783343996d686 (diff)
sip:
+ Added info popups + Added SRTP option - Remove TCP connection for protocol (everybody seems to use UDP/TLS only) git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@219 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Protocols/SIP/popup.cpp')
-rw-r--r--Protocols/SIP/popup.cpp26
1 files changed, 21 insertions, 5 deletions
diff --git a/Protocols/SIP/popup.cpp b/Protocols/SIP/popup.cpp
index 9a10593..0d2d71c 100644
--- a/Protocols/SIP/popup.cpp
+++ b/Protocols/SIP/popup.cpp
@@ -57,7 +57,6 @@ void DeInitPopups()
}
-// Show an error popup
void ShowErrPopup(const TCHAR *description, const TCHAR *title)
{
ShowPopupEx(NULL, title == NULL ? _T(MODULE_NAME) _T(" Error") : title, description,
@@ -65,6 +64,13 @@ void ShowErrPopup(const TCHAR *description, const TCHAR *title)
}
+void ShowInfoPopup(const TCHAR *description, const TCHAR *title)
+{
+ ShowPopupEx(NULL, title == NULL ? _T(MODULE_NAME) _T(" Information") : title, description,
+ NULL, POPUP_TYPE_INFO, NULL);
+}
+
+
void ShowTestPopup(const TCHAR *title, const TCHAR *description, const Options *op)
{
ShowPopupEx(NULL, title, description, NULL, POPUP_TYPE_TEST, op);
@@ -118,11 +124,16 @@ void ShowPopupEx(HANDLE hContact, const TCHAR *title, const TCHAR *description,
ppd.colorText = op->popup_text_color;
}
*/ }
- else // if (type == POPUP_TYPE_ERROR)
+ else if (type == POPUP_TYPE_ERROR)
{
ppd.colorBack = RGB(200,0,0);
ppd.colorText = RGB(255,255,255);
}
+ else // if (type == POPUP_TYPE_INFO)
+ {
+ ppd.colorBack = RGB(255,255,128);
+ ppd.colorText = RGB(0,0,0);
+ }
if (type == POPUP_TYPE_NORMAL)
{
@@ -152,7 +163,7 @@ void ShowPopupEx(HANDLE hContact, const TCHAR *title, const TCHAR *description,
break;
}
*/ }
- else // if (type == POPUP_TYPE_ERROR)
+ else // if (type == POPUP_TYPE_ERROR || type == POPUP_TYPE_INFO)
{
ppd.iSeconds = 0;
}
@@ -199,11 +210,16 @@ void ShowPopupEx(HANDLE hContact, const TCHAR *title, const TCHAR *description,
}
*/
}
- else // if (type == POPUP_TYPE_ERROR)
+ else if (type == POPUP_TYPE_ERROR)
{
ppd.colorBack = RGB(200,0,0);
ppd.colorText = RGB(255,255,255);
}
+ else // if (type == POPUP_TYPE_INFO)
+ {
+ ppd.colorBack = RGB(255,255,128);
+ ppd.colorText = RGB(0,0,0);
+ }
if (type == POPUP_TYPE_NORMAL)
{
@@ -233,7 +249,7 @@ void ShowPopupEx(HANDLE hContact, const TCHAR *title, const TCHAR *description,
break;
}
*/ }
- else // if (type == POPUP_TYPE_ERROR)
+ else // if (type == POPUP_TYPE_ERROR || type == POPUP_TYPE_INFO)
{
ppd.iSeconds = 0;
}