-<a name="l00030"></a><a class="code" href="class_urpo_process.html#ace05eb4301a27d8c20edfc85d28ebdcf">00030</a> <a class="code" href="class_urpo_process.html#ace05eb4301a27d8c20edfc85d28ebdcf">UrpoProcess::UrpoProcess</a>(QObject* parent) :
-<a name="l00031"></a>00031 QObject(parent)
-<a name="l00032"></a>00032 {
-<a name="l00033"></a>00033 status_ = <a class="code" href="class_urpo_process.html#a1be26b6dc5a227f88d8fa7be477578a2ac5894b205772be5c5d2cab467dc4c90d" title="Ready for connecting.">Ready</a>;
-<a name="l00034"></a>00034 error_ = <a class="code" href="class_urpo_process.html#a5b17cbee3ba24de244bd011aabac21c9a26e2a92c998579ae82dad85a3d848a7f" title="No errors happends.">NoError</a>;
-<a name="l00035"></a>00035 <a class="code" href="class_urpo_process.html#af3cd19eb0af2b51d6740471a344cbb69" title="Set timeout.">setTimeout</a>( DEFAULTTIMEOUT );
-<a name="l00036"></a>00036 }
-<a name="l00037"></a>00037
-<a name="l00038"></a><a class="code" href="class_urpo_process.html#ac4381636ee9e977dfac4d8fe53ddfeaa">00038</a> <span class="keywordtype">void</span> <a class="code" href="class_urpo_process.html#ac4381636ee9e977dfac4d8fe53ddfeaa" title="Cancel process.">UrpoProcess::terminate</a>()
-<a name="l00039"></a>00039 {
-<a name="l00040"></a>00040 fail(<a class="code" href="class_urpo_process.html#a5b17cbee3ba24de244bd011aabac21c9a6284f1526b7edf5014aabba519d584ff" title="User cancelled operation.">Cancelled</a>);
-<a name="l00041"></a>00041 }
-<a name="l00042"></a>00042
-<a name="l00043"></a><a class="code" href="class_urpo_process.html#af1d8cbb3465d62ab7541aac2fef7f963">00043</a> QStringList <a class="code" href="class_urpo_process.html#af1d8cbb3465d62ab7541aac2fef7f963" title="Get output of command.">UrpoProcess::getOutput</a>()
-<a name="l00044"></a>00044 {
-<a name="l00045"></a>00045 <span class="keywordflow">return</span> output_;
-<a name="l00046"></a>00046 }
-<a name="l00047"></a>00047
-<a name="l00048"></a>00048 <span class="keywordtype">void</span> UrpoProcess::fail(UrpoError error)
-<a name="l00049"></a>00049 {
-<a name="l00050"></a>00050 status_=<a class="code" href="class_urpo_process.html#a1be26b6dc5a227f88d8fa7be477578a2a5e0b84210eb20245a9f3a925297088e2" title="Command failed.">Failed</a>;
-<a name="l00051"></a>00051 error_=error;
-<a name="l00052"></a>00052 qprocess_.terminate();
-<a name="l00053"></a>00053 emit <a class="code" href="class_urpo_process.html#ab1c5d2e4c2bda8d34700b478fd5af1ad" title="Process finished (successed of failed).">finished</a>(<span class="keyword">false</span>);
-<a name="l00054"></a>00054 <a class="code" href="class_urpo_process.html#a0d75a2951e7add2e70c02cd8bf56de3e" title="Send debug message.">sendDebugMessage</a>( <a class="code" href="class_urpo_process.html#a5a400d2abb550076c778a6030293e764" title="Error of process (in string).">getErrorString</a>() );
-<a name="l00055"></a>00055 }
-<a name="l00056"></a>00056
-<a name="l00057"></a>00057
-<a name="l00058"></a><a class="code" href="class_urpo_process.html#ab8865ef6fcb92b3fa9228474654065da">00058</a> <span class="keywordtype">void</span> <a class="code" href="class_urpo_process.html#ab8865ef6fcb92b3fa9228474654065da" title="Timeout during connecting.">UrpoProcess::timeout</a>()
-<a name="l00059"></a>00059 {
-<a name="l00060"></a>00060 <span class="comment">// If process is still running, it means timeout!</span>
-<a name="l00061"></a>00061 <span class="keywordflow">if</span>( status_ == <a class="code" href="class_urpo_process.html#a1be26b6dc5a227f88d8fa7be477578a2a82cb6930485e0c3b85e341346b2c924d" title="Command running.">Running</a>)
-<a name="l00062"></a>00062 fail(<a class="code" href="class_urpo_process.html#a5b17cbee3ba24de244bd011aabac21c9afba71edd7db677a460890436a85e56ce" title="Timed out.">Timeout</a>);
-<a name="l00063"></a>00063 }
-<a name="l00064"></a>00064
-<a name="l00065"></a><a class="code" href="class_urpo_process.html#a1bf2519b81fe6d5074db04f9acd38cb0">00065</a> <span class="keywordtype">void</span> <a class="code" href="class_urpo_process.html#a1bf2519b81fe6d5074db04f9acd38cb0" title="Run command.">UrpoProcess::start</a>(<span class="keyword">const</span> QString &command)
-<a name="l00066"></a>00066 {
-<a name="l00067"></a>00067 <a class="code" href="class_urpo_process.html#a0d75a2951e7add2e70c02cd8bf56de3e" title="Send debug message.">sendDebugMessage</a>(QString(<span class="stringliteral">"[Running command %1 ]"</span>).arg(command));
-<a name="l00068"></a>00068
-<a name="l00069"></a>00069 <span class="comment">// Process finished handling</span>
-<a name="l00070"></a>00070 connect( &qprocess_, SIGNAL(<a class="code" href="class_urpo_process.html#ab1c5d2e4c2bda8d34700b478fd5af1ad" title="Process finished (successed of failed).">finished</a>(<span class="keywordtype">int</span>,QProcess::ExitStatus)), <span class="keyword">this</span>, SLOT(<a class="code" href="class_urpo_process.html#aba6e812efd10c7b466563c171baf7284" title="SSH client has finished.">processFinished</a>(<span class="keywordtype">int</span>,QProcess::ExitStatus)));
-<a name="l00071"></a>00071
-<a name="l00072"></a>00072 <span class="comment">// Timer for timeout</span>
-<a name="l00073"></a>00073 <span class="comment">// use UrpoConnection's default timeout settings</span>
-<a name="l00074"></a>00074 QTimer::singleShot( <a class="code" href="class_urpo_process.html#aaa8de6c9a6635cf2433958a60e4cf87f" title="Return timeout.">getTimeout</a>(), <span class="keyword">this</span>, SLOT(<a class="code" href="class_urpo_process.html#ab8865ef6fcb92b3fa9228474654065da" title="Timeout during connecting.">timeout</a>()) );
-<a name="l00075"></a>00075
-<a name="l00076"></a>00076 <span class="comment">// Start process</span>
-<a name="l00077"></a>00077 status_ = <a class="code" href="class_urpo_process.html#a1be26b6dc5a227f88d8fa7be477578a2a82cb6930485e0c3b85e341346b2c924d" title="Command running.">Running</a>;
-<a name="l00078"></a>00078
-<a name="l00079"></a>00079 qprocess_.start(command);
+<a name="l00030"></a>00030 <span class="keywordtype">int</span> <span class="keyword">const</span> UrpoProcess::DEFAULTTIMEOUT;
+<a name="l00031"></a>00031
+<a name="l00032"></a><a class="code" href="class_urpo_process.html#ace05eb4301a27d8c20edfc85d28ebdcf">00032</a> <a class="code" href="class_urpo_process.html#ace05eb4301a27d8c20edfc85d28ebdcf">UrpoProcess::UrpoProcess</a>(QObject* parent) :
+<a name="l00033"></a>00033 QObject(parent)
+<a name="l00034"></a>00034 {
+<a name="l00035"></a>00035 status_ = <a class="code" href="class_urpo_process.html#a1be26b6dc5a227f88d8fa7be477578a2ac5894b205772be5c5d2cab467dc4c90d" title="Ready for connecting.">Ready</a>;
+<a name="l00036"></a>00036 error_ = <a class="code" href="class_urpo_process.html#a5b17cbee3ba24de244bd011aabac21c9a26e2a92c998579ae82dad85a3d848a7f" title="No errors happends.">NoError</a>;
+<a name="l00037"></a>00037 <a class="code" href="class_urpo_process.html#af3cd19eb0af2b51d6740471a344cbb69" title="Set timeout.">setTimeout</a>( DEFAULTTIMEOUT );
+<a name="l00038"></a>00038 }
+<a name="l00039"></a>00039
+<a name="l00040"></a><a class="code" href="class_urpo_process.html#ac4381636ee9e977dfac4d8fe53ddfeaa">00040</a> <span class="keywordtype">void</span> <a class="code" href="class_urpo_process.html#ac4381636ee9e977dfac4d8fe53ddfeaa" title="Cancel process.">UrpoProcess::terminate</a>()
+<a name="l00041"></a>00041 {
+<a name="l00042"></a>00042 fail(<a class="code" href="class_urpo_process.html#a5b17cbee3ba24de244bd011aabac21c9a6284f1526b7edf5014aabba519d584ff" title="User cancelled operation.">Cancelled</a>);
+<a name="l00043"></a>00043 }
+<a name="l00044"></a>00044
+<a name="l00045"></a><a class="code" href="class_urpo_process.html#af1d8cbb3465d62ab7541aac2fef7f963">00045</a> QStringList <a class="code" href="class_urpo_process.html#af1d8cbb3465d62ab7541aac2fef7f963" title="Get output of command.">UrpoProcess::getOutput</a>()
+<a name="l00046"></a>00046 {
+<a name="l00047"></a>00047 <span class="keywordflow">return</span> output_;
+<a name="l00048"></a>00048 }
+<a name="l00049"></a>00049
+<a name="l00050"></a>00050 <span class="keywordtype">void</span> UrpoProcess::fail(UrpoError error)
+<a name="l00051"></a>00051 {
+<a name="l00052"></a>00052 status_=<a class="code" href="class_urpo_process.html#a1be26b6dc5a227f88d8fa7be477578a2a5e0b84210eb20245a9f3a925297088e2" title="Command failed.">Failed</a>;
+<a name="l00053"></a>00053 error_=error;
+<a name="l00054"></a>00054 qprocess_.terminate();
+<a name="l00055"></a>00055 emit <a class="code" href="class_urpo_process.html#ab1c5d2e4c2bda8d34700b478fd5af1ad" title="Process finished (successed of failed).">finished</a>(<span class="keyword">false</span>);
+<a name="l00056"></a>00056 <a class="code" href="class_urpo_process.html#a0d75a2951e7add2e70c02cd8bf56de3e" title="Send debug message.">sendDebugMessage</a>( <a class="code" href="class_urpo_process.html#a5a400d2abb550076c778a6030293e764" title="Error of process (in string).">getErrorString</a>() );
+<a name="l00057"></a>00057 }
+<a name="l00058"></a>00058
+<a name="l00059"></a>00059
+<a name="l00060"></a><a class="code" href="class_urpo_process.html#ab8865ef6fcb92b3fa9228474654065da">00060</a> <span class="keywordtype">void</span> <a class="code" href="class_urpo_process.html#ab8865ef6fcb92b3fa9228474654065da" title="Timeout during connecting.">UrpoProcess::timeout</a>()
+<a name="l00061"></a>00061 {
+<a name="l00062"></a>00062 <span class="comment">// If process is still running, it means timeout!</span>
+<a name="l00063"></a>00063 <span class="keywordflow">if</span>( status_ == <a class="code" href="class_urpo_process.html#a1be26b6dc5a227f88d8fa7be477578a2a82cb6930485e0c3b85e341346b2c924d" title="Command running.">Running</a>)
+<a name="l00064"></a>00064 fail(<a class="code" href="class_urpo_process.html#a5b17cbee3ba24de244bd011aabac21c9afba71edd7db677a460890436a85e56ce" title="Timed out.">Timeout</a>); <span class="comment">// FAILS !!!</span>
+<a name="l00065"></a>00065 }
+<a name="l00066"></a>00066
+<a name="l00067"></a><a class="code" href="class_urpo_process.html#a1bf2519b81fe6d5074db04f9acd38cb0">00067</a> <span class="keywordtype">void</span> <a class="code" href="class_urpo_process.html#a1bf2519b81fe6d5074db04f9acd38cb0" title="Run command.">UrpoProcess::start</a>(<span class="keyword">const</span> QString &command)
+<a name="l00068"></a>00068 {
+<a name="l00069"></a>00069 <a class="code" href="class_urpo_process.html#a0d75a2951e7add2e70c02cd8bf56de3e" title="Send debug message.">sendDebugMessage</a>(QString(<span class="stringliteral">"[Running command %1 ]"</span>).arg(command));
+<a name="l00070"></a>00070
+<a name="l00071"></a>00071 <span class="comment">// Process finished handling</span>
+<a name="l00072"></a>00072 connect( &qprocess_, SIGNAL(<a class="code" href="class_urpo_process.html#ab1c5d2e4c2bda8d34700b478fd5af1ad" title="Process finished (successed of failed).">finished</a>(<span class="keywordtype">int</span>,QProcess::ExitStatus)), <span class="keyword">this</span>, SLOT(<a class="code" href="class_urpo_process.html#aba6e812efd10c7b466563c171baf7284" title="SSH client has finished.">processFinished</a>(<span class="keywordtype">int</span>,QProcess::ExitStatus)));
+<a name="l00073"></a>00073
+<a name="l00074"></a>00074 <span class="comment">// Timer for timeout</span>
+<a name="l00075"></a>00075 <span class="comment">// use UrpoConnection's default timeout settings</span>
+<a name="l00076"></a>00076 QTimer::singleShot( <a class="code" href="class_urpo_process.html#aaa8de6c9a6635cf2433958a60e4cf87f" title="Return timeout.">getTimeout</a>(), <span class="keyword">this</span>, SLOT(<a class="code" href="class_urpo_process.html#ab8865ef6fcb92b3fa9228474654065da" title="Timeout during connecting.">timeout</a>()) );
+<a name="l00077"></a>00077
+<a name="l00078"></a>00078 <span class="comment">// Start process</span>
+<a name="l00079"></a>00079 status_ = <a class="code" href="class_urpo_process.html#a1be26b6dc5a227f88d8fa7be477578a2a82cb6930485e0c3b85e341346b2c924d" title="Command running.">Running</a>;