-
Notifications
You must be signed in to change notification settings - Fork 0
/
advancedform_8cpp_source.html
346 lines (344 loc) · 58.6 KB
/
advancedform_8cpp_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>qTox: src/widget/form/settings/advancedform.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">qTox
 <span id="projectnumber">Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_c570470bf3e4213fb57699dd2e921b84.html">widget</a></li><li class="navelem"><a class="el" href="dir_d4c6c5d3ecc64a2ff5e568fa1abd3a57.html">form</a></li><li class="navelem"><a class="el" href="dir_734902d1ba57ea56fdbdf07ecb790fa0.html">settings</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">advancedform.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="advancedform_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Copyright © 2014-2019 by The qTox Project Contributors</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"></span> </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> This file is part of qTox, a Qt-based graphical interface for Tox.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> qTox is libre software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> (at your option) any later version.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"></span> </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> qTox is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> GNU General Public License for more details.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"></span> </div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> along with qTox. If not, see <http://www.gnu.org/licenses/>.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="advancedform_8h.html">advancedform.h</a>"</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "ui_advancedsettings.h"</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <QApplication></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <QClipboard></span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <QDir></span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <QFileDialog></span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <QMessageBox></span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <QProcess></span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "<a class="code" href="status_8h.html">src/model/status.h</a>"</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="profile_8h.html">src/persistence/profile.h</a>"</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="settings_8h.html">src/persistence/settings.h</a>"</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="gui_8h.html">src/widget/gui.h</a>"</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="recursivesignalblocker_8h.html">src/widget/tool/recursivesignalblocker.h</a>"</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="translator_8h.html">src/widget/translator.h</a>"</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a7f126074e85bf2eba15fee811f3d9d09"> 44</a></span> <a class="code" href="classAdvancedForm.html#a7f126074e85bf2eba15fee811f3d9d09">AdvancedForm::AdvancedForm</a>()</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  : <a class="code" href="classGenericForm.html">GenericForm</a>(QPixmap(<span class="stringliteral">":/img/settings/general.png"</span>))</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  , bodyUI(new <a class="code" href="namespaceUi.html">Ui</a>::AdvancedSettings)</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->setupUi(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="comment">// block all child signals during initialization</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">const</span> <a class="code" href="classRecursiveSignalBlocker.html">RecursiveSignalBlocker</a> signalBlocker(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classSettings.html">Settings</a>& s = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>();</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableIPv6->setChecked(s.<a class="code" href="classSettings.html#a4f022919834935eb1d5bd095bdcc9101">getEnableIPv6</a>());</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbMakeToxPortable->setChecked(<a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().getMakeToxPortable());</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->proxyAddr->setText(s.<a class="code" href="classSettings.html#aa0eba5b3bd1aa54c52a95e950f587b5a">getProxyAddr</a>());</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  quint16 port = s.<a class="code" href="classSettings.html#a1fedabbce788fe1a4f29362a90567be6">getProxyPort</a>();</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">if</span> (port > 0) {</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->proxyPort->setValue(port);</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">int</span> index = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(s.<a class="code" href="classSettings.html#a733ea826935339156196917570941db5">getProxyType</a>());</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->proxyType->setCurrentIndex(index);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="classAdvancedForm.html#a04651f510a708e6c1566fe768ad973ad">on_proxyType_currentIndexChanged</a>(index);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> udpEnabled = !s.<a class="code" href="classSettings.html#a7c8c81aa265f65fcfdde03f8e6db8cc0">getForceTCP</a>() && (s.<a class="code" href="classSettings.html#a733ea826935339156196917570941db5">getProxyType</a>() == <a class="code" href="classICoreSettings.html#ac44f874b1930188f42f949d437a90359af2033dd2729026979d8a606076014580">Settings::ProxyType::ptNone</a>);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableUDP->setChecked(udpEnabled);</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableLanDiscovery->setChecked(s.<a class="code" href="classSettings.html#a6ffefa70731c8b1e27c2731d1ef4e8c3">getEnableLanDiscovery</a>() && udpEnabled);</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableLanDiscovery->setEnabled(udpEnabled);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  QString warningBody = tr(<span class="stringliteral">"Unless you %1 know what you are doing, "</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="stringliteral">"please do %2 change anything here. Changes "</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="stringliteral">"made here may lead to problems with qTox, and even "</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="stringliteral">"to loss of your data, e.g. history."</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="stringliteral">"%3"</span>)</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  .arg(QString(<span class="stringliteral">"<b>%1</b>"</span>).arg(tr(<span class="stringliteral">"really"</span>)))</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  .arg(QString(<span class="stringliteral">"<b>%1</b>"</span>).arg(tr(<span class="stringliteral">"not"</span>)))</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  .arg(QString(<span class="stringliteral">"<p>%1</p>"</span>).arg(tr(<span class="stringliteral">"Changes here are applied only after restarting qTox."</span>)));</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  QString warning = QString(<span class="stringliteral">"<div style=\"color:#ff0000;\">"</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="stringliteral">"<p><b>%1</b></p><p>%2</p></div>"</span>)</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  .arg(tr(<span class="stringliteral">"IMPORTANT NOTE"</span>))</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  .arg(warningBody);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->warningLabel->setText(warning);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classGenericForm.html#af56a0a0235f4dddb77b217ed918bed9c">eventsInit</a>();</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="classTranslator.html#a44adb921772ae2b18ee344ff63df6d3c">Translator::registerHandler</a>(std::bind(&<a class="code" href="classAdvancedForm.html#a046c1e7da640fc82a2d5d4e4d62a7ce9">AdvancedForm::retranslateUi</a>, <span class="keyword">this</span>), <span class="keyword">this</span>);</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> }</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a9491c82a6bbe6d14a041a36ceabb8ef7"> 90</a></span> <a class="code" href="classAdvancedForm.html#a9491c82a6bbe6d14a041a36ceabb8ef7">AdvancedForm::~AdvancedForm</a>()</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classTranslator.html#a421f4d6d5f03b3b8d30d2a453f1b7e33">Translator::unregister</a>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">delete</span> <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#aeeb5fb52647f80f5557c7659dc454bb0"> 96</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#aeeb5fb52647f80f5557c7659dc454bb0">AdvancedForm::on_cbMakeToxPortable_stateChanged</a>()</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> {</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a5817c9fce905c15c713658935e45f84a">setMakeToxPortable</a>(<a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbMakeToxPortable->isChecked());</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> }</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#aaf6f3e2605b8f4cf39a3a044394427b4"> 100</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#aaf6f3e2605b8f4cf39a3a044394427b4">AdvancedForm::on_btnExportLog_clicked</a>()</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> {</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  QString savefile =</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  QFileDialog::getSaveFileName(Q_NULLPTR, tr(<span class="stringliteral">"Save file"</span>), QString{}, tr(<span class="stringliteral">"Logs (*.log)"</span>));</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">if</span> (savefile.isNull() || savefile.isEmpty()) {</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  qDebug() << <span class="stringliteral">"Debug log save file was not properly chosen"</span>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  QString logFileDir = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a7067efdb27faaddb4bb4829d08997481">getPaths</a>().<a class="code" href="classPaths.html#a5a5ebdebefd62da7ea6e6da2fd99e4bf">getAppCacheDirPath</a>();</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  QString logfile = logFileDir + <span class="stringliteral">"qtox.log"</span>;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  QFile <a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac">file</a>(logfile);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">if</span> (<a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac">file</a>.exists()) {</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  qDebug() << <span class="stringliteral">"Found debug log for copying"</span>;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  qDebug() << <span class="stringliteral">"No debug file found"</span>;</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  }</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (QFile::copy(logfile, savefile))</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  qDebug() << <span class="stringliteral">"Successfully copied to: "</span> << savefile;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">else</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  qDebug() << <span class="stringliteral">"File was not copied"</span>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> }</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#ae3eefe8a996afccd118cf38e263e8ae5"> 127</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#ae3eefe8a996afccd118cf38e263e8ae5">AdvancedForm::on_btnCopyDebug_clicked</a>()</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> {</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  QString logFileDir = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a7067efdb27faaddb4bb4829d08997481">getPaths</a>().<a class="code" href="classPaths.html#a5a5ebdebefd62da7ea6e6da2fd99e4bf">getAppCacheDirPath</a>();</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  QString logfile = logFileDir + <span class="stringliteral">"qtox.log"</span>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  QFile <a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac">file</a>(logfile);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span> (!<a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac">file</a>.exists()) {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  qDebug() << <span class="stringliteral">"No debug file found"</span>;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  QClipboard* clipboard = QApplication::clipboard();</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">if</span> (clipboard) {</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  QString debugtext;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">if</span> (<a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac">file</a>.open(QIODevice::ReadOnly | QIODevice::Text)) {</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  QTextStream in(&<a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac">file</a>);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  debugtext = in.readAll();</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac">file</a>.close();</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  qDebug() << <span class="stringliteral">"Unable to open file for copying to clipboard"</span>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  clipboard->setText(debugtext, QClipboard::Clipboard);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  qDebug() << <span class="stringliteral">"Debug log copied to clipboard"</span>;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  qDebug() << <span class="stringliteral">"Unable to access clipboard"</span>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> }</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  </div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a1b048c3e9e7a45e26fe2051a61000753"> 157</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#a1b048c3e9e7a45e26fe2051a61000753">AdvancedForm::on_resetButton_clicked</a>()</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> {</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keyword">const</span> QString titile = tr(<span class="stringliteral">"Reset settings"</span>);</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordtype">bool</span> result = <a class="code" href="classGUI.html#aa3b39480266a0808615eb065dd9a8dec">GUI::askQuestion</a>(titile, tr(<span class="stringliteral">"All settings will be reset to default. Are you sure?"</span>),</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  tr(<span class="stringliteral">"Yes"</span>), tr(<span class="stringliteral">"No"</span>));</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">if</span> (!result)</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#aa54fd1da014d58d535c8200d240afbaa">resetToDefault</a>();</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="classGUI.html#aa5a1a2702c862f5ceea685f2ea435672">GUI::showInfo</a>(titile, <span class="stringliteral">"Changes will take effect after restart"</span>);</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> }</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a42b02ed91ee9335428006cfc6322cd5e"> 170</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#a42b02ed91ee9335428006cfc6322cd5e">AdvancedForm::on_cbEnableIPv6_stateChanged</a>()</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> {</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#ac484c27e9a183ff424b100da4b5de141">setEnableIPv6</a>(<a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableIPv6->isChecked());</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> }</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#aea8834912b6bab53a8bc541778a98876"> 175</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#aea8834912b6bab53a8bc541778a98876">AdvancedForm::on_cbEnableUDP_stateChanged</a>()</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> {</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> enableUdp = <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableUDP->isChecked();</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a80cd5d08d67f0e7d1fadc0f0dcd9d5d8">setForceTCP</a>(!enableUdp);</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> enableLanDiscovery = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a6ffefa70731c8b1e27c2731d1ef4e8c3">getEnableLanDiscovery</a>();</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableLanDiscovery->setEnabled(enableUdp);</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableLanDiscovery->setChecked(enableUdp && enableLanDiscovery);</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> }</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  </div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a6b291e3a8d5ce5ecccf3a849694aec15"> 184</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#a6b291e3a8d5ce5ecccf3a849694aec15">AdvancedForm::on_cbEnableLanDiscovery_stateChanged</a>()</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> {</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a52c7fb5618bbc9d0ed4bf903ea04a80f">setEnableLanDiscovery</a>(<a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableLanDiscovery->isChecked());</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> }</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a2e820ea6bf1cdead10d96b302fee715b"> 189</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#a2e820ea6bf1cdead10d96b302fee715b">AdvancedForm::on_proxyAddr_editingFinished</a>()</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> {</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#aef6541e475ec3a02b89970c69e159999">setProxyAddr</a>(<a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->proxyAddr->text());</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> }</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a4bbec53888c9e064cae6043bf4346762"> 194</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#a4bbec53888c9e064cae6043bf4346762">AdvancedForm::on_proxyPort_valueChanged</a>(<span class="keywordtype">int</span> port)</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> {</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">if</span> (port <= 0) {</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  port = 0;</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  }</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#aa4780638be79360b55eb598ed0b4ae9d">setProxyPort</a>(port);</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> }</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  </div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a04651f510a708e6c1566fe768ad973ad"> 203</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#a04651f510a708e6c1566fe768ad973ad">AdvancedForm::on_proxyType_currentIndexChanged</a>(<span class="keywordtype">int</span> index)</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> {</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="classICoreSettings.html#ac44f874b1930188f42f949d437a90359">Settings::ProxyType</a> proxytype = <span class="keyword">static_cast<</span><a class="code" href="classICoreSettings.html#ac44f874b1930188f42f949d437a90359">Settings::ProxyType</a><span class="keyword">></span>(index);</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> proxyEnabled = proxytype != <a class="code" href="classICoreSettings.html#ac44f874b1930188f42f949d437a90359af2033dd2729026979d8a606076014580">Settings::ProxyType::ptNone</a>;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->proxyAddr->setEnabled(proxyEnabled);</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->proxyPort->setEnabled(proxyEnabled);</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="comment">// enabling UDP and proxy can be a privacy issue</span></div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableUDP->setEnabled(!proxyEnabled);</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->cbEnableUDP->setChecked(!proxyEnabled);</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a69f9d8e0466066847849cbd614342d98">setProxyType</a>(proxytype);</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> }</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classAdvancedForm.html#a046c1e7da640fc82a2d5d4e4d62a7ce9"> 220</a></span> <span class="keywordtype">void</span> <a class="code" href="classAdvancedForm.html#a046c1e7da640fc82a2d5d4e4d62a7ce9">AdvancedForm::retranslateUi</a>()</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> {</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordtype">int</span> proxyType = <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->proxyType->currentIndex();</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->retranslateUi(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">bodyUI</a>->proxyType->setCurrentIndex(proxyType);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> }</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassSettings_html_a69f9d8e0466066847849cbd614342d98"><div class="ttname"><a href="classSettings.html#a69f9d8e0466066847849cbd614342d98">Settings::setProxyType</a></div><div class="ttdeci">void setProxyType(ICoreSettings::ProxyType type) override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01177">settings.cpp:1177</a></div></div>
<div class="ttc" id="aprofile_8h_html"><div class="ttname"><a href="profile_8h.html">profile.h</a></div></div>
<div class="ttc" id="aclassSettings_html"><div class="ttname"><a href="classSettings.html">Settings</a></div><div class="ttdef"><b>Definition:</b> <a href="settings_8h_source.html#l00051">settings.h:51</a></div></div>
<div class="ttc" id="arecursivesignalblocker_8h_html"><div class="ttname"><a href="recursivesignalblocker_8h.html">recursivesignalblocker.h</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a4bbec53888c9e064cae6043bf4346762"><div class="ttname"><a href="classAdvancedForm.html#a4bbec53888c9e064cae6043bf4346762">AdvancedForm::on_proxyPort_valueChanged</a></div><div class="ttdeci">void on_proxyPort_valueChanged(int port)</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00194">advancedform.cpp:194</a></div></div>
<div class="ttc" id="asettings_8h_html"><div class="ttname"><a href="settings_8h.html">settings.h</a></div></div>
<div class="ttc" id="aclassICoreSettings_html_ac44f874b1930188f42f949d437a90359"><div class="ttname"><a href="classICoreSettings.html#ac44f874b1930188f42f949d437a90359">ICoreSettings::ProxyType</a></div><div class="ttdeci">ProxyType</div><div class="ttdef"><b>Definition:</b> <a href="icoresettings_8h_source.html#l00030">icoresettings.h:30</a></div></div>
<div class="ttc" id="aclassSettings_html_a6ffefa70731c8b1e27c2731d1ef4e8c3"><div class="ttname"><a href="classSettings.html#a6ffefa70731c8b1e27c2731d1ef4e8c3">Settings::getEnableLanDiscovery</a></div><div class="ttdeci">bool getEnableLanDiscovery() const override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01132">settings.cpp:1132</a></div></div>
<div class="ttc" id="aclassSettings_html_aa4780638be79360b55eb598ed0b4ae9d"><div class="ttname"><a href="classSettings.html#aa4780638be79360b55eb598ed0b4ae9d">Settings::setProxyPort</a></div><div class="ttdeci">void setProxyPort(quint16 port) override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01203">settings.cpp:1203</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a42b02ed91ee9335428006cfc6322cd5e"><div class="ttname"><a href="classAdvancedForm.html#a42b02ed91ee9335428006cfc6322cd5e">AdvancedForm::on_cbEnableIPv6_stateChanged</a></div><div class="ttdeci">void on_cbEnableIPv6_stateChanged()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00170">advancedform.cpp:170</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a04651f510a708e6c1566fe768ad973ad"><div class="ttname"><a href="classAdvancedForm.html#a04651f510a708e6c1566fe768ad973ad">AdvancedForm::on_proxyType_currentIndexChanged</a></div><div class="ttdeci">void on_proxyType_currentIndexChanged(int index)</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00203">advancedform.cpp:203</a></div></div>
<div class="ttc" id="ahistory_8h_html_a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac"><div class="ttname"><a href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da8c7dd922ad47494fc02c388e12c00eac">HistMessageContentType::file</a></div><div class="ttdeci">@ file</div></div>
<div class="ttc" id="aclassAdvancedForm_html_aeeb5fb52647f80f5557c7659dc454bb0"><div class="ttname"><a href="classAdvancedForm.html#aeeb5fb52647f80f5557c7659dc454bb0">AdvancedForm::on_cbMakeToxPortable_stateChanged</a></div><div class="ttdeci">void on_cbMakeToxPortable_stateChanged()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00096">advancedform.cpp:96</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a9491c82a6bbe6d14a041a36ceabb8ef7"><div class="ttname"><a href="classAdvancedForm.html#a9491c82a6bbe6d14a041a36ceabb8ef7">AdvancedForm::~AdvancedForm</a></div><div class="ttdeci">~AdvancedForm()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00090">advancedform.cpp:90</a></div></div>
<div class="ttc" id="aclassSettings_html_a7c8c81aa265f65fcfdde03f8e6db8cc0"><div class="ttname"><a href="classSettings.html#a7c8c81aa265f65fcfdde03f8e6db8cc0">Settings::getForceTCP</a></div><div class="ttdeci">bool getForceTCP() const override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01119">settings.cpp:1119</a></div></div>
<div class="ttc" id="aclassTranslator_html_a421f4d6d5f03b3b8d30d2a453f1b7e33"><div class="ttname"><a href="classTranslator.html#a421f4d6d5f03b3b8d30d2a453f1b7e33">Translator::unregister</a></div><div class="ttdeci">static void unregister(void *owner)</div><div class="ttdoc">Unregisters all handlers of an owner.</div><div class="ttdef"><b>Definition:</b> <a href="translator_8cpp_source.html#l00103">translator.cpp:103</a></div></div>
<div class="ttc" id="aclassSettings_html_a80cd5d08d67f0e7d1fadc0f0dcd9d5d8"><div class="ttname"><a href="classSettings.html#a80cd5d08d67f0e7d1fadc0f0dcd9d5d8">Settings::setForceTCP</a></div><div class="ttdeci">void setForceTCP(bool enabled) override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01125">settings.cpp:1125</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a6b291e3a8d5ce5ecccf3a849694aec15"><div class="ttname"><a href="classAdvancedForm.html#a6b291e3a8d5ce5ecccf3a849694aec15">AdvancedForm::on_cbEnableLanDiscovery_stateChanged</a></div><div class="ttdeci">void on_cbEnableLanDiscovery_stateChanged()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00184">advancedform.cpp:184</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_aea8834912b6bab53a8bc541778a98876"><div class="ttname"><a href="classAdvancedForm.html#aea8834912b6bab53a8bc541778a98876">AdvancedForm::on_cbEnableUDP_stateChanged</a></div><div class="ttdeci">void on_cbEnableUDP_stateChanged()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00175">advancedform.cpp:175</a></div></div>
<div class="ttc" id="aclassGUI_html_aa3b39480266a0808615eb065dd9a8dec"><div class="ttname"><a href="classGUI.html#aa3b39480266a0808615eb065dd9a8dec">GUI::askQuestion</a></div><div class="ttdeci">static bool askQuestion(const QString &title, const QString &msg, bool defaultAns=false, bool warning=true, bool yesno=true)</div><div class="ttdoc">Asks the user a question with Ok/Cancel or Yes/No buttons.</div><div class="ttdef"><b>Definition:</b> <a href="gui_8cpp_source.html#l00169">gui.cpp:169</a></div></div>
<div class="ttc" id="aadvancedform_8h_html"><div class="ttname"><a href="advancedform_8h.html">advancedform.h</a></div></div>
<div class="ttc" id="aclassSettings_html_aa54fd1da014d58d535c8200d240afbaa"><div class="ttname"><a href="classSettings.html#aa54fd1da014d58d535c8200d240afbaa">Settings::resetToDefault</a></div><div class="ttdeci">void resetToDefault()</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l00565">settings.cpp:565</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_ae1e0c24b5732681381f4b1c9eee04a6a"><div class="ttname"><a href="classAdvancedForm.html#ae1e0c24b5732681381f4b1c9eee04a6a">AdvancedForm::bodyUI</a></div><div class="ttdeci">Ui::AdvancedSettings * bodyUI</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8h_source.html#l00060">advancedform.h:60</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a046c1e7da640fc82a2d5d4e4d62a7ce9"><div class="ttname"><a href="classAdvancedForm.html#a046c1e7da640fc82a2d5d4e4d62a7ce9">AdvancedForm::retranslateUi</a></div><div class="ttdeci">void retranslateUi()</div><div class="ttdoc">Retranslate all elements in the form.</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00220">advancedform.cpp:220</a></div></div>
<div class="ttc" id="aclassSettings_html_ac484c27e9a183ff424b100da4b5de141"><div class="ttname"><a href="classSettings.html#ac484c27e9a183ff424b100da4b5de141">Settings::setEnableIPv6</a></div><div class="ttdeci">void setEnableIPv6(bool enabled) override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l00858">settings.cpp:858</a></div></div>
<div class="ttc" id="aclassSettings_html_aef6541e475ec3a02b89970c69e159999"><div class="ttname"><a href="classSettings.html#aef6541e475ec3a02b89970c69e159999">Settings::setProxyAddr</a></div><div class="ttdeci">void setProxyAddr(const QString &address) override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01190">settings.cpp:1190</a></div></div>
<div class="ttc" id="anamespaceUi_html"><div class="ttname"><a href="namespaceUi.html">Ui</a></div><div class="ttdef"><b>Definition:</b> <a href="filetransferwidget_8h_source.html#l00030">filetransferwidget.h:30</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_aaf6f3e2605b8f4cf39a3a044394427b4"><div class="ttname"><a href="classAdvancedForm.html#aaf6f3e2605b8f4cf39a3a044394427b4">AdvancedForm::on_btnExportLog_clicked</a></div><div class="ttdeci">void on_btnExportLog_clicked()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00100">advancedform.cpp:100</a></div></div>
<div class="ttc" id="aclassGUI_html_aa5a1a2702c862f5ceea685f2ea435672"><div class="ttname"><a href="classGUI.html#aa5a1a2702c862f5ceea685f2ea435672">GUI::showInfo</a></div><div class="ttdeci">static void showInfo(const QString &title, const QString &msg)</div><div class="ttdoc">Show some text to the user.</div><div class="ttdef"><b>Definition:</b> <a href="gui_8cpp_source.html#l00115">gui.cpp:115</a></div></div>
<div class="ttc" id="aclassSettings_html_a1fedabbce788fe1a4f29362a90567be6"><div class="ttname"><a href="classSettings.html#a1fedabbce788fe1a4f29362a90567be6">Settings::getProxyPort</a></div><div class="ttdeci">quint16 getProxyPort() const override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01197">settings.cpp:1197</a></div></div>
<div class="ttc" id="aclassSettings_html_a52c7fb5618bbc9d0ed4bf903ea04a80f"><div class="ttname"><a href="classSettings.html#a52c7fb5618bbc9d0ed4bf903ea04a80f">Settings::setEnableLanDiscovery</a></div><div class="ttdeci">void setEnableLanDiscovery(bool enabled) override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01138">settings.cpp:1138</a></div></div>
<div class="ttc" id="aclassSettings_html_a7067efdb27faaddb4bb4829d08997481"><div class="ttname"><a href="classSettings.html#a7067efdb27faaddb4bb4829d08997481">Settings::getPaths</a></div><div class="ttdeci">Paths & getPaths()</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l00834">settings.cpp:834</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a1b048c3e9e7a45e26fe2051a61000753"><div class="ttname"><a href="classAdvancedForm.html#a1b048c3e9e7a45e26fe2051a61000753">AdvancedForm::on_resetButton_clicked</a></div><div class="ttdeci">void on_resetButton_clicked()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00157">advancedform.cpp:157</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a2e820ea6bf1cdead10d96b302fee715b"><div class="ttname"><a href="classAdvancedForm.html#a2e820ea6bf1cdead10d96b302fee715b">AdvancedForm::on_proxyAddr_editingFinished</a></div><div class="ttdeci">void on_proxyAddr_editingFinished()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00189">advancedform.cpp:189</a></div></div>
<div class="ttc" id="aclassTranslator_html_a44adb921772ae2b18ee344ff63df6d3c"><div class="ttname"><a href="classTranslator.html#a44adb921772ae2b18ee344ff63df6d3c">Translator::registerHandler</a></div><div class="ttdeci">static void registerHandler(const std::function< void()> &, void *owner)</div><div class="ttdoc">Register a function to be called when the UI needs to be retranslated.</div><div class="ttdef"><b>Definition:</b> <a href="translator_8cpp_source.html#l00093">translator.cpp:93</a></div></div>
<div class="ttc" id="aclassICoreSettings_html_ac44f874b1930188f42f949d437a90359af2033dd2729026979d8a606076014580"><div class="ttname"><a href="classICoreSettings.html#ac44f874b1930188f42f949d437a90359af2033dd2729026979d8a606076014580">ICoreSettings::ProxyType::ptNone</a></div><div class="ttdeci">@ ptNone</div></div>
<div class="ttc" id="aclassSettings_html_a754f11e4d7d7e9e12b5c411b42dae0fb"><div class="ttname"><a href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a></div><div class="ttdeci">static Settings & getInstance()</div><div class="ttdoc">Returns the singleton instance.</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l00088">settings.cpp:88</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_a7f126074e85bf2eba15fee811f3d9d09"><div class="ttname"><a href="classAdvancedForm.html#a7f126074e85bf2eba15fee811f3d9d09">AdvancedForm::AdvancedForm</a></div><div class="ttdeci">AdvancedForm()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00044">advancedform.cpp:44</a></div></div>
<div class="ttc" id="aclassSettings_html_aa0eba5b3bd1aa54c52a95e950f587b5a"><div class="ttname"><a href="classSettings.html#aa0eba5b3bd1aa54c52a95e950f587b5a">Settings::getProxyAddr</a></div><div class="ttdeci">QString getProxyAddr() const override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01184">settings.cpp:1184</a></div></div>
<div class="ttc" id="aclassPaths_html_a5a5ebdebefd62da7ea6e6da2fd99e4bf"><div class="ttname"><a href="classPaths.html#a5a5ebdebefd62da7ea6e6da2fd99e4bf">Paths::getAppCacheDirPath</a></div><div class="ttdeci">QString getAppCacheDirPath() const</div><div class="ttdoc">Get path to directory, where the application cache are stored.</div><div class="ttdef"><b>Definition:</b> <a href="paths_8cpp_source.html#l00346">paths.cpp:346</a></div></div>
<div class="ttc" id="aclassAdvancedForm_html_ae3eefe8a996afccd118cf38e263e8ae5"><div class="ttname"><a href="classAdvancedForm.html#ae3eefe8a996afccd118cf38e263e8ae5">AdvancedForm::on_btnCopyDebug_clicked</a></div><div class="ttdeci">void on_btnCopyDebug_clicked()</div><div class="ttdef"><b>Definition:</b> <a href="advancedform_8cpp_source.html#l00127">advancedform.cpp:127</a></div></div>
<div class="ttc" id="aclassSettings_html_a4f022919834935eb1d5bd095bdcc9101"><div class="ttname"><a href="classSettings.html#a4f022919834935eb1d5bd095bdcc9101">Settings::getEnableIPv6</a></div><div class="ttdeci">bool getEnableIPv6() const override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l00852">settings.cpp:852</a></div></div>
<div class="ttc" id="agui_8h_html"><div class="ttname"><a href="gui_8h.html">gui.h</a></div></div>
<div class="ttc" id="aclassGenericForm_html_af56a0a0235f4dddb77b217ed918bed9c"><div class="ttname"><a href="classGenericForm.html#af56a0a0235f4dddb77b217ed918bed9c">GenericForm::eventsInit</a></div><div class="ttdeci">void eventsInit()</div><div class="ttdoc">Prevent stealing mouse wheel scroll.</div><div class="ttdef"><b>Definition:</b> <a href="genericsettings_8cpp_source.html#l00054">genericsettings.cpp:54</a></div></div>
<div class="ttc" id="atranslator_8h_html"><div class="ttname"><a href="translator_8h.html">translator.h</a></div></div>
<div class="ttc" id="aclassRecursiveSignalBlocker_html"><div class="ttname"><a href="classRecursiveSignalBlocker.html">RecursiveSignalBlocker</a></div><div class="ttdoc">Recursively blocks all signals from an object and its children.</div><div class="ttdef"><b>Definition:</b> <a href="recursivesignalblocker_8h_source.html#l00027">recursivesignalblocker.h:27</a></div></div>
<div class="ttc" id="aclassSettings_html_a733ea826935339156196917570941db5"><div class="ttname"><a href="classSettings.html#a733ea826935339156196917570941db5">Settings::getProxyType</a></div><div class="ttdeci">ICoreSettings::ProxyType getProxyType() const override</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l01171">settings.cpp:1171</a></div></div>
<div class="ttc" id="aclassGenericForm_html"><div class="ttname"><a href="classGenericForm.html">GenericForm</a></div><div class="ttdef"><b>Definition:</b> <a href="genericsettings_8h_source.html#l00024">genericsettings.h:24</a></div></div>
<div class="ttc" id="aclassSettings_html_a5817c9fce905c15c713658935e45f84a"><div class="ttname"><a href="classSettings.html#a5817c9fce905c15c713658935e45f84a">Settings::setMakeToxPortable</a></div><div class="ttdeci">void setMakeToxPortable(bool newValue)</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l00871">settings.cpp:871</a></div></div>
<div class="ttc" id="astatus_8h_html"><div class="ttname"><a href="status_8h.html">status.h</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>