Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsettings_win.cpp File Reference

(29a6cb338604d53c74a06ce0eca8c9a9039a98d0)

#include "qsettings.h"
#include "qsettings_p.h"
#include "qlist.h"
#include "qmap.h"
#include "qdebug.h"
#include "qscopeguard.h"
#include <QtCore/private/wcharhelpers_win_p.h>
#include <qt_windows.h>
+ Include dependency graph for qsettings_win.cpp:

Go to the source code of this file.

Classes

class  RegistryKey
 
class  QWinSettingsPrivate
 

Macros

#define KEY_WOW64_64KEY   0x0100
 
#define KEY_WOW64_32KEY   0x0200
 

Typedefs

typedef QMap< QString, QStringNameSet
 
typedef QList< RegistryKeyRegistryKeyList
 

Functions

static QString keyPath (const QString &rKey)
 
static QString keyName (const QString &rKey)
 
static QString escapedKey (QString uKey)
 
static QString unescapedKey (QString rKey)
 
static void mergeKeySets (NameSet *dest, const NameSet &src)
 
static void mergeKeySets (NameSet *dest, const QStringList &src)
 
static HKEY openKey (HKEY parentHandle, REGSAM perms, const QString &rSubKey, REGSAM access=0)
 
static HKEY createOrOpenKey (HKEY parentHandle, REGSAM perms, const QString &rSubKey, REGSAM access=0)
 
static HKEY createOrOpenKey (HKEY parentHandle, const QString &rSubKey, bool *readOnly, REGSAM access=0)
 
static QStringList childKeysOrGroups (HKEY parentHandle, QSettingsPrivate::ChildSpec spec)
 
static void allKeys (HKEY parentHandle, const QString &rSubKey, NameSet *result, REGSAM access=0)
 
static void deleteChildGroups (HKEY parentHandle, REGSAM access=0)
 

Variables

static const REGSAM registryPermissions = KEY_READ | KEY_WRITE
 

Macro Definition Documentation

◆ KEY_WOW64_32KEY

#define KEY_WOW64_32KEY   0x0200

Definition at line 24 of file qsettings_win.cpp.

◆ KEY_WOW64_64KEY

#define KEY_WOW64_64KEY   0x0100

Definition at line 19 of file qsettings_win.cpp.

Typedef Documentation

◆ NameSet

typedef QMap< QString, QString > NameSet

Definition at line 88 of file qsettings_win.cpp.

◆ RegistryKeyList

Definition at line 341 of file qsettings_win.cpp.

Function Documentation

◆ allKeys()

static void allKeys ( HKEY parentHandle,
const QString & rSubKey,
NameSet * result,
REGSAM access = 0 )
static

Definition at line 225 of file qsettings_win.cpp.

◆ childKeysOrGroups()

static QStringList childKeysOrGroups ( HKEY parentHandle,
QSettingsPrivate::ChildSpec spec )
static

Definition at line 168 of file qsettings_win.cpp.

◆ createOrOpenKey() [1/2]

static HKEY createOrOpenKey ( HKEY parentHandle,
const QString & rSubKey,
bool * readOnly,
REGSAM access = 0 )
static

Definition at line 148 of file qsettings_win.cpp.

◆ createOrOpenKey() [2/2]

static HKEY createOrOpenKey ( HKEY parentHandle,
REGSAM perms,
const QString & rSubKey,
REGSAM access = 0 )
static

Definition at line 126 of file qsettings_win.cpp.

◆ deleteChildGroups()

static void deleteChildGroups ( HKEY parentHandle,
REGSAM access = 0 )
static

Definition at line 252 of file qsettings_win.cpp.

◆ escapedKey()

static QString escapedKey ( QString uKey)
static

Definition at line 69 of file qsettings_win.cpp.

◆ keyName()

static QString keyName ( const QString & rKey)
static

Definition at line 53 of file qsettings_win.cpp.

◆ keyPath()

static QString keyPath ( const QString & rKey)
static

Definition at line 45 of file qsettings_win.cpp.

◆ mergeKeySets() [1/2]

static void mergeKeySets ( NameSet * dest,
const NameSet & src )
static

Definition at line 90 of file qsettings_win.cpp.

◆ mergeKeySets() [2/2]

static void mergeKeySets ( NameSet * dest,
const QStringList & src )
static

Definition at line 97 of file qsettings_win.cpp.

◆ openKey()

static HKEY openKey ( HKEY parentHandle,
REGSAM perms,
const QString & rSubKey,
REGSAM access = 0 )
static

Definition at line 112 of file qsettings_win.cpp.

◆ unescapedKey()

static QString unescapedKey ( QString rKey)
static

Definition at line 83 of file qsettings_win.cpp.

Variable Documentation

◆ registryPermissions

static const REGSAM registryPermissions = KEY_READ | KEY_WRITE
static

Definition at line 43 of file qsettings_win.cpp.