void EntryBase::UpdateChatState (QXmppMessage::State state, const QString& variant) { emit chatPartStateChanged (static_cast<ChatPartState> (state), variant); if (state == QXmppMessage::Gone) { GlooxMessage *msg = new GlooxMessage (IMessage::MTEventMessage, IMessage::DIn, GetJID (), variant, Account_->GetClientConnection ().get ()); msg->SetMessageSubType (IMessage::MSTParticipantEndedConversation); HandleMessage (msg); } }
void MetaEntry::handleRealCPSChanged (const ChatPartState& cps, const QString& var) { ICLEntry *entry = qobject_cast<ICLEntry*> (sender ()); emit chatPartStateChanged (cps, entry->GetEntryName () + '/' + var); }
void ToxContact::SetTyping (bool isTyping) { emit chatPartStateChanged (isTyping ? ChatPartState::CPSComposing : ChatPartState::CPSNone, {}); }
void MRIMBuddy::HandleCPS (ChatPartState cps) { emit chatPartStateChanged (cps, QString ()); }