summaryrefslogtreecommitdiff
path: root/archived/projt-launcher/launcher/ui/widgets/HubSearchProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'archived/projt-launcher/launcher/ui/widgets/HubSearchProvider.h')
-rw-r--r--archived/projt-launcher/launcher/ui/widgets/HubSearchProvider.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/archived/projt-launcher/launcher/ui/widgets/HubSearchProvider.h b/archived/projt-launcher/launcher/ui/widgets/HubSearchProvider.h
new file mode 100644
index 0000000000..5e05a460df
--- /dev/null
+++ b/archived/projt-launcher/launcher/ui/widgets/HubSearchProvider.h
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-FileCopyrightText: 2026 Project Tick
+// SPDX-FileContributor: Project Tick Team
+#pragma once
+
+#include <QList>
+#include <QString>
+#include <QUrl>
+
+struct HubSearchProvider
+{
+ QString id;
+ QString displayName;
+ QString templateUrl;
+};
+
+const QList<HubSearchProvider>& hubSearchProviders();
+QString defaultHubSearchProviderId();
+QString normalizedHubSearchProviderId(const QString& id);
+QUrl hubSearchUrlForQuery(const QString& query, const QString& providerId);
+QUrl resolveHubInput(const QString& input, const QString& providerId);