Mantid
|
A simple callback class so that we avoid multiple inheritance issues with QObject. More...
#include <WorkspaceObserver.h>
Signals | |
void | addRequested (const std::string &name, Mantid::API::Workspace_sptr workspace) |
void | adsCleared () |
void | afterReplaced (const std::string &name, Mantid::API::Workspace_sptr workspace) |
void | postDeleteRequested (const std::string &name) |
void | preDeleteRequested (const std::string &name, Mantid::API::Workspace_sptr workspace) |
Delete signal handler. More... | |
void | renamed (const std::string &oldName, const std::string &newName) |
Public Member Functions | |
ObserverCallback (WorkspaceObserver *observer) | |
Private Slots | |
void | handleAdd (const std::string &name, const Mantid::API::Workspace_sptr &workspace) |
Add slot. More... | |
void | handleAfterReplace (const std::string &name, const Mantid::API::Workspace_sptr &workspace) |
Replace slot. More... | |
void | handleClearADS () |
Clear slot. More... | |
void | handlePostDelete (const std::string &name) |
Post Delete slot. More... | |
void | handlePreDelete (const std::string &name, const Mantid::API::Workspace_sptr &workspace) |
Pre Delete slot. More... | |
void | handleRename (const std::string &oldName, const std::string &newName) |
Rename slot. More... | |
Private Member Functions | |
ObserverCallback () | |
Default constructor. More... | |
Private Attributes | |
WorkspaceObserver * | m_observer |
Object to call back to. More... | |
Friends | |
class | WorkspaceObserver |
A simple callback class so that we avoid multiple inheritance issues with QObject.
This adds an extra level of indirection to the call between a Poco notification handler and the call to the correct WorkspaceObserver handler. It is necessary to do this rather than just call the function directly so that the function call gets executed in the object's thread rather than in the thread that the notification was received in.
Multiple inheritance is not used in WorkspaceObserver as their seems to be some problem using it and QObject
Definition at line 44 of file WorkspaceObserver.h.
|
inline |
Definition at line 48 of file WorkspaceObserver.h.
|
private |
Default constructor.
|
signal |
|
signal |
|
signal |
|
privateslot |
Add slot.
Definition at line 26 of file WorkspaceObserver.cpp.
References MantidQt::API::WorkspaceObserver::addHandle(), m_observer, and workspace.
|
privateslot |
Replace slot.
Definition at line 30 of file WorkspaceObserver.cpp.
References MantidQt::API::WorkspaceObserver::afterReplaceHandle(), m_observer, and workspace.
|
privateslot |
Clear slot.
Definition at line 38 of file WorkspaceObserver.cpp.
References MantidQt::API::WorkspaceObserver::clearADSHandle(), and m_observer.
|
privateslot |
Post Delete slot.
Definition at line 24 of file WorkspaceObserver.cpp.
References m_observer, and MantidQt::API::WorkspaceObserver::postDeleteHandle().
|
privateslot |
Pre Delete slot.
Definition at line 20 of file WorkspaceObserver.cpp.
References m_observer, MantidQt::API::WorkspaceObserver::preDeleteHandle(), and workspace.
|
privateslot |
Rename slot.
Definition at line 34 of file WorkspaceObserver.cpp.
References m_observer, and MantidQt::API::WorkspaceObserver::renameHandle().
|
signal |
|
signal |
Delete signal handler.
|
signal |
|
friend |
Definition at line 74 of file WorkspaceObserver.h.
|
private |
Object to call back to.
Definition at line 78 of file WorkspaceObserver.h.
Referenced by handleAdd(), handleAfterReplace(), handleClearADS(), handlePostDelete(), handlePreDelete(), and handleRename().