Files
LorenEteval_Furious/Furious/Service/__init__.py
T
Loren Eteval d9793286d1 refactor: make connection startup asynchronous
Replace GUI connection startup waits with a cancellable, staged Qt transaction. Observe core endpoints, DNS resolution, TUN device readiness, and runtime survival without nested event-loop waits while preserving the synchronous plugin compatibility path.

Commit runtimes only after every required stage succeeds, reject stale generations, and cover readiness, cancellation, rollback, platform ordering, and controller integration.

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
2026-08-30 17:09:05 +08:00

143 lines
3.9 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright (C) 2024–present Loren Eteval & contributors <loren.eteval@proton.me>
#
# This file is part of Furious.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Expose application services that coordinate lower-level subsystems."""
from __future__ import annotations
from .ConnectionManager import (
ConnectionManager,
ConnectionStartOperation,
ConnectionStartStage,
)
from .ConnectivityManager import ConnectivityManager
from .DnsResolver import DnsResolver
from .EndpointInfoService import (
PROXY_ENDPOINT_INFO_SETTING,
EndpointInfo,
EndpointInfoService,
EndpointInfoState,
EndpointLocation,
ProxyEndpointHttpClient,
)
from .LogManager import (
ALL_LOGS_FILTER,
APPLICATION_LOG_CATEGORY,
CORE_LOG_CATEGORY,
TUN2SOCKS_LOG_CATEGORY,
ApplicationLogHandler,
LogCursor,
LogEntryBatch,
LogManager,
formatLogEntry,
)
from .MetricsHistory import (
DOWNLOAD_SPEED_METRIC,
DOWNLOAD_USAGE_METRIC,
UPLOAD_SPEED_METRIC,
UPLOAD_USAGE_METRIC,
MetricSeriesPoint,
MetricSample,
MetricsHistory,
)
from .PluginUIManager import PluginNavigationManager, isCoreActive
from .ProfileTesting import (
DownloadSpeedTestOptions,
LatencyTestOptions,
LatencyTestType,
ProfileTestField,
ProfileTestJobState,
ProfileTestManager,
ProfileTestResult,
ProfileTestTarget,
)
from .SubscriptionImporter import (
SubscriptionImportResult,
SubscriptionImportService,
SubscriptionSource,
)
from .SubscriptionManager import (
SUBSCRIPTION_AUTO_UPDATE_OPTIONS,
SUBSCRIPTION_PROXY_OPTIONS,
SubscriptionManager,
SubscriptionUpdateBatch,
resolveSubscriptionProxy,
)
from .SubscriptionSync import SubscriptionSyncResult, SubscriptionSynchronizer
from .TrafficStatsManager import (
TrafficStatsSample,
TrafficStatsManager,
formatTrafficSpeed,
formatTrafficUsage,
)
from .UpdateManager import UpdateManager
__all__ = [
'ConnectionManager',
'ConnectionStartOperation',
'ConnectionStartStage',
'ConnectivityManager',
'DnsResolver',
'EndpointInfo',
'EndpointInfoService',
'EndpointInfoState',
'PROXY_ENDPOINT_INFO_SETTING',
'EndpointLocation',
'ProxyEndpointHttpClient',
'ALL_LOGS_FILTER',
'APPLICATION_LOG_CATEGORY',
'CORE_LOG_CATEGORY',
'TUN2SOCKS_LOG_CATEGORY',
'ApplicationLogHandler',
'LogCursor',
'LogEntryBatch',
'LogManager',
'DOWNLOAD_SPEED_METRIC',
'DOWNLOAD_USAGE_METRIC',
'UPLOAD_SPEED_METRIC',
'UPLOAD_USAGE_METRIC',
'MetricSeriesPoint',
'MetricSample',
'MetricsHistory',
'PluginNavigationManager',
'DownloadSpeedTestOptions',
'LatencyTestOptions',
'LatencyTestType',
'ProfileTestField',
'ProfileTestJobState',
'ProfileTestManager',
'ProfileTestResult',
'ProfileTestTarget',
'SubscriptionImportResult',
'SubscriptionImportService',
'SubscriptionSource',
'SubscriptionManager',
'SubscriptionUpdateBatch',
'SUBSCRIPTION_AUTO_UPDATE_OPTIONS',
'SUBSCRIPTION_PROXY_OPTIONS',
'SubscriptionSyncResult',
'SubscriptionSynchronizer',
'TrafficStatsSample',
'TrafficStatsManager',
'UpdateManager',
'formatTrafficSpeed',
'formatTrafficUsage',
'formatLogEntry',
'isCoreActive',
'resolveSubscriptionProxy',
]