Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qstandardpaths_win.cpp File Reference

(55f0738f1638356137e6bd60459dc186ceaaabd8)

#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.

Referenced by writableSpecialFolderId().

+ Here is the caller graph for this function:

◆ qAppFileName()

QString qAppFileName ( )
extern

Definition at line 13 of file qcoreapplication_mac.cpp.

Referenced by QCoreApplication::applicationFilePath().

+ Here is the caller graph for this function:

◆ sHGetKnownFolderPath()

static QString sHGetKnownFolderPath ( const GUID & clsid)
static

Definition at line 147 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 QStandardPaths::GenericStateLocation, and isProcessLowIntegrity().

+ Here is the call graph for this function: