Exemplo n.º 1
0
	RoomParticipantEntry_ptr RoomHandler::CreateParticipantEntry (const QString& nick, bool announce)
	{
		RoomParticipantEntry_ptr entry (new RoomParticipantEntry (nick,
					this, Account_));
		if (IsGateway ())
			entry->SetVersionReqsEnabled (false);

		connect (entry.get (),
				SIGNAL (messagesAreRead ()),
				this,
				SLOT (handleMessagesAreRead ()));
		Nick2Entry_ [nick] = entry;
		if (announce)
			Account_->handleGotRosterItems (QList<QObject*> () << entry.get ());
		return entry;
	}
Exemplo n.º 2
0
	void EntryBase::MarkMsgsRead ()
	{
		HasUnreadMsgs_ = false;
		UnreadMessages_.clear ();
		emit messagesAreRead ();
	}