1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00
serenity/Userland/Libraries/LibCore
Sam Atkins b9dc2d7ebf LibCore: Introduce Core::Environment wrapper
Core::System already had some wrappers for *env() functions, which I've
copied over. But 1) the set of functions there was incomplete, and 2)
the environment feels like an object in its own right, so let's treat it
as one. :^)

Also add `Core::Environment::has(StringView)` for situations where we
just care if a variable is defined.
2024-02-27 08:33:48 +00:00
..
Account.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Account.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
AnonymousBuffer.cpp Userland+Tests: Don't use MAP_FILE when mmap-ing 2023-09-01 19:50:35 +02:00
AnonymousBuffer.h LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
ArgsParser.cpp LibCore: Refactor template definitions to header in ArgsParser 2024-01-29 13:58:37 +00:00
ArgsParser.h LibCore: Refactor template definitions to header in ArgsParser 2024-01-29 13:58:37 +00:00
CMakeLists.txt LibCore: Introduce Core::Environment wrapper 2024-02-27 08:33:48 +00:00
Command.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Command.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
ConfigFile.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
ConfigFile.h Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
DateTime.cpp LibCore: Add DateTime parser for milliseconds 2024-02-03 09:29:40 +01:00
DateTime.h LibCore/DateTime: Add more binary operators 2024-01-06 10:37:53 -07:00
Debounce.h Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
DeferredInvocationContext.h Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
Directory.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Directory.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
DirectoryEntry.cpp LibCore: Add methods to convert DirectoryEntry types to names 2024-01-13 19:01:07 -07:00
DirectoryEntry.h LibCore: Add methods to convert DirectoryEntry types to names 2024-01-13 19:01:07 -07:00
DirIterator.cpp LibCore: Add new flag for DirIterator to not use fstatat 2024-01-13 19:01:07 -07:00
DirIterator.h LibCore: Add new flag for DirIterator to not use fstatat 2024-01-13 19:01:07 -07:00
ElapsedTimer.cpp LibCore+Utilities: Replace ElapsedTimer precise flag with an enum 2024-02-26 16:12:20 -07:00
ElapsedTimer.h LibCore+Utilities: Replace ElapsedTimer precise flag with an enum 2024-02-26 16:12:20 -07:00
Environment.cpp LibCore: Introduce Core::Environment wrapper 2024-02-27 08:33:48 +00:00
Environment.h LibCore: Introduce Core::Environment wrapper 2024-02-27 08:33:48 +00:00
Event.cpp Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
Event.h LibCore+Ladybird: Don't store timer_id in Core::TimerEvent 2024-02-25 17:24:36 -07:00
EventLoop.cpp LibCore+Ladybird: Don't force timer ids to be integer just to remap them 2024-02-25 17:24:36 -07:00
EventLoop.h LibCore+Ladybird: Don't force timer ids to be integer just to remap them 2024-02-25 17:24:36 -07:00
EventLoopImplementation.cpp LibCore: Move post_event() back to EventLoopImplementation 2023-04-26 19:17:04 +01:00
EventLoopImplementation.h LibCore+Ladybird: Don't force timer ids to be integer just to remap them 2024-02-25 17:24:36 -07:00
EventLoopImplementationUnix.cpp LibCore: Decouple handling of timers and waiting for events 2024-02-25 17:24:36 -07:00
EventLoopImplementationUnix.h LibCore+Ladybird: Don't force timer ids to be integer just to remap them 2024-02-25 17:24:36 -07:00
EventReceiver.cpp LibCore+Ladybird: Make unregistering timer infallible 2024-02-25 17:24:36 -07:00
EventReceiver.h LibCore+Ladybird: Don't force timer ids to be integer just to remap them 2024-02-25 17:24:36 -07:00
File.cpp LibCore: Keep track of file offset to avoid system call for tell() 2023-07-06 21:05:57 +02:00
File.h AK+LibCore: Make output buffered stream seekable 2023-08-12 12:25:26 -06:00
FilePermissionsMask.cpp LibCore: Implement four-digit modes for FilePermissionsMask parsing 2022-07-27 21:45:01 +00:00
FilePermissionsMask.h Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
FileWatcher.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
FileWatcherLinux.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
FileWatcherMacOS.mm Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
FileWatcherSerenity.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
FileWatcherUnimplemented.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Forward.h LibCore: Add Resource for platform agnostic application resource loading 2023-10-17 11:02:01 -06:00
GetPassword.cpp LibCore: Propagate errors in SecretString 2023-02-08 19:49:48 +01:00
GetPassword.h LibCore: Use ErrorOr<T> for Core::get_password() 2021-11-08 00:35:27 +01:00
Group.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Group.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
LocalServer.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
LocalServer.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
LockFile.cpp LibCore+Userland: Remove File::ensure_parent_directories 2022-04-11 00:08:48 +02:00
LockFile.h Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
MappedFile.cpp AK: Use an enum to specify the open mode instead of a bool 2023-11-08 18:19:34 +01:00
MappedFile.h AK: Use an enum to specify the open mode instead of a bool 2023-11-08 18:19:34 +01:00
MimeData.cpp LibGfx: Add a .pam loader 2024-01-26 07:36:53 +01:00
MimeData.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
NetworkJob.cpp LibCore: Don't implement pure virtual methods in NetworkJob 2023-07-03 23:29:28 +02:00
NetworkJob.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
NetworkResponse.h Libraries: Use default constructors/destructors in LibCore 2022-03-10 18:04:26 -08:00
Notifier.cpp LibCore: Allow listening for multiple conditions using a single Notifier 2024-02-03 16:43:13 -07:00
Notifier.h LibCore: Allow listening for multiple conditions using a single Notifier 2024-02-03 16:43:13 -07:00
Process.cpp LibCore+JSSpecCompiler: Add option for Process::spawn() to use spawnp() 2024-01-19 12:16:21 -07:00
Process.h LibCore+JSSpecCompiler: Add option for Process::spawn() to use spawnp() 2024-01-19 12:16:21 -07:00
ProcessStatisticsReader.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
ProcessStatisticsReader.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Promise.h LibCore: Fix compilation of infallible Promise::when_resolved handlers 2024-01-01 10:11:45 +01:00
Proxy.h AK: Serialize URL hosts with 'concept-host-serializer' 2023-07-31 05:18:51 +02:00
Resource.cpp LibCore: Add a Resource method to create a file:// URL from a resource 2023-11-06 09:39:59 +01:00
Resource.h LibCore: Add a Resource method to create a file:// URL from a resource 2023-11-06 09:39:59 +01:00
ResourceImplementation.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
ResourceImplementation.h LibCore: Do not return an Optional from Resource:::filesystem_path 2023-11-06 09:39:59 +01:00
ResourceImplementationFile.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
ResourceImplementationFile.h LibCore: Do not return an Optional from Resource:::filesystem_path 2023-11-06 09:39:59 +01:00
SecretString.cpp LibCore: Propagate errors in SecretString 2023-02-08 19:49:48 +01:00
SecretString.h LibCore: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls 2023-06-18 08:47:51 +01:00
SessionManagement.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SessionManagement.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SharedCircularQueue.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Socket.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Socket.h RequestServer: Avoid using gethostbyname 2024-02-06 21:43:23 +01:00
SocketAddress.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SOCKSProxyClient.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SOCKSProxyClient.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
StandardPaths.cpp LibCore: Add Music, Pictures and Videos user directory helpers 2024-02-05 16:30:52 +01:00
StandardPaths.h LibCore: Add Music, Pictures and Videos user directory helpers 2024-02-05 16:30:52 +01:00
System.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
System.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SystemServerTakeover.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
SystemServerTakeover.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TCPServer.cpp LibCore: Use accept instead of accept4 on Haiku 2023-09-17 13:38:12 -06:00
TCPServer.h Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
ThreadedPromise.h Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
ThreadEventQueue.cpp Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
ThreadEventQueue.h Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
Timer.cpp Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
Timer.h Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
UDPServer.cpp Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
UDPServer.h Userland: Rename Core::Object to Core::EventReceiver 2023-08-06 20:39:51 +02:00
UmaskScope.h Everywhere: Fix order of includes and #pragma once 2022-09-18 18:30:05 -07:00
Version.cpp Everywhere: Prefer _string when constructing strings from literals 2024-02-08 11:01:10 -05:00
Version.h LibCore+LibGUI+About: Use String in Core::Version and GUI::AboutDialog 2023-03-03 15:23:47 +01:00