summaryrefslogtreecommitdiff
path: root/Userland/Applets/Network/main.cpp
AgeCommit message (Collapse)Author
2022-12-06Everywhere: Rename to_{string => deprecated_string}() where applicableLinus Groh
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-10-25Applets: Use new global variables at /sys/kernel/ directoryLiav A
2022-10-03SystemServer+LoginServer+Userland: Switch to sid-based socketsPeter Elliott
This commit does three things atomically: - switch over Core::Account+SystemServer+LoginServer to sid based socket names. - change socket names with %uid to %sid. - add/update necessary pledges and unveils. Userland: Switch over servers to sid based sockets Userland: Properly pledge and unveil for sid based sockets
2022-09-18Applets/Network: Stop marking methods virtual unnecessarilySam Atkins
None of these are overridden, and NetworkWidget is a final class.
2022-09-18Applets/Network: Remove `include_loopback` parameterSam Atkins
This is always false, so we can do without it and simplify things a little.
2022-09-18Applets/Network: Port to Core::StreamSam Atkins
2022-08-14Base: Launch NotificationServer at session start-upLucas CHOLLET
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-06-03Applets: Use spawn_or_show_error() for common spawn patternMacDue
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-01-03Applets/Network: Propagate errors using custom try_createcreator1creeper1
We now move-construct the bitmaps into the NetworkWidget.
2022-01-03Applets/Network: Propagate errors with try_set_main_widgetcreator1creeper1
Use try_set_main_widget instead of set_main_widget.
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-23Applets/Network: Port to LibMain :^)Andreas Kling
This opens up using TRY() for syscalls and Core::Object creation.
2021-11-17AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional)Andreas Kling
Also add slightly richer parse errors now that we can include a string literal with returned errors. This will allow us to use TRY() when working with JSON data.
2021-11-08LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()Andreas Kling
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
2021-11-02Applications: Fix visibility of Object-derivative constructorsBen Wiederhake
Derivatives of Core::Object should be constructed through ClassName::construct(), to avoid handling ref-counted objects with refcount zero. Fixing the visibility means that misuses like this are more difficult.
2021-10-27Everywhere: Rename left/right-click to primary/secondaryFiliph Sandström
This resolves #10641.
2021-08-03Userland: Make representation of 'null' IPv4-address friendlierThomas Wagenveld
Show an empty column rather than 'null' in SystemMonitor and show 'no IP' in the network applet if the adapter has no IPv4-address configured.
2021-08-03Userland: Add network adapter link status to SystemMonitor and appletThomas Wagenveld
Add a column named 'Link status' to the Network tab in SystemMonitor showing the speed and duplex if the link is up. Add the link speed behind the existing text in the applet or show 'down' if the link is down.
2021-07-22NetworkApplet: Omit unnecessary newline in tooltipFrHun
2021-07-21LibGfx: Use "try_" prefix for static factory functionsAndreas Kling
Also mark them as [[nodiscard]].
2021-05-31Applets/Network: Replace fprintf(stderr) with dbgln()Linus Groh
This is an applet, so we're not going to see its stderr anyway.
2021-05-22Userland: Rename loop0 to loopGunnar Beutner
Now that the kernel picks a different name for the loopback adapter we should update userland to account for this.
2021-05-13Userland: Tighten a *lot* of pledges! :^)Andreas Kling
Since applications using Core::EventLoop no longer need to create a socket in /tmp/rpc/, and also don't need to listen for incoming connections on this socket, we can remove a whole bunch of pledges!
2021-05-12LibCore+Everywhere: Move OpenMode out of IODeviceAli Mohammad Pur
...and make it an enum class so people don't omit "OpenMode".
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-17Network.Applet: Avoid JsonObject copy and use StringBuilder::appendff()Andreas Kling
2021-04-05Network: Make the applet use an alpha channelDawid Wolosowicz
2021-04-04WindowServer+LibGUI: Rename WindowType::MenuApplet => AppletAndreas Kling
2021-04-04Userland: Rename *.MenuApplet => *.AppletAndreas Kling
These are no longer displayed in the menu, so it doesn't make sense to call them menu applets. :^)