|
FOSSredder 0.5.0
|
Maintains the editable app state for one workspace and persists it through IStorageManager. More...
#include <WorkspaceSession.h>
Public Types | |
| using | StateChanged = std::function<void(const core::application::workspace::WorkspaceSessionState&)> |
Maintains the editable app state for one workspace and persists it through IStorageManager.
Definition at line 23 of file WorkspaceSession.h.
| using core::application::WorkspaceSession::StateChanged = std::function<void(const core::application::workspace::WorkspaceSessionState&)> |
Definition at line 25 of file WorkspaceSession.h.
|
explicit |
Creates a session over an existing storage manager.
| std::invalid_argument | when storageManager is null. |
Definition at line 12 of file WorkspaceSession.cpp.

|
inlinenoexcept |
Definition at line 35 of file WorkspaceSession.h.
| void core::application::WorkspaceSession::commit | ( | ) |
Persists the session when a file is open and notifies listeners.
Definition at line 100 of file WorkspaceSession.cpp.

|
noexcept |
Definition at line 21 of file WorkspaceSession.cpp.
|
inlinenoexcept |
Definition at line 36 of file WorkspaceSession.h.
|
inlinenoexcept |
Definition at line 34 of file WorkspaceSession.h.
| void core::application::WorkspaceSession::newFile | ( | const std::string & | path | ) |
| void core::application::WorkspaceSession::notifyState | ( | ) |
| void core::application::WorkspaceSession::openFile | ( | const std::string & | path | ) |
| void core::application::WorkspaceSession::openLatest | ( | ) |
| void core::application::WorkspaceSession::saveFile | ( | ) |
Definition at line 92 of file WorkspaceSession.cpp.
| void core::application::WorkspaceSession::saveFileAs | ( | const std::string & | path | ) |
Definition at line 96 of file WorkspaceSession.cpp.
| void core::application::WorkspaceSession::setAtomicStoreLoad | ( | core::ports::storage::IStorageManager::AtomicStoreLoad | loadFn | ) |
Definition at line 37 of file WorkspaceSession.cpp.
| void core::application::WorkspaceSession::setAtomicStoreSave | ( | core::ports::storage::IStorageManager::AtomicStoreSave | saveFn | ) |
Definition at line 33 of file WorkspaceSession.cpp.
| void core::application::WorkspaceSession::setDeletionImpactCallback | ( | core::ports::storage::IStorageManager::DeletionImpactCallback | cb | ) |
| void core::application::WorkspaceSession::setErrorReporter | ( | std::shared_ptr< core::ports::diagnostics::IErrorReporter > | reporter | ) |
Definition at line 29 of file WorkspaceSession.cpp.
| void core::application::WorkspaceSession::setStateChangedCallback | ( | StateChanged | cb | ) |
Definition at line 25 of file WorkspaceSession.cpp.
|
inlinenoexcept |
Definition at line 33 of file WorkspaceSession.h.