ctkPluginFrameworkDebug_p.h 2.1 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();
  25. static QString OPTION_DEBUG_GENERAL;
  26. bool enabled;
  27. /**
  28. * Report error handling events.
  29. */
  30. static QString OPTION_DEBUG_ERRORS;
  31. bool errors;
  32. /**
  33. * Report pluginfw create, init, start, stop
  34. */
  35. static QString OPTION_DEBUG_FRAMEWORK;
  36. bool framework;
  37. /**
  38. * Report hooks handling
  39. */
  40. static QString OPTION_DEBUG_HOOKS;
  41. bool hooks;
  42. /**
  43. * Report triggering of lazy activation
  44. */
  45. static QString OPTION_DEBUG_LAZY_ACTIVATION;
  46. bool lazy_activation;
  47. /**
  48. * Report LDAP handling
  49. */
  50. static QString OPTION_DEBUG_LDAP;
  51. bool ldap;
  52. /**
  53. * Print information about service reference lookups
  54. * and rejections due to missing permissions
  55. * for calling plug-ins.
  56. */
  57. static QString OPTION_DEBUG_SERVICE_REFERENCE;
  58. bool service_reference;
  59. /**
  60. * Report startlevel.
  61. */
  62. static QString OPTION_DEBUG_STARTLEVEL;
  63. bool startlevel;
  64. /**
  65. * Report url
  66. */
  67. static QString OPTION_DEBUG_URL;
  68. bool url;
  69. /**
  70. * Report plug-in resolve progress
  71. */
  72. static QString OPTION_DEBUG_RESOLVE;
  73. bool resolve;
  74. };
  75. #endif // CTKPLUGINFRAMEWORKDEBUG_P_H