Ver código fonte

Added "event" constant.

Sascha Zelzer 14 anos atrás
pai
commit
6ea19d3276

+ 1 - 0
Libs/PluginFramework/service/event/ctkEventConstants.cpp

@@ -34,6 +34,7 @@ const QString ctkEventConstants::PLUGIN_ID = "plugin.id";
 const QString ctkEventConstants::PLUGIN = "plugin";
 const QString ctkEventConstants::PLUGIN_VERSION = "plugin.version";
 
+const QString ctkEventConstants::EVENT = "event";
 const QString ctkEventConstants::EXCEPTION = "exception";
 const QString ctkEventConstants::EXCEPTION_CLASS = "exception.class";
 const QString ctkEventConstants::EXCEPTION_MESSAGE = "exception.message";

+ 8 - 0
Libs/PluginFramework/service/event/ctkEventConstants.h

@@ -148,6 +148,14 @@ struct CTK_PLUGINFW_EXPORT ctkEventConstants {
   static const QString PLUGIN_VERSION; // = "plugin.version"
 
   /**
+   * The forwarded event object. Used when rebroadcasting an event that was
+   * sent via some other event mechanism. The type of the value for this event
+   * property depends on the event topic (for org/commontk/PluginEvent/&0x42; the
+   * the type will be ctkPluginEvent).
+   */
+  static const QString EVENT; // = "event"
+
+  /**
    * An exception or error. The type of the value for this event property is
    * <code>ctkRuntimeException</code>.
    */