diff --git a/ScreenPlay/src/screenplay.cpp b/ScreenPlay/src/screenplay.cpp index 1290a110..eb027b83 100644 --- a/ScreenPlay/src/screenplay.cpp +++ b/ScreenPlay/src/screenplay.cpp @@ -9,7 +9,14 @@ ScreenPlay::ScreenPlay(InstalledListModel* ilm, Settings* set, MonitorListModel* m_sdkc{sdkc} {} -void ScreenPlay::createWallpaper(int monitorIndex, QUrl absoluteStoragePath, QString previewImage, float volume, QString fillMode, QString type) +const InstalledListModel* ScreenPlay::listModelInstalled() const noexcept { return m_ilm; } +const Settings* ScreenPlay::settings() const noexcept { return m_settings; } +const MonitorListModel* ScreenPlay::monitorListModel() const noexcept { return m_mlm; } +const QGuiApplication* ScreenPlay::guiApp() const noexcept { return m_qGuiApplication; } +const SDKConnector* ScreenPlay::sdkConnector() const noexcept { return m_sdkc; } +const std::vector& ScreenPlay::spWallList() const noexcept { return m_screenPlayWallpaperList; } +const std::vector& ScreenPlay::spWidgetList() const noexcept { return m_screenPlayWidgetList; } + void ScreenPlay::createWallpaper( const int monitorIndex, QUrl absoluteStoragePath, const QString &previewImage, const float volume, diff --git a/ScreenPlay/src/screenplay.h b/ScreenPlay/src/screenplay.h index ed4cb59c..98eaa2b4 100644 --- a/ScreenPlay/src/screenplay.h +++ b/ScreenPlay/src/screenplay.h @@ -49,7 +49,15 @@ public: // copy and move disable(for now) : remember rule of 1/3/5 Q_DISABLE_COPY_MOVE(ScreenPlay) - Settings* settings() const; + // getters + const InstalledListModel* listModelInstalled() const noexcept; + const Settings* settings() const noexcept; + const MonitorListModel* monitorListModel() const noexcept; + const QGuiApplication* guiApp() const noexcept; + const SDKConnector* sdkConnector() const noexcept; + const std::vector& spWallList() const noexcept; + const std::vector& spWidgetList() const noexcept; + signals: