Instead of function it would be better to have this as property so that bindings work properly (easier for QML engine)
so something like:

property int totalUnreadCount: timeLine.unreadCount + mentions.unreadCount + directMsg.unreadCount