2017-12-17 22:41:34 +04:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 13:23:14 +03:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-12-17 22:41:34 +04:00
|
|
|
|
2018-01-03 13:23:14 +03:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-12-17 22:41:34 +04:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2019-09-17 10:51:02 +03:00
|
|
|
namespace Ui {
|
2017-12-17 22:41:34 +04:00
|
|
|
|
|
|
|
class MainQueueProcessor : public QObject {
|
|
|
|
public:
|
|
|
|
MainQueueProcessor();
|
|
|
|
~MainQueueProcessor();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool event(QEvent *event) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void acquire();
|
|
|
|
void release();
|
|
|
|
|
2019-07-04 15:33:11 +02:00
|
|
|
rpl::lifetime _lifetime;
|
|
|
|
|
2017-12-17 22:41:34 +04:00
|
|
|
};
|
|
|
|
|
2019-09-17 10:51:02 +03:00
|
|
|
} // namespace Ui
|