44 #ifndef QT_NO_DESKTOPSERVICES 48 #if defined(Q_OS_BLACKBERRY) 50 #elif defined(Q_WS_QWS) || defined(Q_WS_QPA) 52 #elif defined(Q_WS_X11) 54 #elif defined(Q_WS_WIN) 56 #elif defined(Q_WS_MAC) 58 #elif defined(Q_OS_SYMBIAN) 59 #include "qdesktopservices_s60.cpp" 97 if (it->receiver == handler) {
194 static bool insideOpenUrlHandler =
false;
196 if (!insideOpenUrlHandler) {
199 insideOpenUrlHandler =
true;
201 insideOpenUrlHandler =
false;
260 setUrlHandler(scheme, 0, 0);
324 #include "qdesktopservices.moc" 326 #endif // QT_NO_DESKTOPSERVICES
#define QT_END_NAMESPACE
This macro expands to.
The QMutex class provides access serialization between threads.
int remove(const Key &key)
Removes all the items that have the key from the hash.
QHash< QString, Handler > HandlerHash
#define it(className, varName)
The QByteArray class provides an array of bytes.
const_iterator ConstIterator
Qt-style synonym for QHash::const_iterator.
static void unsetUrlHandler(const QString &scheme)
Removes a previously set URL handler for the specified scheme.
#define Q_ARG(type, data)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void destroyed(QObject *=0)
This signal is emitted immediately before the object obj is destroyed, and can not be blocked...
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
const_iterator constFind(const Key &key) const
Returns an iterator pointing to the item with the key in the hash.
void handlerDestroyed(QObject *handler)
static bool openDocument(const QUrl &file)
static bool launchWebBrowser(const QUrl &url)
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
QString scheme() const
Returns the scheme of the URL.
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the hash...
static void setUrlHandler(const QString &scheme, QObject *receiver, const char *method)
Sets the handler for the given scheme to be the handler method provided by the receiver object...
iterator begin()
Returns an STL-style iterator pointing to the first item in the hash.
QOpenUrlHandlerRegistry()
QImageIOHandler * handler
iterator erase(iterator it)
Removes the (key, value) pair associated with the iterator pos from the hash, and returns an iterator...
iterator Iterator
Qt-style synonym for QHash::iterator.
static bool openUrl(const QUrl &url)
Opens the given url in the appropriate Web browser for the user's desktop environment, and returns true if successful; otherwise returns false.