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
qwindowsservices.cpp File Reference

(4f1bb8ee40f2245375ee2afef0e45cc766fcd2d4)

#include "qwindowsservices.h"
#include <QtCore/qt_windows.h>
#include <QtCore/qurl.h>
#include <QtCore/qdebug.h>
#include <QtCore/qdir.h>
#include <QtCore/qscopedpointer.h>
#include <QtCore/qthread.h>
#include <QtCore/private/qwinregistry_p.h>
#include <QtCore/private/qfunctions_win_p.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <intshcut.h>
+ Include dependency graph for qwindowsservices.cpp:

Go to the source code of this file.

Classes

class  QWindowsShellExecuteThread
 

Enumerations

enum  { debug = 0 }
 

Functions

static QString msgShellExecuteFailed (const QUrl &url, quintptr code)
 
static bool openWebBrowser (const QUrl &url)
 
static bool shellExecute (const QUrl &url)
 
static QString mailCommand ()
 
static bool launchMail (const QUrl &url)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
debug 

Definition at line 24 of file qwindowsservices.cpp.

Function Documentation

◆ launchMail()

static bool launchMail ( const QUrl & url)
inlinestatic

Definition at line 150 of file qwindowsservices.cpp.

References Qt::CaseInsensitive, debug, QUrl::FullyEncoded, QString::indexOf(), QString::insert(), QString::isEmpty(), mailCommand(), QString::prepend(), qDebug, qErrnoWarning(), qUtf16Printable, qWarning, QString::replace(), QString::startsWith(), QUrl::toString(), url, and QString::utf16().

Referenced by QWindowsServices::openUrl().

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

◆ mailCommand()

static QString mailCommand ( )
inlinestatic

Definition at line 124 of file qwindowsservices.cpp.

References BufferSize, QString::contains(), debug, QString::fromWCharArray(), QString::isEmpty(), keyName(), MAX_PATH, qDebug, QWinRegistryKey::stringValue(), and QString::utf16().

Referenced by launchMail().

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

◆ msgShellExecuteFailed()

static QString msgShellExecuteFailed ( const QUrl & url,
quintptr code )
static

Definition at line 52 of file qwindowsservices.cpp.

References QUrl::toString(), and url.

Referenced by openWebBrowser(), and shellExecute().

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

◆ openWebBrowser()

static bool openWebBrowser ( const QUrl & url)
static

Definition at line 62 of file qwindowsservices.cpp.

References Qt::CaseInsensitive, debug, QString::fromWCharArray(), QUrl::FullyEncoded, MAX_PATH, msgShellExecuteFailed(), qDebug, qPrintable, qWarning, QWindowsShellExecuteThread::result(), QThread::start(), QUrl::toString(), url, and QThread::wait().

Referenced by QWindowsServices::openUrl().

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

◆ shellExecute()

static bool shellExecute ( const QUrl & url)
inlinestatic

Definition at line 96 of file qwindowsservices.cpp.

References QUrl::FullyEncoded, QUrl::hasFragment(), QUrl::hasQuery(), QUrl::isLocalFile(), msgShellExecuteFailed(), qPrintable, qWarning, QWindowsShellExecuteThread::result(), QThread::start(), QUrl::toLocalFile(), QDir::toNativeSeparators(), QUrl::toString(), url, QString::utf16(), and QThread::wait().

Referenced by QWindowsServices::openDocument(), and QWindowsServices::openUrl().

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