#include <qprocess.h>
#include <qstringlist.h>
#include <qdir.h>
#include <qurl.h>
#include <private/qcore_mac_p.h>
#include <qcoreapplication.h>
#include <ApplicationServices/ApplicationServices.h>
Go to the source code of this file.
◆ getFullPath()
static QString getFullPath |
( |
const FSRef & |
ref | ) |
|
|
static |
Definition at line 129 of file qdesktopservices_mac.cpp.
132 if (FSRefMakePath(&ref, reinterpret_cast<UInt8 *>(ba.data()), ba.size()) == noErr)
The QByteArray class provides an array of bytes.
The QString class provides a Unicode character string.
QString normalized(NormalizationForm mode) const Q_REQUIRED_RESULT
Returns the string in the given Unicode normalization mode.
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
◆ launchWebBrowser()
static bool launchWebBrowser |
( |
const QUrl & |
url | ) |
|
|
static |
◆ lsOpen()
static bool lsOpen |
( |
const QUrl & |
url | ) |
|
|
static |
Definition at line 99 of file qdesktopservices_mac.cpp.
Referenced by launchWebBrowser().
108 const OSStatus err = LSOpenCFURLRef(cfUrl, 0);
109 return (err == noErr);
bool isValid() const
Returns true if the URL is valid; otherwise returns false.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QByteArray toEncoded(FormattingOptions options=None) const
Returns the encoded representation of the URL if it's valid; otherwise an empty QByteArray is returne...
QString scheme() const
Returns the scheme of the URL.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
◆ openDocument()
static bool openDocument |
( |
const QUrl & |
file | ) |
|
|
static |
Definition at line 117 of file qdesktopservices_mac.cpp.
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...
bool isValid() const
Returns true if the URL is valid; otherwise returns false.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QStringList class provides a list of strings.
QString toLocalFile() const
Returns the path of this URL formatted as a local file path.
◆ translateLocation()
Definition at line 59 of file qdesktopservices_mac.cpp.
Referenced by getFullPath().
63 return kDesktopFolderType;
break;
66 return kDocumentsFolderType;
break;
71 return kFontsFolderType;
break;
74 return kApplicationsFolderType;
break;
77 return kMusicDocumentsFolderType;
break;
80 return kMovieDocumentsFolderType;
break;
83 return kPictureDocumentsFolderType;
break;
86 return kTemporaryFolderType;
break;
89 return kApplicationSupportFolderType;
break;
92 return kCachedDataFolderType;
break;
95 return kDesktopFolderType;
break;