Public Slots |
Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Private Member Functions |
Static Private Member Functions |
Private Attributes |
Static Private Attributes |
List of all members  
  dnai::App Class Reference
  #include <app.h>
Inheritance diagram for dnai::App:

Collaboration diagram for dnai::App:

Public Slots | |
| void | loadSplashScreen () | 
Public Member Functions | |
| App (int &argc, char **argv) | |
| ~App () override | |
| void | loadMainWindow () | 
| void | initProcessManager () | 
| bool | eventFilter (QObject *o, QEvent *event) override | 
| void | versionsUpdater () | 
| void | onNotifyVersionChanged () | 
| void | close (int retcode=0) | 
| Session & | session () | 
| QQmlApplicationEngine & | engine () | 
| ProcessManager & | processManager () | 
| bool | isNewVersionAvailable () const | 
| qreal | getSettingNumber (const QString &path) | 
| Q_INVOKABLE void | onBuildStart () | 
| Q_INVOKABLE bool | isMac () | 
| void | afterInit () | 
  Public Member Functions inherited from dnai::interfaces::ILoadingClass | |
| float | statusPercent () const | 
| Return the current status in percentage.  More... | |
| Status | status () const | 
| Return the current status.  More... | |
| void | registerBeforeStart (const std::function< void()> &func) | 
| Register a callback wich will be called before starting loading.  More... | |
| void | registerReady (const std::function< void()> &func) | 
| Register a callback wich will be called after object was loaded.  More... | |
| void | registerUpdateStatus (const std::function< void(float)> &func) | 
| Register a callback wich will be called each step of the loading. This function pass loading percentage at the callback function.  More... | |
| virtual | ~ILoadingClass ()=default | 
| void | load () | 
| Call this function in order to load the current object.  More... | |
Static Public Member Functions | |
| static void | loadFonts () | 
| static App & | currentInstance () | 
| static QObject * | createQmlObject (const QString &path) | 
| static QQmlEngine * | getEngineInstance () | 
Protected Member Functions | |
| std::queue< std::function< void()> > | init () override | 
| You need to implement this function in order to define the loading steps.  More... | |
  Protected Member Functions inherited from dnai::interfaces::ILoadingClass | |
| ILoadingClass () | |
| void | execAllEvent () | 
| Execute all register callback of the current state.  More... | |
Private Member Functions | |
| QObject * | createQmlComponent (const QString &path) | 
| void | initAppView () | 
| void | setVersion (const QString &ver) | 
| void | setAPIVersion (const QString &ver) | 
Static Private Member Functions | |
| static void | setupSettings () | 
Private Attributes | |
| QQmlApplicationEngine | m_engine | 
| ProcessManager | m_processManager | 
| Session | m_session | 
| QString | m_currentVersionAPI | 
| QMap< QString, qreal > | m_loadedNumbers | 
Static Private Attributes | |
| static App * | m_instance = nullptr | 
Additional Inherited Members | |
  Public Types inherited from dnai::interfaces::ILoadingClass | |
| enum | Status { UNDEFINED = 0, RUNNING, READY } | 
| Possible status of ILoading class.  More... | |
Constructor & Destructor Documentation
| dnai::App::App | ( | int & | argc, | 
| char ** | argv | ||
| ) | 
      
  | 
  override | 
Member Function Documentation
| void dnai::App::afterInit | ( | ) | 
| void dnai::App::close | ( | int | retcode = 0 | ) | 
      
  | 
  private | 
      
  | 
  static | 
      
  | 
  static | 
| QQmlApplicationEngine & dnai::App::engine | ( | ) | 
      
  | 
  override | 
      
  | 
  static | 
| qreal dnai::App::getSettingNumber | ( | const QString & | path | ) | 
      
  | 
  overrideprotectedvirtual | 
You need to implement this function in order to define the loading steps.
- Returns
 
Implements dnai::interfaces::ILoadingClass.
      
  | 
  private | 
| void dnai::App::initProcessManager | ( | ) | 
| bool dnai::App::isMac | ( | ) | 
| bool dnai::App::isNewVersionAvailable | ( | ) | const | 
      
  | 
  static | 
| void dnai::App::loadMainWindow | ( | ) | 
      
  | 
  slot | 
| void dnai::App::onBuildStart | ( | ) | 
| void dnai::App::onNotifyVersionChanged | ( | ) | 
| ProcessManager & dnai::App::processManager | ( | ) | 
| Session & dnai::App::session | ( | ) | 
      
  | 
  private | 
      
  | 
  staticprivate | 
      
  | 
  private | 
| void dnai::App::versionsUpdater | ( | ) | 
Member Data Documentation
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  staticprivate | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
The documentation for this class was generated from the following files:
          
          
 Public Member Functions inherited from 
 1.8.9