From f5b38989976eccd2fc7d3b18123d17315f7ec887 Mon Sep 17 00:00:00 2001 From: eshanized Date: Fri, 20 Dec 2024 18:40:55 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(=5FhExp):=20headears=20and?= =?UTF-8?q?=20const=20explanation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qt/snigdhaosblackbox.cpp | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/qt/snigdhaosblackbox.cpp b/qt/snigdhaosblackbox.cpp index cd99047..417c3e6 100644 --- a/qt/snigdhaosblackbox.cpp +++ b/qt/snigdhaosblackbox.cpp @@ -1,19 +1,17 @@ -#include "snigdhaosblackbox.h" -#include "./ui_snigdhaosblackbox.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -const char* INTERNET_CHECK_URL = "https://snigdha-os.github.io/"; - - +#include "snigdhaosblackbox.h" // Includes the header file for the SnigdhaOSBlackbox class to use its declarations and functionality. +#include "./ui_snigdhaosblackbox.h" // Includes the auto-generated header file for the UI created using Qt Designer. + +#include // Used to manage checkbox UI components. +#include // Provides tools for debugging, logging information, and printing messages to the console. +#include // Allows access to file metadata, such as checking file modification times. +#include // Used to manage and interact with external processes (such as running commands in the terminal). +#include // Provides a scrollable area in the UI to allow navigation through large widgets. +#include // Creates temporary files that are automatically deleted after use. +#include // Provides functionality for scheduling tasks with delays or intervals. +#include // Handles responses from network requests (used to check internet connectivity). +#include // Provides POSIX functions, used here for process management (e.g., restarting the application). + +const char* INTERNET_CHECK_URL = "https://snigdha-os.github.io/"; // URL used to verify internet connectivity by sending a network request. SnigdhaOSBlackbox::SnigdhaOSBlackbox(QWidget *parent, QString state) : QMainWindow(parent)