-
Notifications
You must be signed in to change notification settings - Fork 0
/
addfriendform_8cpp_source.html
606 lines (604 loc) · 111 KB
/
addfriendform_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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
<!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/addfriendform.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> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">addfriendform.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="addfriendform_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="addfriendform_8h.html">addfriendform.h</a>"</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="core_8h.html">src/core/core.h</a>"</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="nexus_8h.html">src/nexus.h</a>"</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="settings_8h.html">src/persistence/settings.h</a>"</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="contentlayout_8h.html">src/widget/contentlayout.h</a>"</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="gui_8h.html">src/widget/gui.h</a>"</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="croppinglabel_8h.html">src/widget/tool/croppinglabel.h</a>"</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="style_8h.html">src/widget/style.h</a>"</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="translator_8h.html">src/widget/translator.h</a>"</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <QApplication></span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <QClipboard></span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <QErrorMessage></span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <QFileDialog></span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <QFont></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <QMessageBox></span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <QRegularExpression></span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <QScrollArea></span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include <QSignalMapper></span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include <QTabWidget></span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include <QWindow></span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">namespace</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  QString getToxId(<span class="keyword">const</span> QString& <span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">const</span> QString toxUriPrefix{<span class="stringliteral">"tox:"</span>};</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  QString strippedId = <span class="keywordtype">id</span>.trimmed();</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span> (strippedId.startsWith(toxUriPrefix)) {</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  strippedId.remove(0, toxUriPrefix.length());</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="keywordflow">return</span> strippedId;</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</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>  <span class="keywordtype">bool</span> checkIsValidId(<span class="keyword">const</span> QString& <span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">return</span> <a class="code" href="classToxId.html#a833f176a68c64f7661b370209d4b2eba">ToxId::isToxId</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> }</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a07ac9f271eeaaaec515ac3d703f45eed"> 64</a></span> <a class="code" href="classAddFriendForm.html#a07ac9f271eeaaaec515ac3d703f45eed">AddFriendForm::AddFriendForm</a>(<a class="code" href="classToxId.html">ToxId</a> _ownId)</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  : ownId{_ownId}</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> {</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  tabWidget = <span class="keyword">new</span> QTabWidget();</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="main_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> = <span class="keyword">new</span> QWidget(tabWidget);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  head = <span class="keyword">new</span> QWidget();</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  QFont bold;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  bold.setBold(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  headLabel.setFont(bold);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  toxIdLabel.setTextFormat(Qt::RichText);</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="main_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a>->setLayout(&layout);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  layout.addWidget(&toxIdLabel);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  layout.addWidget(&toxId);</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  layout.addWidget(&messageLabel);</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  layout.addWidget(&message);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  layout.addWidget(&sendButton);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  tabWidget->addTab(<a class="code" href="main_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a>, QString());</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  importContacts = <span class="keyword">new</span> QWidget(tabWidget);</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  importContacts->setLayout(&importContactsLayout);</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  importFileLine.addWidget(&importFileLabel);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  importFileLine.addStretch();</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  importFileLine.addWidget(&importFileButton);</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  importContactsLayout.addLayout(&importFileLine);</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  importContactsLayout.addWidget(&importMessageLabel);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  importContactsLayout.addWidget(&importMessage);</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  importContactsLayout.addWidget(&importSendButton);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  tabWidget->addTab(importContacts, QString());</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  QScrollArea* scrollArea = <span class="keyword">new</span> QScrollArea(tabWidget);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  QWidget* requestWidget = <span class="keyword">new</span> QWidget(tabWidget);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  scrollArea->setWidget(requestWidget);</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  scrollArea->setWidgetResizable(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  requestsLayout = <span class="keyword">new</span> QVBoxLayout(requestWidget);</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  requestsLayout->addStretch(1);</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  tabWidget->addTab(scrollArea, QString());</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>  head->setLayout(&headLayout);</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  headLayout.addWidget(&headLabel);</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>  connect(&toxId, &QLineEdit::returnPressed, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a2bcf8d6ef490913c60a0eb4f75b71886">AddFriendForm::onSendTriggered</a>);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  connect(&toxId, &QLineEdit::textChanged, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a2034347dfda8ba4fa55f00c271b1e6bd">AddFriendForm::onIdChanged</a>);</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  connect(tabWidget, &QTabWidget::currentChanged, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a7f339759d7ae85f9054471d04b8584dc">AddFriendForm::onCurrentChanged</a>);</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  connect(&sendButton, &QPushButton::clicked, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a2bcf8d6ef490913c60a0eb4f75b71886">AddFriendForm::onSendTriggered</a>);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  connect(&importSendButton, &QPushButton::clicked, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a6b4aa62d034c5fda6dda399a1e4cb603">AddFriendForm::onImportSendClicked</a>);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  connect(&importFileButton, &QPushButton::clicked, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a01f4bd4e3c9e8ebc0099fcb707244aa1">AddFriendForm::onImportOpenClicked</a>);</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  connect(<a class="code" href="classNexus.html#afb7493da9f29676c4a46a0c4adefd880">Nexus::getCore</a>(), &<a class="code" href="classCore.html#a7460bedc7ff3e1928fb7224f18061baa">Core::usernameSet</a>, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a0ed33261ef3cf36a1e5c17ab5acb8240">AddFriendForm::onUsernameSet</a>);</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>  <span class="comment">// accessibility stuff</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  toxIdLabel.setAccessibleDescription(</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  tr(<span class="stringliteral">"Tox ID, 76 hexadecimal characters"</span>));</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  toxId.setAccessibleDescription(tr(<span class="stringliteral">"Type in Tox ID of your friend"</span>));</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  messageLabel.setAccessibleDescription(tr(<span class="stringliteral">"Friend request message"</span>));</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da78e731027d8fd50ed642340b7c9a63b3">message</a>.setAccessibleDescription(tr(</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="stringliteral">"Type message to send with the friend request or leave empty to send a default message"</span>));</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da78e731027d8fd50ed642340b7c9a63b3">message</a>.setTabChangesFocus(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  retranslateUi();</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="classTranslator.html#a44adb921772ae2b18ee344ff63df6d3c">Translator::registerHandler</a>(std::bind(&<a class="code" href="classAddFriendForm.html#aca9a8c998f85aacc920371753125f0bf">AddFriendForm::retranslateUi</a>, <span class="keyword">this</span>), <span class="keyword">this</span>);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> size = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#ae18d467086c5db4426982e732c851b31">getFriendRequestSize</a>();</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; ++i) {</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="structSettings_1_1Request.html">Settings::Request</a> request = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a9aae9a8af8243944c6f3977eaae66114">getFriendRequest</a>(i);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  addFriendRequestWidget(request.<a class="code" href="structSettings_1_1Request.html#a40c8dc13f558136c5a9fbe96768097b9">address</a>, request.<a class="code" href="structSettings_1_1Request.html#a212df6564b72716fe39eec816eaa3e30">message</a>);</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</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"><a class="line" href="classAddFriendForm.html#ad290561ea601cd636c7f2c022488cae4"> 132</a></span> <a class="code" href="classAddFriendForm.html#ad290561ea601cd636c7f2c022488cae4">AddFriendForm::~AddFriendForm</a>()</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> {</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <a class="code" href="classTranslator.html#a421f4d6d5f03b3b8d30d2a453f1b7e33">Translator::unregister</a>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="classAddFriendForm.html#a73391e05aad5354202dec1c8b93532e1">head</a>->deleteLater();</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>->deleteLater();</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>  </div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a47bea86b824c7e82e12d5ec49a4247d0"> 139</a></span> <span class="keywordtype">bool</span> <a class="code" href="classAddFriendForm.html#a47bea86b824c7e82e12d5ec49a4247d0">AddFriendForm::isShown</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keyword"></span>{</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">if</span> (<a class="code" href="classAddFriendForm.html#a73391e05aad5354202dec1c8b93532e1">head</a>->isVisible()) {</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="classAddFriendForm.html#a73391e05aad5354202dec1c8b93532e1">head</a>->window()->windowHandle()->alert(0);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</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"><a class="line" href="classAddFriendForm.html#aefb1b5164693999fdc015e1774f3e458"> 149</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#aefb1b5164693999fdc015e1774f3e458">AddFriendForm::show</a>(<a class="code" href="classContentLayout.html">ContentLayout</a>* contentLayout)</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> {</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  contentLayout-><a class="code" href="classContentLayout.html#a891315231e65bc6bd9d52dade8fa16ae">mainContent</a>->layout()->addWidget(<a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  contentLayout-><a class="code" href="classContentLayout.html#a320cb41989ec680de531b2c7dc4acb37">mainHead</a>->layout()->addWidget(<a class="code" href="classAddFriendForm.html#a73391e05aad5354202dec1c8b93532e1">head</a>);</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>->show();</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="classAddFriendForm.html#a73391e05aad5354202dec1c8b93532e1">head</a>->show();</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="classAddFriendForm.html#a8cbdadda64ff8b9bc035238c632589ac">setIdFromClipboard</a>();</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">toxId</a>.setFocus();</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="comment">// Fix #3421</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="comment">// Needed to update tab after opening window</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> index = <a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>->currentIndex();</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="classAddFriendForm.html#a7f339759d7ae85f9054471d04b8584dc">onCurrentChanged</a>(index);</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>  </div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#ab869c0a381e1aa3272af99d756a42848"> 164</a></span> QString <a class="code" href="classAddFriendForm.html#ab869c0a381e1aa3272af99d756a42848">AddFriendForm::getMessage</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="keyword"></span>{</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keyword">const</span> QString msg = <a class="code" href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">message</a>.toPlainText();</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">return</span> !msg.isEmpty() ? msg : <a class="code" href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">message</a>.placeholderText();</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="classAddFriendForm.html#af5a1fd55c2a16c4ee3943bdb4c228cfd"> 170</a></span> QString <a class="code" href="classAddFriendForm.html#af5a1fd55c2a16c4ee3943bdb4c228cfd">AddFriendForm::getImportMessage</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="keyword"></span>{</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keyword">const</span> QString msg = <a class="code" href="classAddFriendForm.html#ada8358f01cdf14d208d2615b842ff182">importMessage</a>.toPlainText();</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">return</span> msg.isEmpty() ? <a class="code" href="classAddFriendForm.html#ada8358f01cdf14d208d2615b842ff182">importMessage</a>.placeholderText() : msg;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> }</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  </div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#ad97e48d08fa03be051d9ddbe9b070e2b"> 176</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#ad97e48d08fa03be051d9ddbe9b070e2b">AddFriendForm::setMode</a>(<a class="code" href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782">Mode</a> mode)</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> {</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>->setCurrentIndex(mode);</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> }</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a21cf79acb3f2fc34de328d884b62f465"> 181</a></span> <span class="keywordtype">bool</span> <a class="code" href="classAddFriendForm.html#a21cf79acb3f2fc34de328d884b62f465">AddFriendForm::addFriendRequest</a>(<span class="keyword">const</span> QString& friendAddress, <span class="keyword">const</span> QString& message)</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>  <span class="keywordflow">if</span> (<a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classAddFriendForm.html#a21cf79acb3f2fc34de328d884b62f465">addFriendRequest</a>(friendAddress, <a class="code" href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">message</a>)) {</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <a class="code" href="classAddFriendForm.html#aca363e4637d331d454c4433b95577000">addFriendRequestWidget</a>(friendAddress, <a class="code" href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">message</a>);</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">if</span> (<a class="code" href="classAddFriendForm.html#a47bea86b824c7e82e12d5ec49a4247d0">isShown</a>()) {</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="classAddFriendForm.html#a7f339759d7ae85f9054471d04b8584dc">onCurrentChanged</a>(<a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>->currentIndex());</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"> 189</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</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>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</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="classAddFriendForm.html#a0ed33261ef3cf36a1e5c17ab5acb8240"> 194</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a0ed33261ef3cf36a1e5c17ab5acb8240">AddFriendForm::onUsernameSet</a>(<span class="keyword">const</span> QString& username)</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>  <a class="code" href="classAddFriendForm.html#a83b45f8badab88954ba08ff958f4f5b8">lastUsername</a> = username;</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="classAddFriendForm.html#aca9a8c998f85aacc920371753125f0bf">retranslateUi</a>();</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"><a class="line" href="classAddFriendForm.html#ad57a4223a519b32d8370af0d447e1d20"> 200</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#ad57a4223a519b32d8370af0d447e1d20">AddFriendForm::addFriend</a>(<span class="keyword">const</span> QString& idText)</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>  <a class="code" href="classToxId.html">ToxId</a> friendId(idText);</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">if</span> (!friendId.<a class="code" href="classToxId.html#a634c79008d03313833d37a5f4e1d1218">isValid</a>()) {</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="classGUI.html#ab1c1a41d742cabece0bdde6e020a80b7">GUI::showWarning</a>(tr(<span class="stringliteral">"Couldn't add friend"</span>),</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  tr(<span class="stringliteral">"%1 Tox ID is invalid"</span>, <span class="stringliteral">"Tox address error"</span>).arg(idText));</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  }</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="classAddFriendForm.html#a349c7276eed501e8cd4a8aa2b8ee46eb">deleteFriendRequest</a>(friendId);</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordflow">if</span> (friendId == <a class="code" href="classAddFriendForm.html#acccf3c2041315cdf36b0dc4d9f308e72">ownId</a>) {</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="classGUI.html#ab1c1a41d742cabece0bdde6e020a80b7">GUI::showWarning</a>(tr(<span class="stringliteral">"Couldn't add friend"</span>),</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="comment">//: When trying to add your own Tox ID as friend</span></div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  tr(<span class="stringliteral">"You can't add yourself as a friend!"</span>));</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  emit <a class="code" href="classAddFriendForm.html#a77b55f19275cf414a8c4625ab2d8006f">friendRequested</a>(friendId, <a class="code" href="classAddFriendForm.html#ab869c0a381e1aa3272af99d756a42848">getMessage</a>());</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  }</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> }</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  </div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a2bcf8d6ef490913c60a0eb4f75b71886"> 220</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a2bcf8d6ef490913c60a0eb4f75b71886">AddFriendForm::onSendTriggered</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="keyword">const</span> QString <span class="keywordtype">id</span> = getToxId(<a class="code" href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">toxId</a>.text());</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="classAddFriendForm.html#ad57a4223a519b32d8370af0d447e1d20">addFriend</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  this-><a class="code" href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">toxId</a>.clear();</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  this-><a class="code" href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">message</a>.clear();</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> }</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  </div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a6b4aa62d034c5fda6dda399a1e4cb603"> 229</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a6b4aa62d034c5fda6dda399a1e4cb603">AddFriendForm::onImportSendClicked</a>()</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> {</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> QString& <span class="keywordtype">id</span> : <a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a>) {</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <a class="code" href="classAddFriendForm.html#ad57a4223a519b32d8370af0d447e1d20">addFriend</a>(<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a>.clear();</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <a class="code" href="classAddFriendForm.html#ada8358f01cdf14d208d2615b842ff182">importMessage</a>.clear();</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <a class="code" href="classAddFriendForm.html#aca9a8c998f85aacc920371753125f0bf">retranslateUi</a>(); <span class="comment">// Update the importFileLabel</span></div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> }</div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  </div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a01f4bd4e3c9e8ebc0099fcb707244aa1"> 240</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a01f4bd4e3c9e8ebc0099fcb707244aa1">AddFriendForm::onImportOpenClicked</a>()</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> {</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keyword">const</span> QString path = QFileDialog::getOpenFileName(Q_NULLPTR, tr(<span class="stringliteral">"Open contact list"</span>));</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">if</span> (path.isEmpty()) {</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  </div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  QFile contactFile(path);</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">if</span> (!contactFile.open(QIODevice::ReadOnly | QIODevice::Text)) {</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="classGUI.html#ab1c1a41d742cabece0bdde6e020a80b7">GUI::showWarning</a>(tr(<span class="stringliteral">"Couldn't open file"</span>),</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="comment">//: Error message when trying to open a contact list file to import</span></div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  tr(<span class="stringliteral">"Couldn't open the contact file"</span>));</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  }</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a> = QString::fromUtf8(contactFile.readAll()).split(<span class="charliteral">'\n'</span>);</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  qDebug() << <span class="stringliteral">"Import list:"</span>;</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> it = <a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a>.begin(); it != <a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a>.end();) {</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keyword">const</span> QString <span class="keywordtype">id</span> = getToxId(*it);</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">if</span> (checkIsValidId(<span class="keywordtype">id</span>)) {</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  *it = id;</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  qDebug() << *it;</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  ++it;</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordflow">if</span> (!<span class="keywordtype">id</span>.isEmpty()) {</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  qDebug() << <span class="stringliteral">"Invalid ID:"</span> << *it;</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  }</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  it = <a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a>.erase(it);</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  }</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  }</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  </div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">if</span> (<a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a>.isEmpty()) {</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="classGUI.html#ab1c1a41d742cabece0bdde6e020a80b7">GUI::showWarning</a>(tr(<span class="stringliteral">"Invalid file"</span>),</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  tr(<span class="stringliteral">"We couldn't find any contacts to import in this file!"</span>));</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  }</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  </div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="classAddFriendForm.html#aca9a8c998f85aacc920371753125f0bf">retranslateUi</a>(); <span class="comment">// Update the importFileLabel to show how many contacts we have</span></div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> }</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a2034347dfda8ba4fa55f00c271b1e6bd"> 279</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a2034347dfda8ba4fa55f00c271b1e6bd">AddFriendForm::onIdChanged</a>(<span class="keyword">const</span> QString& <span class="keywordtype">id</span>)</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> {</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keyword">const</span> QString strippedId = getToxId(<span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  </div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> isValidId = checkIsValidId(strippedId);</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> isValidOrEmpty = strippedId.isEmpty() || isValidId;</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="comment">//: Tox ID of the person you're sending a friend request to</span></div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keyword">const</span> QString toxIdText(tr(<span class="stringliteral">"Tox ID"</span>));</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="comment">//: Tox ID format description</span></div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keyword">const</span> QString toxIdComment(tr(<span class="stringliteral">"76 hexadecimal characters"</span>));</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  </div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">const</span> QString labelText =</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  isValidId ? QStringLiteral(<span class="stringliteral">"%1 (%2)"</span>) : QStringLiteral(<span class="stringliteral">"%1 <font color='red'>(%2)</font>"</span>);</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <a class="code" href="classAddFriendForm.html#a25227113e958a6c0875a5a7122864bbe">toxIdLabel</a>.setText(labelText.arg(toxIdText, toxIdComment));</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <a class="code" href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">toxId</a>.setStyleSheet(isValidOrEmpty ? QStringLiteral(<span class="stringliteral">""</span>)</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  : <a class="code" href="classStyle.html#a0ef91fd7007fb061d38c9c82396dabd3">Style::getStylesheet</a>(<span class="stringliteral">"addFriendForm/toxId.css"</span>));</div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <a class="code" href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">toxId</a>.setToolTip(isValidOrEmpty ? QStringLiteral(<span class="stringliteral">""</span>) : tr(<span class="stringliteral">"Invalid Tox ID format"</span>));</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  </div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <a class="code" href="classAddFriendForm.html#a07ad1dbcff1a407bd5a76391e784f7bd">sendButton</a>.setEnabled(isValidId);</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> }</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  </div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a8cbdadda64ff8b9bc035238c632589ac"> 301</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a8cbdadda64ff8b9bc035238c632589ac">AddFriendForm::setIdFromClipboard</a>()</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> {</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keyword">const</span> QClipboard* clipboard = QApplication::clipboard();</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keyword">const</span> QString trimmedId = clipboard->text().trimmed();</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">const</span> QString strippedId = getToxId(trimmedId);</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> isSelf = <a class="code" href="classToxId.html#a833f176a68c64f7661b370209d4b2eba">ToxId::isToxId</a>(strippedId) && <a class="code" href="classToxId.html">ToxId</a>(strippedId) != <a class="code" href="classAddFriendForm.html#acccf3c2041315cdf36b0dc4d9f308e72">ownId</a>;</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordflow">if</span> (!strippedId.isEmpty() && <a class="code" href="classToxId.html#a833f176a68c64f7661b370209d4b2eba">ToxId::isToxId</a>(strippedId) && isSelf) {</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <a class="code" href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">toxId</a>.setText(trimmedId);</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  }</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> }</div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  </div>
<div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a349c7276eed501e8cd4a8aa2b8ee46eb"> 312</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a349c7276eed501e8cd4a8aa2b8ee46eb">AddFriendForm::deleteFriendRequest</a>(<span class="keyword">const</span> <a class="code" href="classToxId.html">ToxId</a>& toxId)</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> {</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> size = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#ae18d467086c5db4426982e732c851b31">getFriendRequestSize</a>();</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < size; ++i) {</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="structSettings_1_1Request.html">Settings::Request</a> request = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a9aae9a8af8243944c6f3977eaae66114">getFriendRequest</a>(i);</div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keywordflow">if</span> (<a class="code" href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">toxId</a>.getPublicKey() == <a class="code" href="classToxPk.html">ToxPk</a>(request.<a class="code" href="structSettings_1_1Request.html#a40c8dc13f558136c5a9fbe96768097b9">address</a>)) {</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a9bf7be23026b81700ba7cf4395100688">removeFriendRequest</a>(i);</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  }</div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  }</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> }</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  </div>
<div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a9d34fd4815724e158b3c4eda512d0389"> 324</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a9d34fd4815724e158b3c4eda512d0389">AddFriendForm::onFriendRequestAccepted</a>()</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> {</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  QPushButton* acceptButton = <span class="keyword">static_cast<</span>QPushButton*<span class="keyword">></span>(sender());</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  QWidget* friendWidget = acceptButton->parentWidget();</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> index = <a class="code" href="classAddFriendForm.html#af9fac53dbcff47b510982501fda99f70">requestsLayout</a>->indexOf(friendWidget);</div>
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <a class="code" href="classAddFriendForm.html#afbb4c961477901f94e4ab06b0f67d85c">removeFriendRequestWidget</a>(friendWidget);</div>
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> indexFromEnd = <a class="code" href="classAddFriendForm.html#af9fac53dbcff47b510982501fda99f70">requestsLayout</a>->count() - index - 1;</div>
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keyword">const</span> <a class="code" href="structSettings_1_1Request.html">Settings::Request</a> request = <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a9aae9a8af8243944c6f3977eaae66114">getFriendRequest</a>(indexFromEnd);</div>
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  emit <a class="code" href="classAddFriendForm.html#ab3f77818c50ba5901db9d6d3953267c4">friendRequestAccepted</a>(<a class="code" href="classToxPk.html">ToxPk</a>{request.<a class="code" href="structSettings_1_1Request.html#a40c8dc13f558136c5a9fbe96768097b9">address</a>});</div>
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a9bf7be23026b81700ba7cf4395100688">removeFriendRequest</a>(indexFromEnd);</div>
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a2a46de183eb4f38f55a44702c5ca15c6">savePersonal</a>();</div>
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> }</div>
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  </div>
<div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a60bff5dd6bbf1742af9fd8d40d1c9eb5"> 337</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a60bff5dd6bbf1742af9fd8d40d1c9eb5">AddFriendForm::onFriendRequestRejected</a>()</div>
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> {</div>
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  QPushButton* rejectButton = <span class="keyword">static_cast<</span>QPushButton*<span class="keyword">></span>(sender());</div>
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  QWidget* friendWidget = rejectButton->parentWidget();</div>
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> index = <a class="code" href="classAddFriendForm.html#af9fac53dbcff47b510982501fda99f70">requestsLayout</a>->indexOf(friendWidget);</div>
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <a class="code" href="classAddFriendForm.html#afbb4c961477901f94e4ab06b0f67d85c">removeFriendRequestWidget</a>(friendWidget);</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> indexFromEnd = <a class="code" href="classAddFriendForm.html#af9fac53dbcff47b510982501fda99f70">requestsLayout</a>->count() - index - 1;</div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a9bf7be23026b81700ba7cf4395100688">removeFriendRequest</a>(indexFromEnd);</div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a2a46de183eb4f38f55a44702c5ca15c6">savePersonal</a>();</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> }</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  </div>
<div class="line"><a name="l00348"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a7f339759d7ae85f9054471d04b8584dc"> 348</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a7f339759d7ae85f9054471d04b8584dc">AddFriendForm::onCurrentChanged</a>(<span class="keywordtype">int</span> index)</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> {</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keywordflow">if</span> (index == <a class="code" href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782a948af49106190355f46e3199d4142252">FriendRequest</a> && <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().getUnreadFriendRequests() != 0) {</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#accf237ab89ab4e6f6db5311f09ee60c0">clearUnreadFriendRequests</a>();</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <a class="code" href="classSettings.html#a754f11e4d7d7e9e12b5c411b42dae0fb">Settings::getInstance</a>().<a class="code" href="classSettings.html#a2a46de183eb4f38f55a44702c5ca15c6">savePersonal</a>();</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  emit <a class="code" href="classAddFriendForm.html#af85938d804fe1977c0192d8d67ed5c45">friendRequestsSeen</a>();</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  }</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> }</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  </div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#aca9a8c998f85aacc920371753125f0bf"> 357</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#aca9a8c998f85aacc920371753125f0bf">AddFriendForm::retranslateUi</a>()</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> {</div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <a class="code" href="classAddFriendForm.html#a6c6f34adc6041dbb5ab9b5e306c3a31e">headLabel</a>.setText(tr(<span class="stringliteral">"Add Friends"</span>));</div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="comment">//: The message you send in friend requests</span></div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keyword">static</span> <span class="keyword">const</span> QString messageLabelText = tr(<span class="stringliteral">"Message"</span>);</div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <a class="code" href="classAddFriendForm.html#aa54d36c0ae6b71286f4bac0c943fad64">messageLabel</a>.setText(messageLabelText);</div>
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <a class="code" href="classAddFriendForm.html#abd86331e7fb67d6a6f21679bd0f3a5e4">importMessageLabel</a>.setText(messageLabelText);</div>
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="comment">//: Button to choose a file with a list of contacts to import</span></div>
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <a class="code" href="classAddFriendForm.html#ae757ee024b549aa9f069d47ecf5ebc0f">importFileButton</a>.setText(tr(<span class="stringliteral">"Open"</span>));</div>
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <a class="code" href="classAddFriendForm.html#ae90f1db1feb89914b1e4d483b71fadc5">importSendButton</a>.setText(tr(<span class="stringliteral">"Send friend requests"</span>));</div>
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <a class="code" href="classAddFriendForm.html#a07ad1dbcff1a407bd5a76391e784f7bd">sendButton</a>.setText(tr(<span class="stringliteral">"Send friend request"</span>));</div>
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="comment">//: Default message in friend requests if the field is left blank. Write something appropriate!</span></div>
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <a class="code" href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">message</a>.setPlaceholderText(tr(<span class="stringliteral">"%1 here! Tox me maybe?"</span>).arg(<a class="code" href="classAddFriendForm.html#a83b45f8badab88954ba08ff958f4f5b8">lastUsername</a>));</div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <a class="code" href="classAddFriendForm.html#ada8358f01cdf14d208d2615b842ff182">importMessage</a>.setPlaceholderText(<a class="code" href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">message</a>.placeholderText());</div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  </div>
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="classAddFriendForm.html#a948ba723a9402987bea3b4a8e9f14ccb">importFileLabel</a>.setText(</div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a>.isEmpty()</div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  ? tr(<span class="stringliteral">"Import a list of contacts, one Tox ID per line"</span>)</div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="comment">//: Shows the number of contacts we're about to import from a file (at least one)</span></div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  : tr(<span class="stringliteral">"Ready to import %n contact(s), click send to confirm"</span>, <span class="stringliteral">""</span>, <a class="code" href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">contactsToImport</a>.size()));</div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  </div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <a class="code" href="classAddFriendForm.html#a2034347dfda8ba4fa55f00c271b1e6bd">onIdChanged</a>(<a class="code" href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">toxId</a>.text());</div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  </div>
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>->setTabText(<a class="code" href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782aad34234245298fceab74345f23c684a2">AddFriend</a>, tr(<span class="stringliteral">"Add a friend"</span>));</div>
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>->setTabText(<a class="code" href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782a01d75300819c968abcc3359099293a2a">ImportContacts</a>, tr(<span class="stringliteral">"Import contacts"</span>));</div>
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>->setTabText(<a class="code" href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782a948af49106190355f46e3199d4142252">FriendRequest</a>, tr(<span class="stringliteral">"Friend requests"</span>));</div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  </div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordflow">for</span> (QPushButton* acceptButton : <a class="code" href="classAddFriendForm.html#ab983cf747815a628dbc81f9f14f8217c">acceptButtons</a>) {</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <a class="code" href="classAddFriendForm.html#a4567fd50c66c1ac56a3c9cf6b844abe9">retranslateAcceptButton</a>(acceptButton);</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  }</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  </div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keywordflow">for</span> (QPushButton* rejectButton : <a class="code" href="classAddFriendForm.html#ab379cb8a3f7e5c6a30a724d3afc244ed">rejectButtons</a>) {</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <a class="code" href="classAddFriendForm.html#a5f7dceb68212d17ea5674848cc60f267">retranslateRejectButton</a>(rejectButton);</div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  }</div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> }</div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  </div>
<div class="line"><a name="l00393"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#aca363e4637d331d454c4433b95577000"> 393</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#aca363e4637d331d454c4433b95577000">AddFriendForm::addFriendRequestWidget</a>(<span class="keyword">const</span> QString& friendAddress, <span class="keyword">const</span> QString& message)</div>
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> {</div>
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  QWidget* friendWidget = <span class="keyword">new</span> QWidget(<a class="code" href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">tabWidget</a>);</div>
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  QHBoxLayout* friendLayout = <span class="keyword">new</span> QHBoxLayout(friendWidget);</div>
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  QVBoxLayout* horLayout = <span class="keyword">new</span> QVBoxLayout();</div>
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  horLayout->setMargin(0);</div>
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  friendLayout->addLayout(horLayout);</div>
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  </div>
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <a class="code" href="classCroppingLabel.html">CroppingLabel</a>* friendLabel = <span class="keyword">new</span> <a class="code" href="classCroppingLabel.html">CroppingLabel</a>(friendWidget);</div>
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  friendLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);</div>
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  friendLabel-><a class="code" href="classCroppingLabel.html#aa4515b48b52f077b250535c50b87b1f3">setText</a>(<span class="stringliteral">"<b>"</span> + friendAddress + <span class="stringliteral">"</b>"</span>);</div>
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  horLayout->addWidget(friendLabel);</div>
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  </div>
<div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  QLabel* <a class="code" href="classAddFriendForm.html#aa54d36c0ae6b71286f4bac0c943fad64">messageLabel</a> = <span class="keyword">new</span> QLabel(<a class="code" href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">message</a>);</div>
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="comment">// allow to select text, but treat links as plaintext to prevent phishing</span></div>
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <a class="code" href="classAddFriendForm.html#aa54d36c0ae6b71286f4bac0c943fad64">messageLabel</a>->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);</div>
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <a class="code" href="classAddFriendForm.html#aa54d36c0ae6b71286f4bac0c943fad64">messageLabel</a>->setTextFormat(Qt::PlainText);</div>
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <a class="code" href="classAddFriendForm.html#aa54d36c0ae6b71286f4bac0c943fad64">messageLabel</a>->setWordWrap(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  horLayout->addWidget(<a class="code" href="classAddFriendForm.html#aa54d36c0ae6b71286f4bac0c943fad64">messageLabel</a>, 1);</div>
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  </div>
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  QPushButton* acceptButton = <span class="keyword">new</span> QPushButton(friendWidget);</div>
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <a class="code" href="classAddFriendForm.html#ab983cf747815a628dbc81f9f14f8217c">acceptButtons</a>.append(acceptButton);</div>
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  connect(acceptButton, &QPushButton::released, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a9d34fd4815724e158b3c4eda512d0389">AddFriendForm::onFriendRequestAccepted</a>);</div>
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  friendLayout->addWidget(acceptButton);</div>
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <a class="code" href="classAddFriendForm.html#a4567fd50c66c1ac56a3c9cf6b844abe9">retranslateAcceptButton</a>(acceptButton);</div>
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  </div>
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  QPushButton* rejectButton = <span class="keyword">new</span> QPushButton(friendWidget);</div>
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <a class="code" href="classAddFriendForm.html#ab379cb8a3f7e5c6a30a724d3afc244ed">rejectButtons</a>.append(rejectButton);</div>
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  connect(rejectButton, &QPushButton::released, <span class="keyword">this</span>, &<a class="code" href="classAddFriendForm.html#a60bff5dd6bbf1742af9fd8d40d1c9eb5">AddFriendForm::onFriendRequestRejected</a>);</div>
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  friendLayout->addWidget(rejectButton);</div>
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <a class="code" href="classAddFriendForm.html#a5f7dceb68212d17ea5674848cc60f267">retranslateRejectButton</a>(rejectButton);</div>
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  </div>
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <a class="code" href="classAddFriendForm.html#af9fac53dbcff47b510982501fda99f70">requestsLayout</a>->insertWidget(0, friendWidget);</div>
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> }</div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  </div>
<div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#afbb4c961477901f94e4ab06b0f67d85c"> 428</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#afbb4c961477901f94e4ab06b0f67d85c">AddFriendForm::removeFriendRequestWidget</a>(QWidget* friendWidget)</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span> {</div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <span class="keywordtype">int</span> index = <a class="code" href="classAddFriendForm.html#af9fac53dbcff47b510982501fda99f70">requestsLayout</a>->indexOf(friendWidget);</div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  <a class="code" href="classAddFriendForm.html#af9fac53dbcff47b510982501fda99f70">requestsLayout</a>->removeWidget(friendWidget);</div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <a class="code" href="classAddFriendForm.html#ab983cf747815a628dbc81f9f14f8217c">acceptButtons</a>.removeAt(index);</div>
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <a class="code" href="classAddFriendForm.html#ab379cb8a3f7e5c6a30a724d3afc244ed">rejectButtons</a>.removeAt(index);</div>
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  friendWidget->deleteLater();</div>
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> }</div>
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  </div>
<div class="line"><a name="l00437"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a4567fd50c66c1ac56a3c9cf6b844abe9"> 437</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a4567fd50c66c1ac56a3c9cf6b844abe9">AddFriendForm::retranslateAcceptButton</a>(QPushButton* acceptButton)</div>
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> {</div>
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  acceptButton->setText(tr(<span class="stringliteral">"Accept"</span>));</div>
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> }</div>
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  </div>
<div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="classAddFriendForm.html#a5f7dceb68212d17ea5674848cc60f267"> 442</a></span> <span class="keywordtype">void</span> <a class="code" href="classAddFriendForm.html#a5f7dceb68212d17ea5674848cc60f267">AddFriendForm::retranslateRejectButton</a>(QPushButton* rejectButton)</div>
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> {</div>
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  rejectButton->setText(tr(<span class="stringliteral">"Reject"</span>));</div>
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span> }</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astyle_8h_html"><div class="ttname"><a href="style_8h.html">style.h</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ada8358f01cdf14d208d2615b842ff182"><div class="ttname"><a href="classAddFriendForm.html#ada8358f01cdf14d208d2615b842ff182">AddFriendForm::importMessage</a></div><div class="ttdeci">QTextEdit importMessage</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00100">addfriendform.h:100</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a2bcf8d6ef490913c60a0eb4f75b71886"><div class="ttname"><a href="classAddFriendForm.html#a2bcf8d6ef490913c60a0eb4f75b71886">AddFriendForm::onSendTriggered</a></div><div class="ttdeci">void onSendTriggered()</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00220">addfriendform.cpp:220</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a2034347dfda8ba4fa55f00c271b1e6bd"><div class="ttname"><a href="classAddFriendForm.html#a2034347dfda8ba4fa55f00c271b1e6bd">AddFriendForm::onIdChanged</a></div><div class="ttdeci">void onIdChanged(const QString &id)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00279">addfriendform.cpp:279</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="aclassAddFriendForm_html_aefb1b5164693999fdc015e1774f3e458"><div class="ttname"><a href="classAddFriendForm.html#aefb1b5164693999fdc015e1774f3e458">AddFriendForm::show</a></div><div class="ttdeci">void show(ContentLayout *contentLayout)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00149">addfriendform.cpp:149</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_adf1f1e00afc89e9272177e189ed65782aad34234245298fceab74345f23c684a2"><div class="ttname"><a href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782aad34234245298fceab74345f23c684a2">AddFriendForm::AddFriend</a></div><div class="ttdeci">@ AddFriend</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00043">addfriendform.h:43</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a6b4aa62d034c5fda6dda399a1e4cb603"><div class="ttname"><a href="classAddFriendForm.html#a6b4aa62d034c5fda6dda399a1e4cb603">AddFriendForm::onImportSendClicked</a></div><div class="ttdeci">void onImportSendClicked()</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00229">addfriendform.cpp:229</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_abd86331e7fb67d6a6f21679bd0f3a5e4"><div class="ttname"><a href="classAddFriendForm.html#abd86331e7fb67d6a6f21679bd0f3a5e4">AddFriendForm::importMessageLabel</a></div><div class="ttdeci">QLabel importMessageLabel</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00093">addfriendform.h:93</a></div></div>
<div class="ttc" id="aclassCroppingLabel_html"><div class="ttname"><a href="classCroppingLabel.html">CroppingLabel</a></div><div class="ttdef"><b>Definition:</b> <a href="croppinglabel_8h_source.html#l00026">croppinglabel.h:26</a></div></div>
<div class="ttc" id="aclassToxId_html_a634c79008d03313833d37a5f4e1d1218"><div class="ttname"><a href="classToxId.html#a634c79008d03313833d37a5f4e1d1218">ToxId::isValid</a></div><div class="ttdeci">bool isValid() const</div><div class="ttdoc">Check it it's a valid Tox ID by verifying the checksum.</div><div class="ttdef"><b>Definition:</b> <a href="toxid_8cpp_source.html#l00239">toxid.cpp:239</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a3dafe930bbd7bfe6b36083991b2d9146"><div class="ttname"><a href="classAddFriendForm.html#a3dafe930bbd7bfe6b36083991b2d9146">AddFriendForm::contactsToImport</a></div><div class="ttdeci">QList< QString > contactsToImport</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00113">addfriendform.h:113</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a07ac9f271eeaaaec515ac3d703f45eed"><div class="ttname"><a href="classAddFriendForm.html#a07ac9f271eeaaaec515ac3d703f45eed">AddFriendForm::AddFriendForm</a></div><div class="ttdeci">AddFriendForm(ToxId _ownId)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00064">addfriendform.cpp:64</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a01f4bd4e3c9e8ebc0099fcb707244aa1"><div class="ttname"><a href="classAddFriendForm.html#a01f4bd4e3c9e8ebc0099fcb707244aa1">AddFriendForm::onImportOpenClicked</a></div><div class="ttdeci">void onImportOpenClicked()</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00240">addfriendform.cpp:240</a></div></div>
<div class="ttc" id="aclassSettings_html_a9bf7be23026b81700ba7cf4395100688"><div class="ttname"><a href="classSettings.html#a9bf7be23026b81700ba7cf4395100688">Settings::removeFriendRequest</a></div><div class="ttdeci">void removeFriendRequest(int index)</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l02118">settings.cpp:2118</a></div></div>
<div class="ttc" id="aclassCroppingLabel_html_aa4515b48b52f077b250535c50b87b1f3"><div class="ttname"><a href="classCroppingLabel.html#aa4515b48b52f077b250535c50b87b1f3">CroppingLabel::setText</a></div><div class="ttdeci">void setText(const QString &text)</div><div class="ttdef"><b>Definition:</b> <a href="croppinglabel_8cpp_source.html#l00081">croppinglabel.cpp:81</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a47bea86b824c7e82e12d5ec49a4247d0"><div class="ttname"><a href="classAddFriendForm.html#a47bea86b824c7e82e12d5ec49a4247d0">AddFriendForm::isShown</a></div><div class="ttdeci">bool isShown() const</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00139">addfriendform.cpp:139</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a8cbdadda64ff8b9bc035238c632589ac"><div class="ttname"><a href="classAddFriendForm.html#a8cbdadda64ff8b9bc035238c632589ac">AddFriendForm::setIdFromClipboard</a></div><div class="ttdeci">void setIdFromClipboard()</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00301">addfriendform.cpp:301</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="astructSettings_1_1Request_html_a212df6564b72716fe39eec816eaa3e30"><div class="ttname"><a href="structSettings_1_1Request.html#a212df6564b72716fe39eec816eaa3e30">Settings::Request::message</a></div><div class="ttdeci">QString message</div><div class="ttdef"><b>Definition:</b> <a href="settings_8h_source.html#l00165">settings.h:165</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ab3f77818c50ba5901db9d6d3953267c4"><div class="ttname"><a href="classAddFriendForm.html#ab3f77818c50ba5901db9d6d3953267c4">AddFriendForm::friendRequestAccepted</a></div><div class="ttdeci">void friendRequestAccepted(const ToxPk &friendAddress)</div></div>
<div class="ttc" id="aclassAddFriendForm_html_a349c7276eed501e8cd4a8aa2b8ee46eb"><div class="ttname"><a href="classAddFriendForm.html#a349c7276eed501e8cd4a8aa2b8ee46eb">AddFriendForm::deleteFriendRequest</a></div><div class="ttdeci">void deleteFriendRequest(const ToxId &toxId)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00312">addfriendform.cpp:312</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a5f7dceb68212d17ea5674848cc60f267"><div class="ttname"><a href="classAddFriendForm.html#a5f7dceb68212d17ea5674848cc60f267">AddFriendForm::retranslateRejectButton</a></div><div class="ttdeci">void retranslateRejectButton(QPushButton *rejectButton)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00442">addfriendform.cpp:442</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_af85938d804fe1977c0192d8d67ed5c45"><div class="ttname"><a href="classAddFriendForm.html#af85938d804fe1977c0192d8d67ed5c45">AddFriendForm::friendRequestsSeen</a></div><div class="ttdeci">void friendRequestsSeen()</div></div>
<div class="ttc" id="aclassAddFriendForm_html_a9d34fd4815724e158b3c4eda512d0389"><div class="ttname"><a href="classAddFriendForm.html#a9d34fd4815724e158b3c4eda512d0389">AddFriendForm::onFriendRequestAccepted</a></div><div class="ttdeci">void onFriendRequestAccepted()</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00324">addfriendform.cpp:324</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a0fdd77d6845d876d0552b14c0702c464"><div class="ttname"><a href="classAddFriendForm.html#a0fdd77d6845d876d0552b14c0702c464">AddFriendForm::message</a></div><div class="ttdeci">QTextEdit message</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00099">addfriendform.h:99</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ae0fd16d3214ea51c3177491a8ddecb39"><div class="ttname"><a href="classAddFriendForm.html#ae0fd16d3214ea51c3177491a8ddecb39">AddFriendForm::toxId</a></div><div class="ttdeci">QLineEdit toxId</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00098">addfriendform.h:98</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a77b55f19275cf414a8c4625ab2d8006f"><div class="ttname"><a href="classAddFriendForm.html#a77b55f19275cf414a8c4625ab2d8006f">AddFriendForm::friendRequested</a></div><div class="ttdeci">void friendRequested(const ToxId &friendAddress, const QString &message)</div></div>
<div class="ttc" id="aclassAddFriendForm_html_a83b45f8badab88954ba08ff958f4f5b8"><div class="ttname"><a href="classAddFriendForm.html#a83b45f8badab88954ba08ff958f4f5b8">AddFriendForm::lastUsername</a></div><div class="ttdeci">QString lastUsername</div><div class="ttdoc">Cached username so we can retranslate the invite message.</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00108">addfriendform.h:108</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a716d474475e1f366a1f23b400f3d5901"><div class="ttname"><a href="classAddFriendForm.html#a716d474475e1f366a1f23b400f3d5901">AddFriendForm::tabWidget</a></div><div class="ttdeci">QTabWidget * tabWidget</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00109">addfriendform.h:109</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a0ed33261ef3cf36a1e5c17ab5acb8240"><div class="ttname"><a href="classAddFriendForm.html#a0ed33261ef3cf36a1e5c17ab5acb8240">AddFriendForm::onUsernameSet</a></div><div class="ttdeci">void onUsernameSet(const QString &userName)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00194">addfriendform.cpp:194</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a07ad1dbcff1a407bd5a76391e784f7bd"><div class="ttname"><a href="classAddFriendForm.html#a07ad1dbcff1a407bd5a76391e784f7bd">AddFriendForm::sendButton</a></div><div class="ttdeci">QPushButton sendButton</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00095">addfriendform.h:95</a></div></div>
<div class="ttc" id="acroppinglabel_8h_html"><div class="ttname"><a href="croppinglabel_8h.html">croppinglabel.h</a></div></div>
<div class="ttc" id="aclassToxId_html_a833f176a68c64f7661b370209d4b2eba"><div class="ttname"><a href="classToxId.html#a833f176a68c64f7661b370209d4b2eba">ToxId::isToxId</a></div><div class="ttdeci">static bool isToxId(const QString &id)</div><div class="ttdoc">Check, that id is probably a valid Tox ID.</div><div class="ttdef"><b>Definition:</b> <a href="toxid_8cpp_source.html#l00230">toxid.cpp:230</a></div></div>
<div class="ttc" id="aclassContentLayout_html_a320cb41989ec680de531b2c7dc4acb37"><div class="ttname"><a href="classContentLayout.html#a320cb41989ec680de531b2c7dc4acb37">ContentLayout::mainHead</a></div><div class="ttdeci">QWidget * mainHead</div><div class="ttdef"><b>Definition:</b> <a href="contentlayout_8h_source.html#l00037">contentlayout.h:37</a></div></div>
<div class="ttc" id="ahistory_8h_html_a0ee552d065aa1e11e1a4d6da9a79407da78e731027d8fd50ed642340b7c9a63b3"><div class="ttname"><a href="history_8h.html#a0ee552d065aa1e11e1a4d6da9a79407da78e731027d8fd50ed642340b7c9a63b3">HistMessageContentType::message</a></div><div class="ttdeci">@ message</div></div>
<div class="ttc" id="aclassAddFriendForm_html_adf1f1e00afc89e9272177e189ed65782"><div class="ttname"><a href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782">AddFriendForm::Mode</a></div><div class="ttdeci">Mode</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00041">addfriendform.h:41</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_acccf3c2041315cdf36b0dc4d9f308e72"><div class="ttname"><a href="classAddFriendForm.html#acccf3c2041315cdf36b0dc4d9f308e72">AddFriendForm::ownId</a></div><div class="ttdeci">ToxId ownId</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00115">addfriendform.h:115</a></div></div>
<div class="ttc" id="aclassToxPk_html"><div class="ttname"><a href="classToxPk.html">ToxPk</a></div><div class="ttdoc">This class represents a Tox Public Key, which is a part of Tox ID.</div><div class="ttdef"><b>Definition:</b> <a href="toxpk_8h_source.html#l00026">toxpk.h:26</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ab983cf747815a628dbc81f9f14f8217c"><div class="ttname"><a href="classAddFriendForm.html#ab983cf747815a628dbc81f9f14f8217c">AddFriendForm::acceptButtons</a></div><div class="ttdeci">QList< QPushButton * > acceptButtons</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00111">addfriendform.h:111</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_af5a1fd55c2a16c4ee3943bdb4c228cfd"><div class="ttname"><a href="classAddFriendForm.html#af5a1fd55c2a16c4ee3943bdb4c228cfd">AddFriendForm::getImportMessage</a></div><div class="ttdeci">QString getImportMessage() const</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00170">addfriendform.cpp:170</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a60bff5dd6bbf1742af9fd8d40d1c9eb5"><div class="ttname"><a href="classAddFriendForm.html#a60bff5dd6bbf1742af9fd8d40d1c9eb5">AddFriendForm::onFriendRequestRejected</a></div><div class="ttdeci">void onFriendRequestRejected()</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00337">addfriendform.cpp:337</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a21cf79acb3f2fc34de328d884b62f465"><div class="ttname"><a href="classAddFriendForm.html#a21cf79acb3f2fc34de328d884b62f465">AddFriendForm::addFriendRequest</a></div><div class="ttdeci">bool addFriendRequest(const QString &friendAddress, const QString &message)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00181">addfriendform.cpp:181</a></div></div>
<div class="ttc" id="astructSettings_1_1Request_html"><div class="ttname"><a href="structSettings_1_1Request.html">Settings::Request</a></div><div class="ttdef"><b>Definition:</b> <a href="settings_8h_source.html#l00162">settings.h:162</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a4567fd50c66c1ac56a3c9cf6b844abe9"><div class="ttname"><a href="classAddFriendForm.html#a4567fd50c66c1ac56a3c9cf6b844abe9">AddFriendForm::retranslateAcceptButton</a></div><div class="ttdeci">void retranslateAcceptButton(QPushButton *acceptButton)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00437">addfriendform.cpp:437</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a7f339759d7ae85f9054471d04b8584dc"><div class="ttname"><a href="classAddFriendForm.html#a7f339759d7ae85f9054471d04b8584dc">AddFriendForm::onCurrentChanged</a></div><div class="ttdeci">void onCurrentChanged(int index)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00348">addfriendform.cpp:348</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_afbb4c961477901f94e4ab06b0f67d85c"><div class="ttname"><a href="classAddFriendForm.html#afbb4c961477901f94e4ab06b0f67d85c">AddFriendForm::removeFriendRequestWidget</a></div><div class="ttdeci">void removeFriendRequestWidget(QWidget *friendWidget)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00428">addfriendform.cpp:428</a></div></div>
<div class="ttc" id="aclassCore_html_a7460bedc7ff3e1928fb7224f18061baa"><div class="ttname"><a href="classCore.html#a7460bedc7ff3e1928fb7224f18061baa">Core::usernameSet</a></div><div class="ttdeci">void usernameSet(const QString &username)</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="aclassToxId_html"><div class="ttname"><a href="classToxId.html">ToxId</a></div><div class="ttdoc">This class represents a Tox ID.</div><div class="ttdef"><b>Definition:</b> <a href="toxid_8h_source.html#l00029">toxid.h:29</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ae757ee024b549aa9f069d47ecf5ebc0f"><div class="ttname"><a href="classAddFriendForm.html#ae757ee024b549aa9f069d47ecf5ebc0f">AddFriendForm::importFileButton</a></div><div class="ttdeci">QPushButton importFileButton</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00096">addfriendform.h:96</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_aa54d36c0ae6b71286f4bac0c943fad64"><div class="ttname"><a href="classAddFriendForm.html#aa54d36c0ae6b71286f4bac0c943fad64">AddFriendForm::messageLabel</a></div><div class="ttdeci">QLabel messageLabel</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00091">addfriendform.h:91</a></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="aclassAddFriendForm_html_ab869c0a381e1aa3272af99d756a42848"><div class="ttname"><a href="classAddFriendForm.html#ab869c0a381e1aa3272af99d756a42848">AddFriendForm::getMessage</a></div><div class="ttdeci">QString getMessage() const</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00164">addfriendform.cpp:164</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ae90f1db1feb89914b1e4d483b71fadc5"><div class="ttname"><a href="classAddFriendForm.html#ae90f1db1feb89914b1e4d483b71fadc5">AddFriendForm::importSendButton</a></div><div class="ttdeci">QPushButton importSendButton</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00097">addfriendform.h:97</a></div></div>
<div class="ttc" id="acontentlayout_8h_html"><div class="ttname"><a href="contentlayout_8h.html">contentlayout.h</a></div></div>
<div class="ttc" id="aclassSettings_html_accf237ab89ab4e6f6db5311f09ee60c0"><div class="ttname"><a href="classSettings.html#accf237ab89ab4e6f6db5311f09ee60c0">Settings::clearUnreadFriendRequests</a></div><div class="ttdeci">void clearUnreadFriendRequests()</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l02110">settings.cpp:2110</a></div></div>
<div class="ttc" id="aclassGUI_html_ab1c1a41d742cabece0bdde6e020a80b7"><div class="ttname"><a href="classGUI.html#ab1c1a41d742cabece0bdde6e020a80b7">GUI::showWarning</a></div><div class="ttdeci">static void showWarning(const QString &title, const QString &msg)</div><div class="ttdoc">Show a warning to the user.</div><div class="ttdef"><b>Definition:</b> <a href="gui_8cpp_source.html#l00130">gui.cpp:130</a></div></div>
<div class="ttc" id="aclassSettings_html_ae18d467086c5db4426982e732c851b31"><div class="ttname"><a href="classSettings.html#ae18d467086c5db4426982e732c851b31">Settings::getFriendRequestSize</a></div><div class="ttdeci">int getFriendRequestSize() const</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l02104">settings.cpp:2104</a></div></div>
<div class="ttc" id="aclassStyle_html_a0ef91fd7007fb061d38c9c82396dabd3"><div class="ttname"><a href="classStyle.html#a0ef91fd7007fb061d38c9c82396dabd3">Style::getStylesheet</a></div><div class="ttdeci">static const QString getStylesheet(const QString &filename, const QFont &baseFont=QFont())</div><div class="ttdef"><b>Definition:</b> <a href="style_8cpp_source.html#l00165">style.cpp:165</a></div></div>
<div class="ttc" id="acore_8h_html"><div class="ttname"><a href="core_8h.html">core.h</a></div></div>
<div class="ttc" id="aclassSettings_html_a2a46de183eb4f38f55a44702c5ca15c6"><div class="ttname"><a href="classSettings.html#a2a46de183eb4f38f55a44702c5ca15c6">Settings::savePersonal</a></div><div class="ttdeci">void savePersonal()</div><div class="ttdoc">Asynchronous, saves the current profile.</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l00717">settings.cpp:717</a></div></div>
<div class="ttc" id="aclassContentLayout_html_a891315231e65bc6bd9d52dade8fa16ae"><div class="ttname"><a href="classContentLayout.html#a891315231e65bc6bd9d52dade8fa16ae">ContentLayout::mainContent</a></div><div class="ttdeci">QWidget * mainContent</div><div class="ttdef"><b>Definition:</b> <a href="contentlayout_8h_source.html#l00036">contentlayout.h:36</a></div></div>
<div class="ttc" id="aclassContentLayout_html"><div class="ttname"><a href="classContentLayout.html">ContentLayout</a></div><div class="ttdef"><b>Definition:</b> <a href="contentlayout_8h_source.html#l00025">contentlayout.h:25</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a948ba723a9402987bea3b4a8e9f14ccb"><div class="ttname"><a href="classAddFriendForm.html#a948ba723a9402987bea3b4a8e9f14ccb">AddFriendForm::importFileLabel</a></div><div class="ttdeci">QLabel importFileLabel</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00092">addfriendform.h:92</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ad57a4223a519b32d8370af0d447e1d20"><div class="ttname"><a href="classAddFriendForm.html#ad57a4223a519b32d8370af0d447e1d20">AddFriendForm::addFriend</a></div><div class="ttdeci">void addFriend(const QString &idText)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00200">addfriendform.cpp:200</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_adf1f1e00afc89e9272177e189ed65782a948af49106190355f46e3199d4142252"><div class="ttname"><a href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782a948af49106190355f46e3199d4142252">AddFriendForm::FriendRequest</a></div><div class="ttdeci">@ FriendRequest</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00045">addfriendform.h:45</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="aclassAddFriendForm_html_aca363e4637d331d454c4433b95577000"><div class="ttname"><a href="classAddFriendForm.html#aca363e4637d331d454c4433b95577000">AddFriendForm::addFriendRequestWidget</a></div><div class="ttdeci">void addFriendRequestWidget(const QString &friendAddress, const QString &message)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00393">addfriendform.cpp:393</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ad97e48d08fa03be051d9ddbe9b070e2b"><div class="ttname"><a href="classAddFriendForm.html#ad97e48d08fa03be051d9ddbe9b070e2b">AddFriendForm::setMode</a></div><div class="ttdeci">void setMode(Mode mode)</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00176">addfriendform.cpp:176</a></div></div>
<div class="ttc" id="astructSettings_1_1Request_html_a40c8dc13f558136c5a9fbe96768097b9"><div class="ttname"><a href="structSettings_1_1Request.html#a40c8dc13f558136c5a9fbe96768097b9">Settings::Request::address</a></div><div class="ttdeci">QString address</div><div class="ttdef"><b>Definition:</b> <a href="settings_8h_source.html#l00164">settings.h:164</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a73391e05aad5354202dec1c8b93532e1"><div class="ttname"><a href="classAddFriendForm.html#a73391e05aad5354202dec1c8b93532e1">AddFriendForm::head</a></div><div class="ttdeci">QWidget * head</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00105">addfriendform.h:105</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="aclassNexus_html_afb7493da9f29676c4a46a0c4adefd880"><div class="ttname"><a href="classNexus.html#afb7493da9f29676c4a46a0c4adefd880">Nexus::getCore</a></div><div class="ttdeci">static Core * getCore()</div><div class="ttdoc">Get core instance.</div><div class="ttdef"><b>Definition:</b> <a href="nexus_8cpp_source.html#l00277">nexus.cpp:277</a></div></div>
<div class="ttc" id="aclassSettings_html_a9aae9a8af8243944c6f3977eaae66114"><div class="ttname"><a href="classSettings.html#a9aae9a8af8243944c6f3977eaae66114">Settings::getFriendRequest</a></div><div class="ttdeci">Request getFriendRequest(int index) const</div><div class="ttdef"><b>Definition:</b> <a href="settings_8cpp_source.html#l02098">settings.cpp:2098</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a6c6f34adc6041dbb5ab9b5e306c3a31e"><div class="ttname"><a href="classAddFriendForm.html#a6c6f34adc6041dbb5ab9b5e306c3a31e">AddFriendForm::headLabel</a></div><div class="ttdeci">QLabel headLabel</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00089">addfriendform.h:89</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ab379cb8a3f7e5c6a30a724d3afc244ed"><div class="ttname"><a href="classAddFriendForm.html#ab379cb8a3f7e5c6a30a724d3afc244ed">AddFriendForm::rejectButtons</a></div><div class="ttdeci">QList< QPushButton * > rejectButtons</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00112">addfriendform.h:112</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_af9fac53dbcff47b510982501fda99f70"><div class="ttname"><a href="classAddFriendForm.html#af9fac53dbcff47b510982501fda99f70">AddFriendForm::requestsLayout</a></div><div class="ttdeci">QVBoxLayout * requestsLayout</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00110">addfriendform.h:110</a></div></div>
<div class="ttc" id="anexus_8h_html"><div class="ttname"><a href="nexus_8h.html">nexus.h</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_adf1f1e00afc89e9272177e189ed65782a01d75300819c968abcc3359099293a2a"><div class="ttname"><a href="classAddFriendForm.html#adf1f1e00afc89e9272177e189ed65782a01d75300819c968abcc3359099293a2a">AddFriendForm::ImportContacts</a></div><div class="ttdeci">@ ImportContacts</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00044">addfriendform.h:44</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_ad290561ea601cd636c7f2c022488cae4"><div class="ttname"><a href="classAddFriendForm.html#ad290561ea601cd636c7f2c022488cae4">AddFriendForm::~AddFriendForm</a></div><div class="ttdeci">~AddFriendForm()</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00132">addfriendform.cpp:132</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_a25227113e958a6c0875a5a7122864bbe"><div class="ttname"><a href="classAddFriendForm.html#a25227113e958a6c0875a5a7122864bbe">AddFriendForm::toxIdLabel</a></div><div class="ttdeci">QLabel toxIdLabel</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8h_source.html#l00090">addfriendform.h:90</a></div></div>
<div class="ttc" id="amain_8cpp_html_a0ddf1224851353fc92bfbff6f499fa97"><div class="ttname"><a href="main_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a></div><div class="ttdeci">int main(int argc, char *argv[])</div><div class="ttdef"><b>Definition:</b> <a href="main_8cpp_source.html#l00190">main.cpp:190</a></div></div>
<div class="ttc" id="aaddfriendform_8h_html"><div class="ttname"><a href="addfriendform_8h.html">addfriendform.h</a></div></div>
<div class="ttc" id="aclassAddFriendForm_html_aca9a8c998f85aacc920371753125f0bf"><div class="ttname"><a href="classAddFriendForm.html#aca9a8c998f85aacc920371753125f0bf">AddFriendForm::retranslateUi</a></div><div class="ttdeci">void retranslateUi()</div><div class="ttdef"><b>Definition:</b> <a href="addfriendform_8cpp_source.html#l00357">addfriendform.cpp:357</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>