It might be good to add:
```
void FolderItem::updateUnreadCount() { unreadCount = folderUnreadCount(folderId, folderType, messageKey); }
```
to prevent the possibility of getting these parameters wrong.