ソースを参照

Added new service constants.

Sascha Zelzer 14 年 前
コミット
e41986df1f
共有2 個のファイルを変更した20 個の追加0 個の削除を含む
  1. 2 0
      Libs/PluginFramework/ctkPluginConstants.cpp
  2. 18 0
      Libs/PluginFramework/ctkPluginConstants.h

+ 2 - 0
Libs/PluginFramework/ctkPluginConstants.cpp

@@ -57,4 +57,6 @@ const QString ctkPluginConstants::SERVICE_ID = "service.id";
 const QString ctkPluginConstants::SERVICE_PID = "service.pid";
 const QString ctkPluginConstants::SERVICE_PID = "service.pid";
 
 
 const QString ctkPluginConstants::SERVICE_RANKING = "service.ranking";
 const QString ctkPluginConstants::SERVICE_RANKING = "service.ranking";
+const QString ctkPluginConstants::SERVICE_VENDOR = "service.vendor";
+const QString ctkPluginConstants::SERVICE_DESCRIPTION = "service.description";
 
 

+ 18 - 0
Libs/PluginFramework/ctkPluginConstants.h

@@ -357,6 +357,24 @@ struct CTK_PLUGINFW_EXPORT ctkPluginConstants {
    */
    */
   static const QString SERVICE_RANKING; // = "service.ranking"
   static const QString SERVICE_RANKING; // = "service.ranking"
 
 
+  /**
+   * Service property identifying a service's vendor.
+   *
+   * <p>
+   * This property may be supplied in the properties <code>ctkDictionary</code> object
+   * passed to the <code>ctkPluginContext::registerService()</code> method.
+   */
+  static const QString SERVICE_VENDOR; // = "service.vendor"
+
+  /**
+   * Service property identifying a service's description.
+   *
+   * <p>
+   * This property may be supplied in the properties <code>ctkDictionary</code> object
+   * passed to the <code>ctkPluginContext::registerService()</code> method.
+   */
+  static const QString SERVICE_DESCRIPTION; // = "service.description"
+
 };
 };