Remove unused APP_*_CHAT_WINDOW messages
This commit is contained in:
parent
e8e1ce0b05
commit
3861fa718d
|
@ -8,12 +8,6 @@
|
||||||
//! Show settings window
|
//! Show settings window
|
||||||
const uint32 APP_SHOW_SETTINGS = 'RPST';
|
const uint32 APP_SHOW_SETTINGS = 'RPST';
|
||||||
|
|
||||||
//! Open chat window
|
|
||||||
const uint32 APP_OPEN_CHAT_WINDOW = 'CYow';
|
|
||||||
|
|
||||||
//! Close chat window
|
|
||||||
const uint32 APP_CLOSE_CHAT_WINDOW = 'CYcw';
|
|
||||||
|
|
||||||
//! Chat messages
|
//! Chat messages
|
||||||
const uint32 APP_CHAT = 'CYch';
|
const uint32 APP_CHAT = 'CYch';
|
||||||
|
|
||||||
|
|
|
@ -133,16 +133,6 @@ Server::Filter(BMessage* message, BHandler **target)
|
||||||
case IM_ERROR:
|
case IM_ERROR:
|
||||||
ImError(message);
|
ImError(message);
|
||||||
break;
|
break;
|
||||||
case APP_CLOSE_CHAT_WINDOW:
|
|
||||||
{
|
|
||||||
BString id = message->FindString("chat_id");
|
|
||||||
if (id.Length() > 0) {
|
|
||||||
bool found = false;
|
|
||||||
// Conversation* item = fChatMap.ValueFor(id, &found);
|
|
||||||
}
|
|
||||||
result = B_SKIP_MESSAGE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case APP_ACCOUNT_DISABLED:
|
case APP_ACCOUNT_DISABLED:
|
||||||
{
|
{
|
||||||
BString name;
|
BString name;
|
||||||
|
|
|
@ -54,18 +54,6 @@ ConversationView::ConversationView(Conversation* chat)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
|
||||||
ConversationView::QuitRequested()
|
|
||||||
{
|
|
||||||
BMessage msg(APP_CLOSE_CHAT_WINDOW);
|
|
||||||
if (fConversation != NULL) {
|
|
||||||
msg.AddString("chat_id", fConversation->GetId());
|
|
||||||
fConversation->Messenger().SendMessage(&msg);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ConversationView::AttachedToWindow()
|
ConversationView::AttachedToWindow()
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,6 @@ class ConversationView : public BGroupView, public Observer, public Notifier {
|
||||||
public:
|
public:
|
||||||
ConversationView(Conversation* chat = NULL);
|
ConversationView(Conversation* chat = NULL);
|
||||||
|
|
||||||
virtual bool QuitRequested();
|
|
||||||
virtual void AttachedToWindow();
|
virtual void AttachedToWindow();
|
||||||
|
|
||||||
virtual void MessageReceived(BMessage* message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
|
|
Ŝarĝante…
Reference in New Issue