FlightGear next
AddOnsController Class Reference

#include <AddOnsController.hxx>

Inherits QObject.

Public Slots

void setModulePaths (QStringList modulePaths)
 
void setAddons (AddonsModel *addons)
 
void onAddonsChanged (void)
 
void collectArgs ()
 

Signals

void modulePathsChanged (QStringList modulePaths)
 
void modulesChanged ()
 
void isOfficialHangarRegisteredChanged ()
 
void showNoOfficialHangarChanged ()
 

Public Member Functions

 AddOnsController (LauncherMainWindow *parent, LaunchConfig *config)
 
PathListModelaircraftPaths () const
 
PathListModelsceneryPaths () const
 
QStringList modulePaths () const
 
CatalogListModelcatalogs () const
 
AddonsModelmodules () const
 
Q_INVOKABLE QString addAircraftPath () const
 
Q_INVOKABLE QString addSceneryPath () const
 
Q_INVOKABLE QString addAddOnModulePath () const
 
Q_INVOKABLE QString installCustomScenery ()
 
Q_INVOKABLE void openDirectory (QString path)
 
bool isOfficialHangarRegistered ()
 
bool showNoOfficialHangar () const
 
Q_INVOKABLE void officialCatalogAction (QString s)
 
bool havePathsFromCommandLine () const
 

Properties

PathListModelaircraftPaths
 
PathListModelsceneryPaths
 
QStringList modulePaths
 
CatalogListModelcatalogs
 
AddonsModelmodules
 
bool isOfficialHangarRegistered
 
bool showNoOfficialHangar
 
bool havePathsFromCommandLine
 

Detailed Description

Definition at line 18 of file AddOnsController.hxx.

Constructor & Destructor Documentation

◆ AddOnsController()

AddOnsController::AddOnsController ( LauncherMainWindow * parent,
LaunchConfig * config )
explicit

Definition at line 32 of file AddOnsController.cxx.

Member Function Documentation

◆ addAddOnModulePath()

QString AddOnsController::addAddOnModulePath ( ) const

Definition at line 178 of file AddOnsController.cxx.

◆ addAircraftPath()

QString AddOnsController::addAircraftPath ( ) const

Definition at line 135 of file AddOnsController.cxx.

◆ addSceneryPath()

QString AddOnsController::addSceneryPath ( ) const

Definition at line 228 of file AddOnsController.cxx.

◆ aircraftPaths()

PathListModel * AddOnsController::aircraftPaths ( ) const

Definition at line 120 of file AddOnsController.cxx.

◆ catalogs()

CatalogListModel * AddOnsController::catalogs ( ) const
inline

Definition at line 39 of file AddOnsController.hxx.

◆ collectArgs

void AddOnsController::collectArgs ( )
slot

Definition at line 369 of file AddOnsController.cxx.

◆ havePathsFromCommandLine()

bool AddOnsController::havePathsFromCommandLine ( ) const

Definition at line 409 of file AddOnsController.cxx.

◆ installCustomScenery()

QString AddOnsController::installCustomScenery ( )

Definition at line 265 of file AddOnsController.cxx.

◆ isOfficialHangarRegistered()

bool AddOnsController::isOfficialHangarRegistered ( )

◆ isOfficialHangarRegisteredChanged

void AddOnsController::isOfficialHangarRegisteredChanged ( )
signal

◆ modulePaths()

QStringList AddOnsController::modulePaths ( ) const

Definition at line 130 of file AddOnsController.cxx.

◆ modulePathsChanged

void AddOnsController::modulePathsChanged ( QStringList modulePaths)
signal

◆ modules()

AddonsModel * AddOnsController::modules ( ) const
inline

Definition at line 42 of file AddOnsController.hxx.

◆ modulesChanged

void AddOnsController::modulesChanged ( )
signal

◆ officialCatalogAction()

void AddOnsController::officialCatalogAction ( QString s)

Definition at line 314 of file AddOnsController.cxx.

◆ onAddonsChanged

void AddOnsController::onAddonsChanged ( void )
slot

Definition at line 355 of file AddOnsController.cxx.

◆ openDirectory()

void AddOnsController::openDirectory ( QString path)

Definition at line 277 of file AddOnsController.cxx.

◆ sceneryPaths()

PathListModel * AddOnsController::sceneryPaths ( ) const

Definition at line 125 of file AddOnsController.cxx.

◆ setAddons

void AddOnsController::setAddons ( AddonsModel * addons)
slot

Definition at line 283 of file AddOnsController.cxx.

◆ setModulePaths

void AddOnsController::setModulePaths ( QStringList modulePaths)
slot

Definition at line 289 of file AddOnsController.cxx.

◆ showNoOfficialHangar()

bool AddOnsController::showNoOfficialHangar ( ) const

Definition at line 343 of file AddOnsController.cxx.

◆ showNoOfficialHangarChanged

void AddOnsController::showNoOfficialHangarChanged ( )
signal

Property Documentation

◆ aircraftPaths

PathListModel* AddOnsController::aircraftPaths
read

Definition at line 22 of file AddOnsController.hxx.

◆ catalogs

CatalogListModel* AddOnsController::catalogs
read

Definition at line 26 of file AddOnsController.hxx.

◆ havePathsFromCommandLine

bool AddOnsController::havePathsFromCommandLine
read

Definition at line 30 of file AddOnsController.hxx.

◆ isOfficialHangarRegistered

bool AddOnsController::isOfficialHangarRegistered
read

Definition at line 28 of file AddOnsController.hxx.

◆ modulePaths

QStringList AddOnsController::modulePaths
readwrite

Definition at line 24 of file AddOnsController.hxx.

◆ modules

AddonsModel* AddOnsController::modules
read

Definition at line 27 of file AddOnsController.hxx.

◆ sceneryPaths

PathListModel* AddOnsController::sceneryPaths
read

Definition at line 23 of file AddOnsController.hxx.

◆ showNoOfficialHangar

bool AddOnsController::showNoOfficialHangar
read

Definition at line 29 of file AddOnsController.hxx.


The documentation for this class was generated from the following files: