main_queue_processor.h 511 B

123456789101112131415161718192021222324252627
  1. // This file is part of Desktop App Toolkit,
  2. // a set of libraries for developing nice desktop applications.
  3. //
  4. // For license and copyright information please follow this link:
  5. // https://github.com/desktop-app/legal/blob/master/LEGAL
  6. //
  7. #pragma once
  8. namespace Ui {
  9. class MainQueueProcessor : public QObject {
  10. public:
  11. MainQueueProcessor();
  12. ~MainQueueProcessor();
  13. protected:
  14. bool event(QEvent *event) override;
  15. private:
  16. void acquire();
  17. void release();
  18. rpl::lifetime _lifetime;
  19. };
  20. } // namespace Ui