mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
29 lines
523 B
C++
29 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;
|
|
};
|
|
|
|
}
|