Added IM_CONTACT_GONE message, for contacts leaving the chat.

This commit is contained in:
plfiorini 2010-10-24 06:26:01 +00:00
parent 46c1a78e54
commit f8304f0c27
2 changed files with 45 additions and 37 deletions

View File

@ -59,11 +59,14 @@ enum im_what_code {
//! Contact stopped typing
IM_CONTACT_STOPPED_TYPING = 24,
//! Contact gone
IM_CONTACT_GONE = 25,
//! User started typing
IM_USER_STARTED_TYPING = 25,
IM_USER_STARTED_TYPING = 26,
//! User stopped typing
IM_USER_STOPPED_TYPING = 26,
IM_USER_STOPPED_TYPING = 27,
/*
* Messages related to contact changes.

View File

@ -130,6 +130,11 @@ ChatWindow::ImMessage(BMessage* msg)
case IM_CONTACT_STOPPED_TYPING:
fStatus->SetText("");
break;
case IM_CONTACT_GONE:
fStatus->SetText("Contact closed the chat window!");
snooze(10000);
fStatus->SetText("");
break;
default:
break;
}