[ekiga] loudmouth(XMPP): Made the port editable in the account edition form



commit 4c12e492b0988fe65077fea8af0f7ca12bdec495
Author: Julien Puydt <julien puydt laposte net>
Date:   Tue Jun 5 14:44:36 2012 +0200

    loudmouth(XMPP): Made the port editable in the account edition form

 plugins/loudmouth/loudmouth-account.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/loudmouth/loudmouth-account.cpp b/plugins/loudmouth/loudmouth-account.cpp
index e0efdb4..47fd5ed 100644
--- a/plugins/loudmouth/loudmouth-account.cpp
+++ b/plugins/loudmouth/loudmouth-account.cpp
@@ -346,6 +346,10 @@ LM::Account::edit ()
   request->text ("server", _("Server:"), (const char*)xml_str, std::string ());
   xmlFree (xml_str);
 
+  xml_str = xmlGetProp (node, BAD_CAST "port");
+  request->text ("port", _("Port:"), (const char*)xml_str, std::string ());
+  xmlFree (xml_str);
+
   xml_str = xmlGetProp (node, BAD_CAST "resource");
   request->text ("resource", _("Resource:"), (const char*)xml_str, std::string ());
   xmlFree (xml_str);
@@ -382,6 +386,7 @@ LM::Account::on_edit_form_submitted (bool submitted,
   std::string name = result.text ("name");
   std::string user = result.text ("user");
   std::string server = result.text ("server");
+  std::string port = result.text ("port");
   std::string resource = result.text ("resource");
   std::string password = result.private_text ("password");
   bool enable_on_startup = result.boolean ("enabled");
@@ -389,6 +394,7 @@ LM::Account::on_edit_form_submitted (bool submitted,
   xmlSetProp (node, BAD_CAST "name", BAD_CAST name.c_str ());
   xmlSetProp (node, BAD_CAST "user", BAD_CAST user.c_str ());
   xmlSetProp (node, BAD_CAST "server", BAD_CAST server.c_str ());
+  xmlSetProp (node, BAD_CAST "port", BAD_CAST port.c_str ());
   xmlSetProp (node, BAD_CAST "resource", BAD_CAST resource.c_str ());
   xmlSetProp (node, BAD_CAST "password", BAD_CAST password.c_str ());
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]