App Class
class ScreenPlay::AppThe App class contains all members for ScreenPlay. More...
Header: | #include <App> |
Public Functions
App() | |
ScreenPlay::Create * | create() const |
ScreenPlay::GlobalVariables * | globalVariables() const |
void | init() |
ScreenPlay::InstalledListFilter * | installedListFilter() const |
ScreenPlay::InstalledListModel * | installedListModel() const |
QQmlApplicationEngine * | mainWindowEngine() const |
ScreenPlay::MonitorListModel * | monitorListModel() const |
ScreenPlay::ProfileListModel * | profileListModel() const |
ScreenPlay::ScreenPlayManager * | screenPlayManager() const |
ScreenPlay::Settings * | settings() const |
ScreenPlay::Util * | util() const |
ScreenPlay::Wizards * | wizards() const |
Public Slots
void | exit() |
bool | loadSteamPlugin() |
void | setCreate(ScreenPlay::Create *create) |
void | setGlobalVariables(ScreenPlay::GlobalVariables *globalVariables) |
void | setInstalledListFilter(ScreenPlay::InstalledListFilter *installedListFilter) |
void | setInstalledListModel(ScreenPlay::InstalledListModel *installedListModel) |
void | setMainWindowEngine(QQmlApplicationEngine *mainWindowEngine) |
void | setMonitorListModel(ScreenPlay::MonitorListModel *monitorListModel) |
void | setProfileListModel(ScreenPlay::ProfileListModel *profileListModel) |
void | setScreenPlayManager(ScreenPlay::ScreenPlayManager *screenPlayManager) |
void | setSettings(ScreenPlay::Settings *settings) |
void | setUtil(ScreenPlay::Util *util) |
void | setWizards(ScreenPlay::Wizards *wizards) |
Signals
void | createChanged(ScreenPlay::Create *create) |
void | globalVariablesChanged(ScreenPlay::GlobalVariables *globalVariables) |
void | installedListFilterChanged(ScreenPlay::InstalledListFilter *installedListFilter) |
void | installedListModelChanged(ScreenPlay::InstalledListModel *installedListModel) |
void | mainWindowEngineChanged(QQmlApplicationEngine *mainWindowEngine) |
void | monitorListModelChanged(ScreenPlay::MonitorListModel *monitorListModel) |
void | profileListModelChanged(ScreenPlay::ProfileListModel *profileListModel) |
void | screenPlayManagerChanged(ScreenPlay::ScreenPlayManager *screenPlayManager) |
void | settingsChanged(ScreenPlay::Settings *settings) |
void | utilChanged(ScreenPlay::Util *util) |
void | wizardsChanged(ScreenPlay::Wizards *wizards) |
Detailed Description
graph TD
Main.cpp --> App
App --> QQmlApplicationEngine
App --> GlobalVariables
App --> ScreenPlayManager
ScreenPlayManager --> ScreenPlayWallpaper
ScreenPlayManager --> ScreenPlayWidget
App --> Create
Create--> CreateVideoImport
App --> Util
App --> Settings
App --> InstalledListModel
InstalledListModel --> ProjectFile
App --> InstalledListFilter
App --> MonitorListModel
MonitorListModel --> Monitor
App --> ProfileListModel
ProfileListModel --> Profile
Member Function Documentation
App::App()
Constructor creates and holds all classes used by ScreenPlay via unique_ptr or shared_ptr.
[slot]
void App::exit()
Calls QApplication quit() and can be used to do additional tasks before exiting.
[slot]
bool App::loadSteamPlugin()
Loads the Steam plugin when needed. This enables to start ScreenPlay via OS autostart without waiting for Steam first.
void App::init()
Used for initialization after the constructor. The sole purpose is to check if another ScreenPlay instance is running and then quit early. This is also because we cannot call QApplication::quit(); in the SDKConnector before the app.exec(); ( the Qt main event loop ) has started.