void RoomCLEntry::HandleMessage (RoomPublicMessage *msg) { GlooxProtocol *proto = qobject_cast<GlooxProtocol*> (Account_->GetParentProtocol ()); IProxyObject *proxy = qobject_cast<IProxyObject*> (proto->GetProxyObject ()); proxy->PreprocessMessage (msg); AllMessages_ << msg; emit gotMessage (msg); }
void EntryBase::HandleMessage (IrcMessage *msg) { msg->SetOtherPart (this); IrcProtocol *proto = qobject_cast<IrcProtocol*> (Account_-> GetParentProtocol ()); IProxyObject *proxy = qobject_cast<IProxyObject*> (proto->GetProxyObject ()); proxy->PreprocessMessage (msg); AllMessages_ << msg; emit gotMessage (msg); }
void EntryBase::HandleMessage (GlooxMessage *msg) { if (msg->GetMessageType () == IMessage::MTChatMessage) { HasUnreadMsgs_ = true; UnreadMessages_ << msg; } GlooxProtocol *proto = qobject_cast<GlooxProtocol*> (Account_->GetParentProtocol ()); IProxyObject *proxy = qobject_cast<IProxyObject*> (proto->GetProxyObject ()); proxy->PreprocessMessage (msg); AllMessages_ << msg; emit gotMessage (msg); }