#include "qdesktopservices.h"
#include <qprocess.h>
#include <qurl.h>
#include <qdir.h>
#include <qfile.h>
#include <qtextstream.h>
#include <private/qt_x11_p.h>
#include <qcoreapplication.h>
#include <stdlib.h>
Go to the source code of this file.
◆ launch()
static bool launch |
( |
const QUrl & |
url, |
|
|
const QString & |
client |
|
) |
| |
|
inlinestatic |
Definition at line 57 of file qdesktopservices_x11.cpp.
Referenced by launchWebBrowser(), and openDocument().
59 #if !defined(QT_NO_PROCESS) static bool startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid=0)
Starts the program program with the arguments arguments in a new process, and detaches from it...
QByteArray toEncoded(FormattingOptions options=None) const
Returns the encoded representation of the URL if it's valid; otherwise an empty QByteArray is returne...
const char * constData() const
Returns a pointer to the data stored in the byte array.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
◆ launchWebBrowser()
static bool launchWebBrowser |
( |
const QUrl & |
url | ) |
|
|
static |
Definition at line 95 of file qdesktopservices_x11.cpp.
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
bool isValid() const
Returns true if the URL is valid; otherwise returns false.
static bool openDocument(const QUrl &url)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QString scheme() const
Returns the scheme of the URL.
static bool launch(const QUrl &url, const QString &client)
◆ openDocument()
static bool openDocument |
( |
const QUrl & |
url | ) |
|
|
static |
Definition at line 66 of file qdesktopservices_x11.cpp.
Referenced by launchWebBrowser().
bool isValid() const
Returns true if the URL is valid; otherwise returns false.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static bool launch(const QUrl &url, const QString &client)