ctkPluginFrameworkDebug_p.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*=============================================================================
  2. Library: CTK
  3. Copyright (c) German Cancer Research Center,
  4. Division of Medical and Biological Informatics
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. =============================================================================*/
  15. #ifndef CTKPLUGINFRAMEWORKDEBUG_P_H
  16. #define CTKPLUGINFRAMEWORKDEBUG_P_H
  17. #include "ctkPluginFramework_global.h"
  18. /**
  19. * Variables that control debugging of the pluginfw code.
  20. */
  21. class ctkPluginFrameworkDebug
  22. {
  23. public:
  24. ctkPluginFrameworkDebug(ctkProperties& props);
  25. /**
  26. * Report error handling events.
  27. */
  28. static QString ERRORS_PROP; // = "org.commontk.pluginfw.debug.errors";
  29. bool errors;
  30. /**
  31. * Report pluginfw create, init, start, stop
  32. */
  33. static QString FRAMEWORK_PROP; // = "org.commontk.pluginfw.debug.pluginfw";
  34. bool framework;
  35. /**
  36. * Report hooks handling
  37. */
  38. static QString HOOKS_PROP; // = "org.commontk.pluginfw.debug.hooks";
  39. bool hooks;
  40. /**
  41. * Report triggering of lazy activation
  42. */
  43. static QString LAZY_ACTIVATION_PROP; // = "org.commontk.pluginfw.debug.lazy_activation";
  44. bool lazy_activation;
  45. /**
  46. * Report LDAP handling
  47. */
  48. static QString LDAP_PROP; // = "org.commontk.pluginfw.debug.ldap";
  49. bool ldap;
  50. /**
  51. * Print information about service reference lookups
  52. * and rejections due to missing permissions
  53. * for calling plug-ins.
  54. */
  55. static QString SERVICE_REFERENCE_PROP; // = "org.commontk.pluginfw.debug.service_reference";
  56. bool service_reference;
  57. /**
  58. * Report startlevel.
  59. */
  60. static QString STARTLEVEL_PROP; // = "org.commontk.pluginfw.debug.startlevel";
  61. bool startlevel;
  62. /**
  63. * Report url
  64. */
  65. static QString URL_PROP; // = "org.commontk.pluginfw.debug.url";
  66. bool url;
  67. /**
  68. * Report plug-in resolve progress
  69. */
  70. static QString RESOLVE_PROP; // = "org.commontk.pluginfw.debug.resolve";
  71. bool resolve;
  72. private:
  73. void setPropertyIfNotSet(ctkProperties& props, const QString& key, const QVariant& val);
  74. };
  75. #endif // CTKPLUGINFRAMEWORKDEBUG_P_H