KLayout Manual: Main Index » Class Index » API reference - Class QDesktopServices

API reference - Class QDesktopServices

Notation used in Ruby API documentation

Description: Binding of QDesktopServices

Public constructors

new QDesktopServicesnewConstructor QDesktopServices::QDesktopServices()

Public methods

[const]voidassign(const QDesktopServices other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QDesktopServicesdupCreates a copy of self
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference

Public static methods and constants

QDesktopServices_StandardLocationApplicationsLocationEnum constant enum QDesktopServices::ApplicationsLocation
QDesktopServices_StandardLocationCacheLocationEnum constant enum QDesktopServices::CacheLocation
QDesktopServices_StandardLocationDataLocationEnum constant enum QDesktopServices::DataLocation
QDesktopServices_StandardLocationDesktopLocationEnum constant enum QDesktopServices::DesktopLocation
QDesktopServices_StandardLocationDocumentsLocationEnum constant enum QDesktopServices::DocumentsLocation
QDesktopServices_StandardLocationFontsLocationEnum constant enum QDesktopServices::FontsLocation
QDesktopServices_StandardLocationHomeLocationEnum constant enum QDesktopServices::HomeLocation
QDesktopServices_StandardLocationMoviesLocationEnum constant enum QDesktopServices::MoviesLocation
QDesktopServices_StandardLocationMusicLocationEnum constant enum QDesktopServices::MusicLocation
QDesktopServices_StandardLocationPicturesLocationEnum constant enum QDesktopServices::PicturesLocation
QDesktopServices_StandardLocationTempLocationEnum constant enum QDesktopServices::TempLocation
stringdisplayName(const QDesktopServices_StandardLocation type)Static method QString QDesktopServices::displayName(QDesktopServices::StandardLocation type)
boolopenUrl(const QUrl url)Static method bool QDesktopServices::openUrl(const QUrl &url)
voidsetUrlHandler(string scheme,
QObject ptr receiver,
string method)
Static method void QDesktopServices::setUrlHandler(const QString &scheme, QObject *receiver, const char *method)
stringstorageLocation(const QDesktopServices_StandardLocation type)Static method QString QDesktopServices::storageLocation(QDesktopServices::StandardLocation type)
voidunsetUrlHandler(string scheme)Static method void QDesktopServices::unsetUrlHandler(const QString &scheme)

Detailed description

[static] QDesktopServices_StandardLocation ApplicationsLocation

Description: Enum constant enum QDesktopServices::ApplicationsLocation

[static] QDesktopServices_StandardLocation CacheLocation

Description: Enum constant enum QDesktopServices::CacheLocation

[static] QDesktopServices_StandardLocation DataLocation

Description: Enum constant enum QDesktopServices::DataLocation

[static] QDesktopServices_StandardLocation DesktopLocation

Description: Enum constant enum QDesktopServices::DesktopLocation

[static] QDesktopServices_StandardLocation DocumentsLocation

Description: Enum constant enum QDesktopServices::DocumentsLocation

[static] QDesktopServices_StandardLocation FontsLocation

Description: Enum constant enum QDesktopServices::FontsLocation

[static] QDesktopServices_StandardLocation HomeLocation

Description: Enum constant enum QDesktopServices::HomeLocation

[static] QDesktopServices_StandardLocation MoviesLocation

Description: Enum constant enum QDesktopServices::MoviesLocation

[static] QDesktopServices_StandardLocation MusicLocation

Description: Enum constant enum QDesktopServices::MusicLocation

[static] QDesktopServices_StandardLocation PicturesLocation

Description: Enum constant enum QDesktopServices::PicturesLocation

[static] QDesktopServices_StandardLocation TempLocation

Description: Enum constant enum QDesktopServices::TempLocation

[const] void assign(const QDesktopServices other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[static] string displayName(const QDesktopServices_StandardLocation type)

Description: Static method QString QDesktopServices::displayName(QDesktopServices::StandardLocation type)

This method is static and can be called without an instance.

[const] QDesktopServices dup

Description: Creates a copy of self

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[static] new QDesktopServices new

Description: Constructor QDesktopServices::QDesktopServices()

This method creates an object of class QDesktopServices.

[static] bool openUrl(const QUrl url)

Description: Static method bool QDesktopServices::openUrl(const QUrl &url)

This method is static and can be called without an instance.

[static] void setUrlHandler(string scheme,QObject ptr receiver,string method)

Description: Static method void QDesktopServices::setUrlHandler(const QString &scheme, QObject *receiver, const char *method)

This method is static and can be called without an instance.

[static] string storageLocation(const QDesktopServices_StandardLocation type)

Description: Static method QString QDesktopServices::storageLocation(QDesktopServices::StandardLocation type)

This method is static and can be called without an instance.

[static] void unsetUrlHandler(string scheme)

Description: Static method void QDesktopServices::unsetUrlHandler(const QString &scheme)

This method is static and can be called without an instance.