ctkPluginFramework.h 522 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef CTKPLUGINFRAMEWORK_H
  2. #define CTKPLUGINFRAMEWORK_H
  3. #include "ctkPlugin.h"
  4. #include "ctkPluginRepository_p.h"
  5. namespace ctk {
  6. class PluginFramework : public Plugin
  7. {
  8. public:
  9. PluginFramework();
  10. void init();
  11. // TODO return info about the reason why this
  12. // method returned
  13. void waitForStop(int timeout);
  14. protected:
  15. bool active;
  16. PluginRepository plugins;
  17. ServiceRegistry serviceRegistry;
  18. InternalSystemPlugin systemPlugin;
  19. };
  20. }
  21. #endif // CTKPLUGINFRAMEWORK_H