qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
privacyform.h
Go to the documentation of this file.
1 /*
2  Copyright © 2014-2019 by The qTox Project Contributors
3 
4  This file is part of qTox, a Qt-based graphical interface for Tox.
5 
6  qTox is libre software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  qTox is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with qTox. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #pragma once
21 
22 #include "genericsettings.h"
23 
24 class Core;
25 
26 namespace Ui {
27 class PrivacySettings;
28 }
29 
30 class PrivacyForm : public GenericForm
31 {
32  Q_OBJECT
33 public:
34  PrivacyForm(Core* _core);
35  ~PrivacyForm();
36  QString getFormName() final
37  {
38  return tr("Privacy");
39  }
40 
41 signals:
42  void clearAllReceipts();
43 
44 private slots:
51  void showEvent(QShowEvent*) final;
52 
53 private:
54  void retranslateUi();
55 
56 private:
57  Ui::PrivacySettings* bodyUI;
59 };
PrivacyForm::bodyUI
Ui::PrivacySettings * bodyUI
Definition: privacyform.h:57
PrivacyForm::core
Core * core
Definition: privacyform.h:58
PrivacyForm::on_randomNosapamButton_clicked
void on_randomNosapamButton_clicked()
Definition: privacyform.cpp:103
PrivacyForm::~PrivacyForm
~PrivacyForm()
Definition: privacyform.cpp:56
genericsettings.h
Ui
Definition: filetransferwidget.h:30
PrivacyForm::on_blackListTextEdit_textChanged
void on_blackListTextEdit_textChanged()
Definition: privacyform.cpp:125
PrivacyForm::clearAllReceipts
void clearAllReceipts()
PrivacyForm::getFormName
QString getFormName() final
Definition: privacyform.h:36
PrivacyForm::on_nospamLineEdit_textChanged
void on_nospamLineEdit_textChanged()
Definition: privacyform.cpp:114
PrivacyForm::on_cbKeepHistory_stateChanged
void on_cbKeepHistory_stateChanged()
Definition: privacyform.cpp:62
PrivacyForm::showEvent
void showEvent(QShowEvent *) final
Definition: privacyform.cpp:94
PrivacyForm::on_nospamLineEdit_editingFinished
void on_nospamLineEdit_editingFinished()
Definition: privacyform.cpp:83
PrivacyForm::retranslateUi
void retranslateUi()
Definition: privacyform.cpp:131
PrivacyForm::on_cbTypingNotification_stateChanged
void on_cbTypingNotification_stateChanged()
Definition: privacyform.cpp:78
PrivacyForm
Definition: privacyform.h:30
GenericForm
Definition: genericsettings.h:24
PrivacyForm::PrivacyForm
PrivacyForm(Core *_core)
Definition: privacyform.cpp:42
Core
Definition: core.h:59