qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ToxOptions Class Reference

#include <toxoptions.h>

Collaboration diagram for ToxOptions:
Collaboration graph

Public Member Functions

 ~ToxOptions ()
 
 ToxOptions (ToxOptions &&from)
 
 operator Tox_Options * ()
 
const char * getProxyAddrData () const
 
bool getIPv6Enabled () const
 
void setIPv6Enabled (bool enabled)
 

Static Public Member Functions

static std::unique_ptr< ToxOptionsmakeToxOptions (const QByteArray &savedata, const ICoreSettings &s)
 Initializes a ToxOptions instance. More...
 

Private Member Functions

 ToxOptions (Tox_Options *options, const QByteArray &proxyAddrData)
 The ToxOptions class wraps the Tox_Options struct and the matching proxy address data. This is needed to ensure both have equal lifetime and are correctly deleted. More...
 

Private Attributes

Tox_Options * options = nullptr
 
QByteArray proxyAddrData
 

Detailed Description

Definition at line 29 of file toxoptions.h.

Constructor & Destructor Documentation

◆ ~ToxOptions()

ToxOptions::~ToxOptions ( )

Definition at line 41 of file toxoptions.cpp.

◆ ToxOptions() [1/2]

ToxOptions::ToxOptions ( ToxOptions &&  from)

Definition at line 46 of file toxoptions.cpp.

Here is the caller graph for this function:

◆ ToxOptions() [2/2]

ToxOptions::ToxOptions ( Tox_Options *  options,
const QByteArray &  proxyAddrData 
)
private

The ToxOptions class wraps the Tox_Options struct and the matching proxy address data. This is needed to ensure both have equal lifetime and are correctly deleted.

Definition at line 36 of file toxoptions.cpp.

Member Function Documentation

◆ getIPv6Enabled()

bool ToxOptions::getIPv6Enabled ( ) const

Definition at line 147 of file toxoptions.cpp.

◆ getProxyAddrData()

const char * ToxOptions::getProxyAddrData ( ) const

Definition at line 54 of file toxoptions.cpp.

◆ makeToxOptions()

std::unique_ptr< ToxOptions > ToxOptions::makeToxOptions ( const QByteArray &  savedata,
const ICoreSettings s 
)
static

Initializes a ToxOptions instance.

Parameters
savedataPreviously saved Tox data
Returns
ToxOptions instance initialized to create Tox instance

Definition at line 69 of file toxoptions.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator Tox_Options *()

ToxOptions::operator Tox_Options * ( )

Definition at line 59 of file toxoptions.cpp.

◆ setIPv6Enabled()

void ToxOptions::setIPv6Enabled ( bool  enabled)

Definition at line 152 of file toxoptions.cpp.

Member Data Documentation

◆ options

Tox_Options* ToxOptions::options = nullptr
private

Definition at line 45 of file toxoptions.h.

◆ proxyAddrData

QByteArray ToxOptions::proxyAddrData
private

Definition at line 46 of file toxoptions.h.


The documentation for this class was generated from the following files: