1 #ifndef WS_EVENT_WORKSPACECHANGED_H_INCLUDED
2 #define WS_EVENT_WORKSPACECHANGED_H_INCLUDED
41 : m_name(name), m_old_name(
""), m_type(type) {}
44 : m_name(name), m_old_name(old_name), m_type(ProjectRenamed) {}
55 return (m_type==Type::ProjectAdded || m_type==Type::ProjectRemoved) ? m_name :
"";
62 return (m_type==Type::ProjectRenamed) ? m_old_name :
"";
69 return (m_type==Type::ProjectRenamed) ? m_name :
"";
74 std::string m_old_name;
82 #endif // end_of_inclde_guard
Event used to inform some observer that the workspace has changed.
Type GetType() const
Get type.
const std::string GetOldName() const
In case type is ProjectRenamed, get old name of renamed project.
Namespace for generic graphical shell for simulators.
const std::string GetName() const
In case type is ProjectAdded or ProjectRemoved, get name of project.
const std::string GetNewName() const
In case type is ProjectRenamed, get new name of renamed project.