AbstractManager

Qualified name: mv::AbstractManager

class AbstractManager : public QObject, public mv::util::Serializable

Abstract manager.

Base abstract manager class for the core.

Author

Thomas Kroes

Subclassed by mv::AbstractActionsManager, mv::AbstractDataHierarchyManager, mv::AbstractDataManager, mv::AbstractErrorManager, mv::AbstractEventManager, mv::AbstractHelpManager, mv::AbstractPluginManager, mv::AbstractProjectManager, mv::AbstractScriptingManager, mv::AbstractSettingsManager, mv::AbstractTaskManager, mv::AbstractThemeManager, mv::AbstractWorkspaceManager

Public Functions

inline AbstractManager(QObject *parent, const QString &name = "")

Construct manager with pointer to parent object and name.

Parameters:
  • parent – Pointer to parent object

  • name – Manager name (serialization name)

inline virtual void initialize()

Perform manager startup initialization.

inline void beginReset()

Begin reset operation.

inline virtual void reset()

Resets the contents of the manager.

inline void endReset()

End reset operation.

inline void beginInitialization()

Begin the initialization process.

inline void endInitialization()

End the initialization process.

inline bool isInitialized() const

Get whether the manager is initialized or not.

Returns:

Boolean determining whether the manager is initialized or not

inline bool isInitializing() const

Get whether the manager is initializing or not.

Returns:

Boolean determining whether the manager is initializing or not

inline bool isResetting() const

Get whether the manager is resetting or not.

Returns:

Boolean determining whether the manager is resetting or not

inline virtual QIcon getIcon() const

Get manager icon.

Returns:

Icon

inline QString getSettingsPrefix() const

Get manager settings prefix.

Returns:

Settings manager prefix

inline virtual bool mayLock() const

Get whether the manager be locked.

Returns:

Boolean determining whether the manager be locked

inline virtual bool mayUnlock() const

Get whether the manager be unlocked.

Returns:

Boolean determining whether the manager be unlocked

inline bool isCoreDestroyed() const

Establish whether the core is destroyed.

Returns:

Boolean determining whether the core is destroyed

void managerAboutToBeInitialized()

Signals that the initialization process has begun.

void managerInitialized()

Signals that the initialization process has ended.

void managerAboutToBeReset()

Signals that the manager is about to be reset.

void managerReset()

Signals that the manager has been reset.

Protected Functions

inline void setCoreIsDestroyed()

Mark core as destroyed.