<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][14299] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=14299">14299</a></dd>
<dt>Author</dt> <dd>jmesquita</dd>
<dt>Date</dt> <dd>2009-07-20 01:10:15 -0500 (Mon, 20 Jul 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>New feature: Ability to save console log to disk
New feature: Ability to pastebin.freeswitch.org (bugs detected that still need to be fixed.)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunkcontribjmesquitafsguifsguipro">freeswitch/trunk/contrib/jmesquita/fsgui/fsgui.pro</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguiresourcesfs_guiui">freeswitch/trunk/contrib/jmesquita/fsgui/resources/fs_gui.ui</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcconsolepagecpp">freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcfs_guicpp">freeswitch/trunk/contrib/jmesquita/fsgui/src/fs_gui.cpp</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcincludeconsolepageh">freeswitch/trunk/contrib/jmesquita/fsgui/src/include/consolepage.h</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcincludefs_guih">freeswitch/trunk/contrib/jmesquita/fsgui/src/include/fs_gui.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#freeswitchtrunkcontribjmesquitafsguiresourcespastebindialogui">freeswitch/trunk/contrib/jmesquita/fsgui/resources/pastebindialog.ui</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcincludepastebindialogh">freeswitch/trunk/contrib/jmesquita/fsgui/src/include/pastebindialog.h</a></li>
<li><a href="#freeswitchtrunkcontribjmesquitafsguisrcpastebindialogcpp">freeswitch/trunk/contrib/jmesquita/fsgui/src/pastebindialog.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkcontribjmesquitafsguifsguipro"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/fsgui.pro (14298 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/fsgui.pro        2009-07-19 01:36:33 UTC (rev 14298)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/fsgui.pro        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -1,5 +1,6 @@
</span><span class="cx"> DESTDIR = ./bin/
</span><span class="cx"> message(The project will be installed in $$DESTDIR)
</span><ins>+QT += network
</ins><span class="cx"> TARGET = fs_gui
</span><span class="cx"> TEMPLATE = app
</span><span class="cx"> MOC_DIR = ./build/
</span><span class="lines">@@ -11,7 +12,8 @@
</span><span class="cx">     src/esl_connection.cpp \
</span><span class="cx">     src/consolepage.cpp \
</span><span class="cx">     src/preferencesdialog.cpp \
</span><del>-    src/completers.cpp
</del><ins>+    src/completers.cpp \
+    src/pastebindialog.cpp
</ins><span class="cx"> INCLUDEPATH += ../../../libs/esl/src/include \
</span><span class="cx">     src/include
</span><span class="cx"> HEADERS += src/include/fs_gui.h \
</span><span class="lines">@@ -20,11 +22,13 @@
</span><span class="cx">     src/include/consolepage.h \
</span><span class="cx">     src/include/global_defines.h \
</span><span class="cx">     src/include/preferencesdialog.h \
</span><del>-    src/include/completers.h
</del><ins>+    src/include/completers.h \
+    src/include/pastebindialog.h
</ins><span class="cx"> FORMS += resources/fs_gui.ui \
</span><span class="cx">     resources/server_manager.ui \
</span><span class="cx">     resources/consolepage.ui \
</span><del>-    resources/preferencesdialog.ui
</del><ins>+    resources/preferencesdialog.ui \
+    resources/pastebindialog.ui
</ins><span class="cx"> LIBS += -L../../../libs/esl \
</span><span class="cx">     -lesl
</span><span class="cx"> RESOURCES += resources/resources.qrc
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguiresourcesfs_guiui"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/resources/fs_gui.ui (14298 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/resources/fs_gui.ui        2009-07-19 01:36:33 UTC (rev 14298)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/resources/fs_gui.ui        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -59,6 +59,8 @@
</span><span class="cx">     &lt;addaction name=&quot;actionConnect&quot;/&gt;
</span><span class="cx">     &lt;addaction name=&quot;actionDisconnect&quot;/&gt;
</span><span class="cx">     &lt;addaction name=&quot;separator&quot;/&gt;
</span><ins>+    &lt;addaction name=&quot;actionSaveLog&quot;/&gt;
+    &lt;addaction name=&quot;separator&quot;/&gt;
</ins><span class="cx">     &lt;addaction name=&quot;actionQuit&quot;/&gt;
</span><span class="cx">    &lt;/widget&gt;
</span><span class="cx">    &lt;widget class=&quot;QMenu&quot; name=&quot;menuHelp&quot;&gt;
</span><span class="lines">@@ -75,8 +77,15 @@
</span><span class="cx">     &lt;/property&gt;
</span><span class="cx">     &lt;addaction name=&quot;actionPreferences&quot;/&gt;
</span><span class="cx">    &lt;/widget&gt;
</span><ins>+   &lt;widget class=&quot;QMenu&quot; name=&quot;menu_Tools&quot;&gt;
+    &lt;property name=&quot;title&quot;&gt;
+     &lt;string&gt;&amp;amp;Tools&lt;/string&gt;
+    &lt;/property&gt;
+    &lt;addaction name=&quot;actionPastebinLog&quot;/&gt;
+   &lt;/widget&gt;
</ins><span class="cx">    &lt;addaction name=&quot;menuFile&quot;/&gt;
</span><span class="cx">    &lt;addaction name=&quot;menuEdit&quot;/&gt;
</span><ins>+   &lt;addaction name=&quot;menu_Tools&quot;/&gt;
</ins><span class="cx">    &lt;addaction name=&quot;menuHelp&quot;/&gt;
</span><span class="cx">   &lt;/widget&gt;
</span><span class="cx">   &lt;widget class=&quot;QStatusBar&quot; name=&quot;statusBar&quot;&gt;
</span><span class="lines">@@ -95,6 +104,9 @@
</span><span class="cx">    &lt;/property&gt;
</span><span class="cx">   &lt;/action&gt;
</span><span class="cx">   &lt;action name=&quot;actionConnect&quot;&gt;
</span><ins>+   &lt;property name=&quot;enabled&quot;&gt;
+    &lt;bool&gt;false&lt;/bool&gt;
+   &lt;/property&gt;
</ins><span class="cx">    &lt;property name=&quot;text&quot;&gt;
</span><span class="cx">     &lt;string&gt;&amp;amp;Connect&lt;/string&gt;
</span><span class="cx">    &lt;/property&gt;
</span><span class="lines">@@ -131,11 +143,31 @@
</span><span class="cx">     &lt;string&gt;Register to &amp;amp;ClueCon&lt;/string&gt;
</span><span class="cx">    &lt;/property&gt;
</span><span class="cx">   &lt;/action&gt;
</span><ins>+  &lt;action name=&quot;actionSaveLog&quot;&gt;
+   &lt;property name=&quot;enabled&quot;&gt;
+    &lt;bool&gt;false&lt;/bool&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;text&quot;&gt;
+    &lt;string&gt;&amp;amp;Save Log&lt;/string&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;shortcut&quot;&gt;
+    &lt;string&gt;Ctrl+S&lt;/string&gt;
+   &lt;/property&gt;
+  &lt;/action&gt;
+  &lt;action name=&quot;actionPastebinLog&quot;&gt;
+   &lt;property name=&quot;enabled&quot;&gt;
+    &lt;bool&gt;false&lt;/bool&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;text&quot;&gt;
+    &lt;string&gt;&amp;amp;Pastebin Log&lt;/string&gt;
+   &lt;/property&gt;
+   &lt;property name=&quot;shortcut&quot;&gt;
+    &lt;string&gt;Ctrl+Y&lt;/string&gt;
+   &lt;/property&gt;
+  &lt;/action&gt;
</ins><span class="cx">  &lt;/widget&gt;
</span><span class="cx">  &lt;layoutdefault spacing=&quot;6&quot; margin=&quot;11&quot;/&gt;
</span><del>- &lt;resources&gt;
-  &lt;include location=&quot;resources.qrc&quot;/&gt;
- &lt;/resources&gt;
</del><ins>+ &lt;resources/&gt;
</ins><span class="cx">  &lt;connections&gt;
</span><span class="cx">   &lt;connection&gt;
</span><span class="cx">    &lt;sender&gt;actionQuit&lt;/sender&gt;
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguiresourcespastebindialogui"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/contrib/jmesquita/fsgui/resources/pastebindialog.ui (0 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/resources/pastebindialog.ui                                (rev 0)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/resources/pastebindialog.ui        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -0,0 +1,233 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;ui version=&quot;4.0&quot;&gt;
+ &lt;class&gt;pastebinDialog&lt;/class&gt;
+ &lt;widget class=&quot;QDialog&quot; name=&quot;pastebinDialog&quot;&gt;
+  &lt;property name=&quot;geometry&quot;&gt;
+   &lt;rect&gt;
+    &lt;x&gt;0&lt;/x&gt;
+    &lt;y&gt;0&lt;/y&gt;
+    &lt;width&gt;352&lt;/width&gt;
+    &lt;height&gt;310&lt;/height&gt;
+   &lt;/rect&gt;
+  &lt;/property&gt;
+  &lt;property name=&quot;windowTitle&quot;&gt;
+   &lt;string&gt;Dialog&lt;/string&gt;
+  &lt;/property&gt;
+  &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_3&quot;&gt;
+   &lt;item&gt;
+    &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox&quot;&gt;
+     &lt;property name=&quot;title&quot;&gt;
+      &lt;string&gt;Pastebin&lt;/string&gt;
+     &lt;/property&gt;
+     &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout&quot;&gt;
+      &lt;item&gt;
+       &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_4&quot;&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLabel&quot; name=&quot;label&quot;&gt;
+          &lt;property name=&quot;minimumSize&quot;&gt;
+           &lt;size&gt;
+            &lt;width&gt;80&lt;/width&gt;
+            &lt;height&gt;0&lt;/height&gt;
+           &lt;/size&gt;
+          &lt;/property&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Url&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLineEdit&quot; name=&quot;lineURL&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;pastebin.freeswitch.org&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+       &lt;/layout&gt;
+      &lt;/item&gt;
+      &lt;item&gt;
+       &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_3&quot;&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLabel&quot; name=&quot;label_2&quot;&gt;
+          &lt;property name=&quot;minimumSize&quot;&gt;
+           &lt;size&gt;
+            &lt;width&gt;80&lt;/width&gt;
+            &lt;height&gt;0&lt;/height&gt;
+           &lt;/size&gt;
+          &lt;/property&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Port&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLineEdit&quot; name=&quot;linePort&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;80&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+       &lt;/layout&gt;
+      &lt;/item&gt;
+      &lt;item&gt;
+       &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout&quot;&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLabel&quot; name=&quot;label_3&quot;&gt;
+          &lt;property name=&quot;minimumSize&quot;&gt;
+           &lt;size&gt;
+            &lt;width&gt;80&lt;/width&gt;
+            &lt;height&gt;0&lt;/height&gt;
+           &lt;/size&gt;
+          &lt;/property&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Username&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLineEdit&quot; name=&quot;lineUsername&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;pastebin&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+       &lt;/layout&gt;
+      &lt;/item&gt;
+      &lt;item&gt;
+       &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_2&quot;&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLabel&quot; name=&quot;label_4&quot;&gt;
+          &lt;property name=&quot;minimumSize&quot;&gt;
+           &lt;size&gt;
+            &lt;width&gt;80&lt;/width&gt;
+            &lt;height&gt;0&lt;/height&gt;
+           &lt;/size&gt;
+          &lt;/property&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Password&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLineEdit&quot; name=&quot;linePassword&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;freeswitch&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+       &lt;/layout&gt;
+      &lt;/item&gt;
+     &lt;/layout&gt;
+    &lt;/widget&gt;
+   &lt;/item&gt;
+   &lt;item&gt;
+    &lt;widget class=&quot;QGroupBox&quot; name=&quot;groupBox_2&quot;&gt;
+     &lt;property name=&quot;title&quot;&gt;
+      &lt;string&gt;Options&lt;/string&gt;
+     &lt;/property&gt;
+     &lt;layout class=&quot;QVBoxLayout&quot; name=&quot;verticalLayout_2&quot;&gt;
+      &lt;item&gt;
+       &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_5&quot;&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLabel&quot; name=&quot;label_5&quot;&gt;
+          &lt;property name=&quot;minimumSize&quot;&gt;
+           &lt;size&gt;
+            &lt;width&gt;80&lt;/width&gt;
+            &lt;height&gt;0&lt;/height&gt;
+           &lt;/size&gt;
+          &lt;/property&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Your name&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLineEdit&quot; name=&quot;lineName&quot;/&gt;
+        &lt;/item&gt;
+       &lt;/layout&gt;
+      &lt;/item&gt;
+      &lt;item&gt;
+       &lt;layout class=&quot;QHBoxLayout&quot; name=&quot;horizontalLayout_6&quot;&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QLabel&quot; name=&quot;label_6&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Paste duration&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QRadioButton&quot; name=&quot;radioDay&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;A day&lt;/string&gt;
+          &lt;/property&gt;
+          &lt;property name=&quot;checked&quot;&gt;
+           &lt;bool&gt;true&lt;/bool&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QRadioButton&quot; name=&quot;radioMonth&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;A month&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+        &lt;item&gt;
+         &lt;widget class=&quot;QRadioButton&quot; name=&quot;radioForever&quot;&gt;
+          &lt;property name=&quot;text&quot;&gt;
+           &lt;string&gt;Forever&lt;/string&gt;
+          &lt;/property&gt;
+         &lt;/widget&gt;
+        &lt;/item&gt;
+       &lt;/layout&gt;
+      &lt;/item&gt;
+     &lt;/layout&gt;
+    &lt;/widget&gt;
+   &lt;/item&gt;
+   &lt;item&gt;
+    &lt;widget class=&quot;QDialogButtonBox&quot; name=&quot;buttonBox&quot;&gt;
+     &lt;property name=&quot;orientation&quot;&gt;
+      &lt;enum&gt;Qt::Horizontal&lt;/enum&gt;
+     &lt;/property&gt;
+     &lt;property name=&quot;standardButtons&quot;&gt;
+      &lt;set&gt;QDialogButtonBox::Cancel|QDialogButtonBox::Ok&lt;/set&gt;
+     &lt;/property&gt;
+    &lt;/widget&gt;
+   &lt;/item&gt;
+  &lt;/layout&gt;
+ &lt;/widget&gt;
+ &lt;resources/&gt;
+ &lt;connections&gt;
+  &lt;connection&gt;
+   &lt;sender&gt;buttonBox&lt;/sender&gt;
+   &lt;signal&gt;accepted()&lt;/signal&gt;
+   &lt;receiver&gt;pastebinDialog&lt;/receiver&gt;
+   &lt;slot&gt;accept()&lt;/slot&gt;
+   &lt;hints&gt;
+    &lt;hint type=&quot;sourcelabel&quot;&gt;
+     &lt;x&gt;248&lt;/x&gt;
+     &lt;y&gt;254&lt;/y&gt;
+    &lt;/hint&gt;
+    &lt;hint type=&quot;destinationlabel&quot;&gt;
+     &lt;x&gt;157&lt;/x&gt;
+     &lt;y&gt;274&lt;/y&gt;
+    &lt;/hint&gt;
+   &lt;/hints&gt;
+  &lt;/connection&gt;
+  &lt;connection&gt;
+   &lt;sender&gt;buttonBox&lt;/sender&gt;
+   &lt;signal&gt;rejected()&lt;/signal&gt;
+   &lt;receiver&gt;pastebinDialog&lt;/receiver&gt;
+   &lt;slot&gt;reject()&lt;/slot&gt;
+   &lt;hints&gt;
+    &lt;hint type=&quot;sourcelabel&quot;&gt;
+     &lt;x&gt;316&lt;/x&gt;
+     &lt;y&gt;260&lt;/y&gt;
+    &lt;/hint&gt;
+    &lt;hint type=&quot;destinationlabel&quot;&gt;
+     &lt;x&gt;286&lt;/x&gt;
+     &lt;y&gt;274&lt;/y&gt;
+    &lt;/hint&gt;
+   &lt;/hints&gt;
+  &lt;/connection&gt;
+ &lt;/connections&gt;
+&lt;/ui&gt;
</ins></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcconsolepagecpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp (14298 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp        2009-07-19 01:36:33 UTC (rev 14298)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/consolepage.cpp        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -87,6 +87,10 @@
</span><span class="cx">             eslConnection-&gt;disconnect();        
</span><span class="cx">         }
</span><span class="cx"> }
</span><ins>+QString consolePage::getConsoleText()
+{
+    return m_ui-&gt;textConsole-&gt;toPlainText();
+}
</ins><span class="cx"> void consolePage::doConnect()
</span><span class="cx"> {
</span><span class="cx">     eslConnection-&gt;doConnect();
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcfs_guicpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/fs_gui.cpp (14298 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/fs_gui.cpp        2009-07-19 01:36:33 UTC (rev 14298)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/fs_gui.cpp        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -39,12 +39,15 @@
</span><span class="cx"> #include &quot;fs_gui.h&quot;
</span><span class="cx"> #include &quot;ui_fs_gui.h&quot;
</span><span class="cx"> #include &quot;consolepage.h&quot;
</span><ins>+#include &lt;QtNetwork&gt;
</ins><span class="cx"> 
</span><span class="cx"> Cfsgui::Cfsgui(QWidget *parent) :
</span><span class="cx">     QMainWindow(parent),
</span><span class="cx">     m_ui(new Ui::Cfsgui),
</span><span class="cx">     serverDialog(NULL),
</span><del>-    prefDialog(NULL)
</del><ins>+    prefDialog(NULL),
+    fileDialog(NULL),
+    pasteDialog(NULL)
</ins><span class="cx"> {
</span><span class="cx"> 
</span><span class="cx">     m_ui-&gt;setupUi(this);
</span><span class="lines">@@ -59,10 +62,15 @@
</span><span class="cx">             this, SLOT(doConnect()));
</span><span class="cx">     connect(m_ui-&gt;actionDisconnect, SIGNAL(triggered()),
</span><span class="cx">             this, SLOT(doDisconnect()));
</span><ins>+    connect(m_ui-&gt;actionSaveLog, SIGNAL(triggered()),
+            this, SLOT(saveLog()));
+    connect(m_ui-&gt;actionPastebinLog, SIGNAL(triggered()),
+            this, SLOT(pastebinLog()));
</ins><span class="cx">     connect(m_ui-&gt;actionAbout, SIGNAL(triggered()),
</span><span class="cx">             this, SLOT(showAbout()));
</span><span class="cx">     connect(m_ui-&gt;actionRegisterClueCon, SIGNAL(triggered()),
</span><span class="cx">             this, SLOT(registerClueCon()));
</span><ins>+
</ins><span class="cx">     connect(m_ui-&gt;tabWidget, SIGNAL(tabCloseRequested(int)),
</span><span class="cx">             this, SLOT(closeTab(int)));
</span><span class="cx">     connect(m_ui-&gt;tabWidget, SIGNAL(currentChanged(int)),
</span><span class="lines">@@ -160,11 +168,15 @@
</span><span class="cx"> {
</span><span class="cx">     m_ui-&gt;actionConnect-&gt;setDisabled(true);
</span><span class="cx">     m_ui-&gt;actionDisconnect-&gt;setEnabled(true);
</span><ins>+    m_ui-&gt;actionSaveLog-&gt;setEnabled(true);
+    m_ui-&gt;actionPastebinLog-&gt;setEnabled(true);
</ins><span class="cx"> }
</span><span class="cx"> void Cfsgui::gotDisconnected()
</span><span class="cx"> {
</span><span class="cx">     m_ui-&gt;actionConnect-&gt;setEnabled(true);
</span><span class="cx">     m_ui-&gt;actionDisconnect-&gt;setDisabled(true);
</span><ins>+    m_ui-&gt;actionSaveLog-&gt;setDisabled(true);
+    m_ui-&gt;actionPastebinLog-&gt;setDisabled(true);
</ins><span class="cx"> }
</span><span class="cx"> void Cfsgui::backgroundColorChanged()
</span><span class="cx"> {
</span><span class="lines">@@ -174,6 +186,43 @@
</span><span class="cx">         tab-&gt;setConsoleBackground();
</span><span class="cx">     }
</span><span class="cx"> }
</span><ins>+void Cfsgui::saveLog()
+{
+    consolePage *tab = static_cast&lt;consolePage *&gt;(m_ui-&gt;tabWidget-&gt;widget(m_ui-&gt;tabWidget-&gt;currentIndex()));
+    if (tab)
+    {
+        if(!fileDialog)
+        {
+            fileDialog = new QFileDialog(this);
+        }
+
+        fileDialog-&gt;setAcceptMode(QFileDialog::AcceptSave);
+
+        if (fileDialog-&gt;exec())
+        {
+            QStringList fileNames = fileDialog-&gt;selectedFiles();
+            QFile file(fileNames[0]);
+            file.open(QIODevice::WriteOnly|QIODevice::Truncate|QIODevice::Text);
+            file.write(tab-&gt;getConsoleText().toAscii());
+            file.close();
+        }
+    }
+}
+void Cfsgui::pastebinLog()
+{
+    consolePage *tab = static_cast&lt;consolePage *&gt;(m_ui-&gt;tabWidget-&gt;widget(m_ui-&gt;tabWidget-&gt;currentIndex()));
+    if (tab)
+    {
+        if (!pasteDialog)
+        {
+            pasteDialog = new pastebinDialog(this);
+        }
+        pasteDialog-&gt;setText(tab-&gt;getConsoleText());
+        pasteDialog-&gt;show();
+        pasteDialog-&gt;raise();
+        pasteDialog-&gt;activateWindow();
+    }
+}
</ins><span class="cx"> void Cfsgui::registerClueCon()
</span><span class="cx"> {
</span><span class="cx">     QDesktopServices::openUrl(QUrl(&quot;http://www.cluecon.com/user/register&quot;));
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcincludeconsolepageh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/include/consolepage.h (14298 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/include/consolepage.h        2009-07-19 01:36:33 UTC (rev 14298)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/include/consolepage.h        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -25,6 +25,7 @@
</span><span class="cx">     int isConnected();
</span><span class="cx">     void doConnect();
</span><span class="cx">     void doDisconnect();
</span><ins>+    QString getConsoleText();
</ins><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     virtual void changeEvent(QEvent *e);
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcincludefs_guih"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/jmesquita/fsgui/src/include/fs_gui.h (14298 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/include/fs_gui.h        2009-07-19 01:36:33 UTC (rev 14298)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/include/fs_gui.h        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -42,12 +42,12 @@
</span><span class="cx"> #include &lt;QtGui&gt;
</span><span class="cx"> #include &quot;server_manager.h&quot;
</span><span class="cx"> #include &quot;preferencesdialog.h&quot;
</span><ins>+#include &quot;pastebindialog.h&quot;
</ins><span class="cx"> 
</span><span class="cx"> namespace Ui {
</span><span class="cx">     class Cfsgui;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> class Cfsgui : public QMainWindow {
</span><span class="cx">     Q_OBJECT
</span><span class="cx">     Q_DISABLE_COPY(Cfsgui)
</span><span class="lines">@@ -66,6 +66,8 @@
</span><span class="cx">     void closeTab(int);
</span><span class="cx">     void changeTab(int);
</span><span class="cx">     void backgroundColorChanged();
</span><ins>+    void saveLog();
+    void pastebinLog();
</ins><span class="cx">     void registerClueCon();
</span><span class="cx">     void doConnect();
</span><span class="cx">     void doDisconnect();
</span><span class="lines">@@ -76,6 +78,8 @@
</span><span class="cx">     Ui::Cfsgui *m_ui;
</span><span class="cx">     CserverManager *serverDialog;
</span><span class="cx">     preferencesDialog *prefDialog;
</span><ins>+    QFileDialog *fileDialog;
+    pastebinDialog *pasteDialog;
</ins><span class="cx">     void saveWindowSettings();
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcincludepastebindialogh"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/contrib/jmesquita/fsgui/src/include/pastebindialog.h (0 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/include/pastebindialog.h                                (rev 0)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/include/pastebindialog.h        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+#ifndef PASTEBINDIALOG_H
+#define PASTEBINDIALOG_H
+
+#include &lt;QtGui/QDialog&gt;
+
+namespace Ui {
+    class pastebinDialog;
+}
+
+class QHttp;
+class QString;
+
+class pastebinDialog : public QDialog {
+    Q_OBJECT
+    Q_DISABLE_COPY(pastebinDialog)
+public:
+    explicit pastebinDialog(QWidget *parent = 0);
+    virtual ~pastebinDialog();
+    void setText(QString);
+
+protected:
+    virtual void changeEvent(QEvent *e);
+
+private:
+    Ui::pastebinDialog *m_ui;
+    QString text;
+    QHttp * pastebinHttp;
+
+private slots:
+    void pastebinFinished(int, bool);
+    void pasteIt();
+};
+
+#endif // PASTEBINDIALOG_H
</ins></span></pre></div>
<a id="freeswitchtrunkcontribjmesquitafsguisrcpastebindialogcpp"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/contrib/jmesquita/fsgui/src/pastebindialog.cpp (0 => 14299)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/jmesquita/fsgui/src/pastebindialog.cpp                                (rev 0)
+++ freeswitch/trunk/contrib/jmesquita/fsgui/src/pastebindialog.cpp        2009-07-20 06:10:15 UTC (rev 14299)
</span><span class="lines">@@ -0,0 +1,79 @@
</span><ins>+#include &lt;QtGui&gt;
+#include &lt;QtNetwork&gt;
+#include &quot;pastebindialog.h&quot;
+#include &quot;ui_pastebindialog.h&quot;
+
+pastebinDialog::pastebinDialog(QWidget *parent) :
+    QDialog(parent),
+    m_ui(new Ui::pastebinDialog)
+{
+    m_ui-&gt;setupUi(this);
+
+    connect(this, SIGNAL(accepted()),
+            this, SLOT(pasteIt()));
+}
+
+pastebinDialog::~pastebinDialog()
+{
+    delete m_ui;
+}
+
+void pastebinDialog::changeEvent(QEvent *e)
+{
+    QDialog::changeEvent(e);
+    switch (e-&gt;type()) {
+    case QEvent::LanguageChange:
+        m_ui-&gt;retranslateUi(this);
+        break;
+    default:
+        break;
+    }
+}
+void pastebinDialog::pastebinFinished(int req, bool isError)
+{
+    QMessageBox msgBox;
+    if (isError)
+    {
+        msgBox.setText(QString(&quot;Error on pastebin: %1&quot;).arg(pastebinHttp-&gt;errorString()));
+        msgBox.setIcon(QMessageBox::Critical);
+        msgBox.exec();
+    }
+    else
+    {
+        msgBox.setText(&quot;Pastebin correctly pasted!&quot;);
+        msgBox.setIcon(QMessageBox::Information);
+        msgBox.exec();
+    }
+}
+void pastebinDialog::pasteIt()
+{
+
+    pastebinHttp = new QHttp(this);
+
+    /* TODO: Make a progress thing? */
+    connect(pastebinHttp, SIGNAL(requestFinished(int,bool)),
+            this, SLOT(pastebinFinished(int,bool)));
+
+    QHttpRequestHeader header( &quot;POST&quot;,  &quot;/pastebin.php&quot;) ;
+    header.setValue( &quot;Host&quot;, &quot;pastebin.freeswitch.org&quot; ) ;
+    header.setContentType( &quot;application/x-www-form-urlencoded&quot; ) ;
+
+    pastebinHttp-&gt;setHost(m_ui-&gt;lineURL-&gt;text(), QHttp::ConnectionModeHttp, m_ui-&gt;linePort-&gt;text().toInt());
+    pastebinHttp-&gt;setUser(m_ui-&gt;lineUsername-&gt;text(), m_ui-&gt;linePassword-&gt;text());
+    header.setValue( &quot;User-Agent&quot;, &quot;FsGUI&quot;);
+    QString params(&quot;parent_pid=&amp;format=fslog&quot;);
+    params.append(&quot;&amp;code2=%1&quot;).arg(text);
+    if (m_ui-&gt;lineName-&gt;text().trimmed() == &quot;&quot;)
+        params.append(&quot;&amp;poster=%1&amp;paste=Send&amp;remember=0&quot;).arg(tr(&quot;Anonymous&quot;));
+    if (m_ui-&gt;radioDay-&gt;isChecked())
+        params.append(&quot;&amp;expiry=%1&quot;).arg(&quot;d&quot;);
+    if (m_ui-&gt;radioMonth-&gt;isChecked())
+        params.append(&quot;&amp;expiry=%1&quot;).arg(&quot;m&quot;);
+    if (m_ui-&gt;radioForever-&gt;isChecked())
+        params.append(&quot;&amp;expiry=%1&quot;).arg(&quot;f&quot;);
+    pastebinHttp-&gt;request(header, params.toUtf8());
+}
+void pastebinDialog::setText(QString consoleText)
+{
+    text = consoleText;
+}
</ins></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>