1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

class ScreenPlay - access members through getters

This commit is contained in:
JeJo 2019-04-22 04:58:27 +02:00
parent 14bddbe991
commit 09a4eac1ca
2 changed files with 17 additions and 2 deletions

View File

@ -9,7 +9,14 @@ ScreenPlay::ScreenPlay(InstalledListModel* ilm, Settings* set, MonitorListModel*
m_sdkc{sdkc} 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<RefSPWall>& ScreenPlay::spWallList() const noexcept { return m_screenPlayWallpaperList; }
const std::vector<RefSPWidget>& ScreenPlay::spWidgetList() const noexcept { return m_screenPlayWidgetList; }
void ScreenPlay::createWallpaper( void ScreenPlay::createWallpaper(
const int monitorIndex, QUrl absoluteStoragePath, const int monitorIndex, QUrl absoluteStoragePath,
const QString &previewImage, const float volume, const QString &previewImage, const float volume,

View File

@ -49,7 +49,15 @@ public:
// copy and move disable(for now) : remember rule of 1/3/5 // copy and move disable(for now) : remember rule of 1/3/5
Q_DISABLE_COPY_MOVE(ScreenPlay) 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<RefSPWall>& spWallList() const noexcept;
const std::vector<RefSPWidget>& spWidgetList() const noexcept;
signals: signals: