qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
src
core
toxoptions.h
Go to the documentation of this file.
1
/*
2
Copyright © 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 <QByteArray>
23
24
#include <memory>
25
26
class
ICoreSettings
;
27
struct
Tox_Options;
28
29
class
ToxOptions
30
{
31
public
:
32
~ToxOptions
();
33
ToxOptions
(
ToxOptions
&& from);
34
operator
Tox_Options*();
35
const
char
*
getProxyAddrData
()
const
;
36
static
std::unique_ptr<ToxOptions>
makeToxOptions
(
const
QByteArray& savedata,
37
const
ICoreSettings
& s);
38
bool
getIPv6Enabled
()
const
;
39
void
setIPv6Enabled
(
bool
enabled);
40
41
private
:
42
ToxOptions
(Tox_Options*
options
,
const
QByteArray&
proxyAddrData
);
43
44
private
:
45
Tox_Options*
options
=
nullptr
;
46
QByteArray
proxyAddrData
;
47
};
ToxOptions::ToxOptions
ToxOptions(ToxOptions &&from)
Definition:
toxoptions.cpp:46
ToxOptions
Definition:
toxoptions.h:29
ToxOptions::~ToxOptions
~ToxOptions()
Definition:
toxoptions.cpp:41
ToxOptions::makeToxOptions
static std::unique_ptr< ToxOptions > makeToxOptions(const QByteArray &savedata, const ICoreSettings &s)
Initializes a ToxOptions instance.
Definition:
toxoptions.cpp:69
ToxOptions::getIPv6Enabled
bool getIPv6Enabled() const
Definition:
toxoptions.cpp:147
ToxOptions::proxyAddrData
QByteArray proxyAddrData
Definition:
toxoptions.h:46
ToxOptions::getProxyAddrData
const char * getProxyAddrData() const
Definition:
toxoptions.cpp:54
ToxOptions::setIPv6Enabled
void setIPv6Enabled(bool enabled)
Definition:
toxoptions.cpp:152
ToxOptions::options
Tox_Options * options
Definition:
toxoptions.h:45
ICoreSettings
Definition:
icoresettings.h:28
Generated by
1.8.17