qmlFrontend/hwengine.cpp
branchqmlfrontend
changeset 11430 f88b3948adf3
parent 11424 86c13e5662f1
child 11431 80a9b14bb8d3
--- a/qmlFrontend/hwengine.cpp	Tue Nov 24 20:19:00 2015 +0300
+++ b/qmlFrontend/hwengine.cpp	Wed Nov 25 21:31:30 2015 +0300
@@ -248,6 +248,10 @@
         emit movedToRoom();
         break;
     }
+    case MSG_NICKNAME: {
+        m_myNickname = QString::fromUtf8(msg);
+        break;
+    }
     }
 }
 
@@ -339,6 +343,11 @@
     flibPartRoom(message.toUtf8().constData());
 }
 
+QString HWEngine::myNickname()
+{
+    return m_myNickname;
+}
+
 void HWEngine::setTheme(const QString &theme)
 {
     flibSetTheme(theme.toUtf8().constData());