• ScreenPlayWallpaper
  • ScreenPlayWallpaper Class

    class ScreenPlay::ScreenPlayWallpaper

    A Single Object to manage a Wallpaper. More...

    Header: #include <ScreenPlayWallpaper>

    Public Functions

    virtual ~ScreenPlayWallpaper()
    QString absolutePath() const
    QString appID() const
    QString file() const
    int fillMode() const
    QJsonObject getActiveSettingsJson()
    bool isLooping() const
    float playbackRate() const
    QString previewImage() const
    QVector<int> screenNumber() const
    void setSDKConnection(std::unique_ptr<SDKConnection> connection)
    int type() const
    float volume() const

    Public Slots

    void processError(QProcess::ProcessError error)
    void processExit(int exitCode, QProcess::ExitStatus exitStatus)
    void setAbsolutePath(QString absolutePath)
    void setAppID(QString appID)
    void setFile(QString file)
    void setFillMode(int fillMode)
    void setIsLooping(bool isLooping)
    void setPlaybackRate(float playbackRate)
    void setPreviewImage(QString previewImage)
    void setScreenNumber(QVector<int> screenNumber)
    void setType(int type)
    void setVolume(float volume)
    bool setWallpaperValue(const QString &key, const QString &value, const bool save = false)

    Signals

    void absolutePathChanged(QString absolutePath)
    void appIDChanged(QString appID)
    void fileChanged(QString file)
    void fillModeChanged(int fillMode)
    void isLoopingChanged(bool isLooping)
    void playbackRateChanged(float playbackRate)
    void previewImageChanged(QString previewImage)
    void screenNumberChanged(QVector<int> screenNumber)
    void typeChanged(int type)
    void volumeChanged(float volume)

    Detailed Description

    This class is only for managing the QProcess to an extern ScreenPlayWallpaper!

    Member Function Documentation

    [slot] void ScreenPlayWallpaper::processError(QProcess::ProcessError error)

    Prints the exit code error.

    [slot] void ScreenPlayWallpaper::processExit(int exitCode, QProcess::ExitStatus exitStatus)

    Prints the exit code if != 0.

    [slot] bool ScreenPlayWallpaper::setWallpaperValue(const QString &key, const QString &value, const bool save = false)

    Sets a wallpaper value. We directly set the property if it is either volume, playbackRate or fillMode. Otherwise it is a simple key, value json pair.

    [virtual] ScreenPlayWallpaper::~ScreenPlayWallpaper()

    Destructor for ScreenPlayWallpaper.

    QJsonObject ScreenPlayWallpaper::getActiveSettingsJson()

    Loads the project.json that contains all settings to display the wallpaper.

    void ScreenPlayWallpaper::setSDKConnection(std::unique_ptr<SDKConnection> connection)

    Connects to ScreenPlay. Start a alive ping check for every GlobalVariables::contentPingAliveIntervalMS seconds.