System QML Type

  • Esri.ArcGISExtras
  • System
  • System provides a platform-specific registry of information that you can store and retrieve. More...

    Import Statement: import Esri.ArcGISExtras 1.1
    Since: Esri.ArcGISExtras 1.0

    Properties

    Signals

    Methods

    Detailed Description

    The System type assists QML apps that need to access system resources, such as:

    • Commonly used folders
    • Persisted app settings
    • Display scale factor
    • Logging

    Property Documentation

    loggingEnabled : bool

    Whether logging is enabled.


    [read-only] reachability : Reachability

    Returns the Reachability enum representation of network connection status.


    [read-only] settings : Settings

    Returns the settings read from persisted configuration settings (read-only).


    [read-only] temporaryFolder : FileFolder

    Returns the system's temporary folder as a FileFolder (read-only).


    [read-only] userHomeFolder : FileFolder

    Returns the user's home folder as a FileFolder (read only).

    This property may be set indirectly by setting userHomePath.


    userHomePath : url

    The user's home folder as a url.

    When you set this property, you change the property userHomeFolder.


    Signal Documentation

    loggingEnabledChanged()

    Emitted when loggingEnabled property of this object changes.

    Note: The corresponding handler is onLoggingEnabledChanged.


    reachabilityChanged()

    Emitted when reachability property of this object changes.

    Note: The corresponding handler is onReachabilityChanged.


    userHomePathChanged()

    Emitted when userHomePath and userHomeFolder properties of this object change.

    Note: The corresponding handler is onUserHomePathChanged.


    Method Documentation

    string pathVariable(string name)

    Returns the value of the path variable associated with name.

    Multiple path variables may be defined, each with a unique name identifying it.

    See also setPathVariable().


    string resolvedPath(string path)

    Returns path as a resolved path.


    string resolvedPath(url pathUrl)

    Returns the resolved path of the URL in pathUrl as a string.


    url resolvedPathUrl(string pathUrl)

    Returns the resolved path in pathUrl as a URL.


    void setLoggingFilterRules(string rules)

    Sets the logging filter rules.

    The filters are those defined for QLoggingCategory.


    void setPathVariable(string name, string value)

    Sets the value of the path variable associated with name to a value.

    Multiple path variables may be defined, each with a unique name identifying it.

    See also pathVariable().


    void wait(int msecs)

    Cause the current execution thread to wait for msecs milliseconds.


    string writableLocation(StandardLocation standardLocation)

    Returns the directory path as a string where files of standardLocation should be written to.

    This function reimplements the QStandardPaths::writableLocation method


    url writableLocationUrl(StandardLocation standardLocation)

    Returns the directory path as a url where files of standardLocation should be written to.

    This function reimplements the QStandardPaths::writableLocation method method and returns the result as a QUrl


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.