Add configurable routing prefix

Change-Id: I649bbd9f4decb8466ae4aeb82e1500f712adb6f6
diff --git a/src/setting-dialog.cpp b/src/setting-dialog.cpp
index 98434ef..ad28625 100644
--- a/src/setting-dialog.cpp
+++ b/src/setting-dialog.cpp
@@ -45,21 +45,32 @@
 }
 
 void
+SettingDialog::onLocalPrefixUpdated(const QString& prefix)
+{
+  m_prefix = prefix;
+  ui->prefixLine->setText(m_prefix);
+}
+
+void
 SettingDialog::onSaveClicked()
 {
   QString identity = ui->identityLine->text();
   QString nick = ui->nickLine->text();
+  QString prefix = ui->prefixLine->text();
 
-  if(identity != m_identity)
-    {
-      m_identity = identity;
-      emit identityUpdated(identity);
-    }
-  if(nick != m_nick)
-    {
-      m_nick = nick;
-      emit nickUpdated(nick);
-    }
+  if(identity != m_identity) {
+    m_identity = identity;
+    emit identityUpdated(identity);
+  }
+  if(nick != m_nick) {
+    m_nick = nick;
+    emit nickUpdated(nick);
+  }
+  if (prefix != m_prefix) {
+    m_prefix = prefix;
+    emit prefixUpdated(prefix);
+  }
+
 
   this->close();
 }