mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-15 06:52:34 +02:00
class ScreenPlay - access members through getters
This commit is contained in:
parent
14bddbe991
commit
09a4eac1ca
@ -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<RefSPWall>& ScreenPlay::spWallList() const noexcept { return m_screenPlayWallpaperList; }
|
||||
const std::vector<RefSPWidget>& ScreenPlay::spWidgetList() const noexcept { return m_screenPlayWidgetList; }
|
||||
|
||||
void ScreenPlay::createWallpaper(
|
||||
const int monitorIndex, QUrl absoluteStoragePath,
|
||||
const QString &previewImage, const float volume,
|
||||
|
@ -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<RefSPWall>& spWallList() const noexcept;
|
||||
const std::vector<RefSPWidget>& spWidgetList() const noexcept;
|
||||
|
||||
|
||||
|
||||
signals:
|
||||
|
Loading…
Reference in New Issue
Block a user