mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
30 lines
523 B
C
30 lines
523 B
C
|
/*
|
||
|
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <AK/Error.h>
|
||
|
#include <AK/Function.h>
|
||
|
#include <AK/Noncopyable.h>
|
||
|
#include <AK/NonnullOwnPtr.h>
|
||
|
|
||
|
namespace Core {
|
||
|
|
||
|
class TimeZoneWatcher {
|
||
|
AK_MAKE_NONCOPYABLE(TimeZoneWatcher);
|
||
|
|
||
|
public:
|
||
|
static ErrorOr<NonnullOwnPtr<TimeZoneWatcher>> create();
|
||
|
virtual ~TimeZoneWatcher() = default;
|
||
|
|
||
|
Function<void()> on_time_zone_changed;
|
||
|
|
||
|
protected:
|
||
|
TimeZoneWatcher() = default;
|
||
|
};
|
||
|
|
||
|
}
|