void updateFriendStatus(const ToxPk &friendPk)
ContentDialog * focusDialog(const ContactId &id, const QHash< const ContactId &, ContentDialog * > &list)
Focus the dialog if it exists.
static ContentDialogManager * getInstance()
ContentDialog * current()
ContentDialog * getFriendDialog(const ToxPk &friendPk) const
ContentDialog * currentDialog
static ContentDialogManager * instance
FriendWidget * addFriendToDialog(ContentDialog *dialog, std::shared_ptr< FriendChatroom > chatroom, GenericChatForm *form)
IDialogs * getFriendDialogs(const ToxPk &friendPk) const
IDialogs * getGroupDialogs(const GroupId &groupId) const
void focusContact(const ContactId &contactId)
bool contactWidgetExists(const ContactId &groupId)
bool isContactActive(const ContactId &contactId)
ContentDialog * getGroupDialog(const GroupId &friendPk) const
QHash< const ContactId &, ContentDialog * > contactDialogs
GroupWidget * addGroupToDialog(ContentDialog *dialog, std::shared_ptr< GroupChatroom > chatroom, GenericChatForm *form)
void addContentDialog(ContentDialog &dialog)
void updateGroupStatus(const GroupId &friendPk)