Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qstandardpaths_win.cpp File Reference
#include "qstandardpaths.h"
#include <qdir.h>
#include <qstringlist.h>
#include <qcoreapplication.h>
#include <qt_windows.h>
#include <shlobj.h>
#include <intshcut.h>
#include <qvarlengtharray.h>
+ Include dependency graph for qstandardpaths_win.cpp:

Go to the source code of this file.

Functions

static QString convertCharArray (const wchar_t *path)
 
static bool isGenericConfigLocation (QStandardPaths::StandardLocation type)
 
static bool isConfigLocation (QStandardPaths::StandardLocation type)
 
static void appendOrganizationAndApp (QString &path)
 
static void appendTestMode (QString &path)
 
static bool isProcessLowIntegrity ()
 
static GUID writableSpecialFolderId (QStandardPaths::StandardLocation type)
 
static QString sHGetKnownFolderPath (const GUID &clsid)
 
QString qAppFileName ()
 

Function Documentation

◆ appendOrganizationAndApp()

static void appendOrganizationAndApp ( QString path)
static

Definition at line 41 of file qstandardpaths_win.cpp.

References QCoreApplication::applicationName, QString::isEmpty(), QCoreApplication::organizationName, and Q_UNUSED.

+ Here is the call graph for this function:

◆ appendTestMode()

static void appendTestMode ( QString path)
inlinestatic

Definition at line 55 of file qstandardpaths_win.cpp.

References QStandardPaths::isTestModeEnabled().

+ Here is the call graph for this function:

◆ convertCharArray()

static QString convertCharArray ( const wchar_t *  path)
static

Definition at line 24 of file qstandardpaths_win.cpp.

References QDir::fromNativeSeparators(), and QString::fromWCharArray().

Referenced by sHGetKnownFolderPath().

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

◆ isConfigLocation()

static bool isConfigLocation ( QStandardPaths::StandardLocation  type)
inlinestatic

Definition at line 34 of file qstandardpaths_win.cpp.

References QStandardPaths::AppConfigLocation, QStandardPaths::AppDataLocation, QStandardPaths::AppLocalDataLocation, QStandardPaths::ConfigLocation, and isGenericConfigLocation().

+ Here is the call graph for this function:

◆ isGenericConfigLocation()

static bool isGenericConfigLocation ( QStandardPaths::StandardLocation  type)
inlinestatic

Definition at line 29 of file qstandardpaths_win.cpp.

References QStandardPaths::GenericConfigLocation, and QStandardPaths::GenericDataLocation.

Referenced by isConfigLocation().

+ Here is the caller graph for this function:

◆ isProcessLowIntegrity()

static bool isProcessLowIntegrity ( )
static

Definition at line 61 of file qstandardpaths_win.cpp.

References QVarLengthArray< T, Prealloc >::data(), QVarLengthArray< T, Prealloc >::resize(), and QVLABaseBase::size().

Referenced by writableSpecialFolderId().

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

◆ qAppFileName()

QString qAppFileName ( )

Definition at line 13 of file qcoreapplication_mac.cpp.

References QString::isEmpty().

Referenced by QCoreApplication::applicationFilePath().

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

◆ sHGetKnownFolderPath()

static QString sHGetKnownFolderPath ( const GUID &  clsid)
static

Definition at line 143 of file qstandardpaths_win.cpp.

References convertCharArray(), and Q_LIKELY.

+ Here is the call graph for this function:

◆ writableSpecialFolderId()

static GUID writableSpecialFolderId ( QStandardPaths::StandardLocation  type)
static

Definition at line 84 of file qstandardpaths_win.cpp.

References isProcessLowIntegrity(), and QStandardPaths::TemplatesLocation.

+ Here is the call graph for this function: