mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +00:00
577efcdc32
This creates platform-dependent monitors to detect when the system time zone changes. On Linux, we use a file watcher to monitor files such as /etc/localtime for changes. On macOS, this uses CFNotificationCenter to be notified by the OS when the time zone changes. Note: the macOS implementation requires running in a process which is running the CoreFoundation event loop. Both the AppKit and Qt chromes are doing so in the UI process, but this means we cannot run this monitor in the WebContent process.
59 lines
1 KiB
C++
59 lines
1 KiB
C++
/*
|
|
* Copyright (c) 2018-2023, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Forward.h>
|
|
|
|
namespace Core {
|
|
|
|
class AnonymousBuffer;
|
|
class ArgsParser;
|
|
class BufferedSocketBase;
|
|
class ChildEvent;
|
|
class ConfigFile;
|
|
class CustomEvent;
|
|
class DateTime;
|
|
class DirIterator;
|
|
class DeferredInvocationContext;
|
|
class ElapsedTimer;
|
|
class Event;
|
|
class EventLoop;
|
|
class EventReceiver;
|
|
class File;
|
|
class LocalServer;
|
|
class LocalSocket;
|
|
class MappedFile;
|
|
class MimeData;
|
|
class NetworkJob;
|
|
class NetworkResponse;
|
|
class Notifier;
|
|
class Process;
|
|
class ProcessStatisticsReader;
|
|
class Resource;
|
|
class ResourceImplementation;
|
|
class Socket;
|
|
template<typename Result, typename TError = AK::Error>
|
|
class Promise;
|
|
template<typename Result, typename TError = AK::Error>
|
|
class ThreadedPromise;
|
|
class SocketAddress;
|
|
class TCPServer;
|
|
class TCPSocket;
|
|
class Timer;
|
|
class TimerEvent;
|
|
class TimeZoneWatcher;
|
|
class UDPServer;
|
|
class UDPSocket;
|
|
|
|
enum class TimerShouldFireWhenNotVisible;
|
|
|
|
#ifdef AK_OS_MACH
|
|
class MachPort;
|
|
#endif
|
|
|
|
}
|