void NotifyQt::notifyPeerHasNewAvatar(std::string peer_id) { #ifdef NOTIFY_DEBUG std::cerr << "notifyQt: notification of new avatar." << std::endl ; #endif emit peerHasNewAvatar(QString::fromStdString(peer_id)) ; }
void NotifyQt::notifyPeerHasNewAvatar(std::string peer_id) { { QMutexLocker m(&_mutex) ; if(!_enabled) return ; } #ifdef NOTIFY_DEBUG std::cerr << "notifyQt: notification of new avatar." << std::endl ; #endif emit peerHasNewAvatar(QString::fromStdString(peer_id)) ; }