Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsettings_wasm.cpp File Reference
#include "qsettings.h"
#include "qsettings_p.h"
#include "qcoreapplication.h"
#include <QFile>
#include <QDebug>
#include <QFileInfo>
#include <QDir>
#include <QList>
#include <emscripten.h>
#include <emscripten/val.h>
+ Include dependency graph for qsettings_wasm.cpp:

Go to the source code of this file.

Classes

class  QWasmLocalStorageSettingsPrivate
 
class  QWasmIDBSettingsPrivate
 

Functions

static void QWasmIDBSettingsPrivate_onLoad (void *userData, void *dataPtr, int size)
 
static void QWasmIDBSettingsPrivate_onError (void *userData)
 
static void QWasmIDBSettingsPrivate_onStore (void *userData)
 
static void QWasmIDBSettingsPrivate_onCheck (void *userData, int exists)
 

Variables

static bool isReadReady = false
 

Function Documentation

◆ QWasmIDBSettingsPrivate_onCheck()

static void QWasmIDBSettingsPrivate_onCheck ( void userData,
int  exists 
)
static

Definition at line 234 of file qsettings_wasm.cpp.

References QSettings::fileName(), QWasmIDBSettingsPrivate::get(), settings, and QString::toLocal8Bit().

Referenced by QWasmIDBSettingsPrivate::QWasmIDBSettingsPrivate().

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

◆ QWasmIDBSettingsPrivate_onError()

static void QWasmIDBSettingsPrivate_onError ( void userData)
static

Definition at line 222 of file qsettings_wasm.cpp.

References QSettings::AccessError, QWasmIDBSettingsPrivate::get(), and settings.

Referenced by QWasmIDBSettingsPrivate::QWasmIDBSettingsPrivate(), QWasmIDBSettingsPrivate::clear(), QWasmIDBSettingsPrivate::loadLocal(), QWasmIDBSettingsPrivate::sync(), and QWasmIDBSettingsPrivate::syncToLocal().

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

◆ QWasmIDBSettingsPrivate_onLoad()

static void QWasmIDBSettingsPrivate_onLoad ( void userData,
void dataPtr,
int  size 
)
static

Definition at line 203 of file qsettings_wasm.cpp.

References QFileDevice::close(), dir, file, QSettings::fileName(), QWasmIDBSettingsPrivate::get(), QFile::open(), QFileInfo::path(), settings, QIODevice::write(), and QIODeviceBase::WriteOnly.

Referenced by QWasmIDBSettingsPrivate::loadLocal().

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

◆ QWasmIDBSettingsPrivate_onStore()

static void QWasmIDBSettingsPrivate_onStore ( void userData)
static

Definition at line 228 of file qsettings_wasm.cpp.

References QWasmIDBSettingsPrivate::get(), QSettings::NoError, and settings.

Referenced by QWasmIDBSettingsPrivate::clear(), QWasmIDBSettingsPrivate::sync(), and QWasmIDBSettingsPrivate::syncToLocal().

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

Variable Documentation

◆ isReadReady