소스 검색

Added "event" constant.

Sascha Zelzer 14 년 전
부모
커밋
6ea19d3276
2개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Libs/PluginFramework/service/event/ctkEventConstants.cpp
  2. 8 0
      Libs/PluginFramework/service/event/ctkEventConstants.h

+ 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>.
    */