summaryrefslogtreecommitdiff
path: root/Ladybird/EventLoopPluginQt.h
blob: 1c3751fe989458085ab5dc255148b71c6dc5c745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/Platform/EventLoopPlugin.h>

namespace Ladybird {

class EventLoopPluginQt final : public Web::Platform::EventLoopPlugin {
public:
    EventLoopPluginQt();
    virtual ~EventLoopPluginQt() override;

    virtual void spin_until(Function<bool()> goal_condition) override;
    virtual void deferred_invoke(Function<void()>) override;
    virtual NonnullRefPtr<Web::Platform::Timer> create_timer() override;
    virtual void quit() override;
};

}