
Public Types | |
| enum | { ASK = 0, SAVE, DONT_SAVE } |
| enum | { NORMAL = 0, FORCED } |
| typedef void * | AppLib |
Signals | |
| void | applicationClosed (SUIT_Application *) |
Public Member Functions | |
| SALOME_Session () | |
| virtual | ~SALOME_Session () |
| SUIT_Application * | startApplication (const QString &, int=0, char **=0) |
| QList< SUIT_Application * > | applications () const |
| SUIT_Application * | activeApplication () const |
| SUIT_ResourceMgr * | resourceMgr () const |
| void | closeSession (int mode=ASK, int flags=0) |
| int | exitFlags () const |
| SUIT_ExceptionHandler * | handler () const |
| void | insertApplication (SUIT_Application *) |
Static Public Member Functions | |
| static SUIT_Session * | session () |
Data Fields | |
| enum SUIT_Session:: { ... } | CloseMode |
| enum SUIT_Session:: { ... } | ExitStatus |
Protected Member Functions | |
| virtual SUIT_ResourceMgr * | createResourceMgr (const QString &appName) const |
typedef void* SUIT_Session.AppLib [inherited] |
| SALOME_Session.SALOME_Session | ( | ) |
| virtual SALOME_Session.~SALOME_Session | ( | ) | [virtual] |
| virtual SUIT_ResourceMgr* SALOME_Session.createResourceMgr | ( | const QString & | appName | ) | const [protected, virtual] |
Reimplemented from SUIT_Session.
References SALOME_ResourceMgr.initResourceMgr().
| SUIT_Session * SUIT_Session::session | ( | ) | [static, inherited] |
| return | mySession |
References SUIT_Session.mySession.
| SUIT_Application * SUIT_Session::startApplication | ( | const QString & | name, |
| int | = 0, |
||
| char ** | = 0 |
||
| ) | [inherited] |
Starts new application using "createApplication" function of loaded DLL.
References APP_CREATE_NAME, APP_GET_HANDLER_NAME, SUIT_Session.applicationName(), SUIT_Session.createResourceMgr(), SUIT_Session.insertApplication(), SUIT_Session.lastError(), QtxResourceMgr.loadLanguage(), SUIT_Session.loadLibrary(), SUIT_Session.myAppLibs, SUIT_Session.myAppList, SUIT_Session.myHandler, SUIT_Session.myResMgr, SUIT_Application.start(), and SUIT_MessageBox.warning().
| QList< SUIT_Application * > SUIT_Session::applications | ( | ) | const [inherited] |
Gets the list of all applications
References SUIT_Session.myAppList.
| SUIT_Application * SUIT_Session::activeApplication | ( | ) | const [inherited] |
Returns the active application
References SUIT_Session.myActiveApp.
| SUIT_ResourceMgr * SUIT_Session::resourceMgr | ( | ) | const [inherited] |
Returns the resource manager for the specified application name.
References SUIT_Session.myResMgr.
| void SUIT_Session::closeSession | ( | int | mode = ASK, |
| int | flags = 0 |
||
| ) | [inherited] |
Destroys session by closing all applications.
References SUIT_Application.activeStudy(), SUIT_Session.ASK, SUIT_Application.closeApplication(), SUIT_Session.DONT_SAVE, SUIT_Session.FORCED, SUIT_Study.isModified(), SUIT_Application.isPossibleToClose(), SUIT_Study.isSaved(), SUIT_Session.myAppList, SUIT_Session.myExitFlags, SUIT_Session.myExitStatus, SUIT_Session.SAVE, and SUIT_Study.saveDocument().
| int SUIT_Session::exitFlags | ( | ) | const [inherited] |
Get session exit flags.
By default, exit flags are set to 0. You can use pass any flags to the closeSession() method if you need to process them later on application quiting.
References SUIT_Session.myExitFlags.
| SUIT_ExceptionHandler * SUIT_Session::handler | ( | ) | const [inherited] |
| return | myHandler |
References SUIT_Session.myHandler.
| void SUIT_Session::insertApplication | ( | SUIT_Application * | app | ) | [inherited] |
| void SUIT_Session.applicationClosed | ( | SUIT_Application * | ) | [signal, inherited] |
enum { ... } SUIT_Session.CloseMode [inherited] |
enum { ... } SUIT_Session.ExitStatus [inherited] |