File indexing completed on 2024-12-01 13:34:04

0001 /**
0002  * SPDX-FileCopyrightText: 2022 Suhaas Joshi <joshiesuhaas0@gmail.com>
0003  * SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QString>
0010 #include <QUrl>
0011 #include <QVector>
0012 
0013 namespace FlatpakHelper
0014 {
0015 
0016 QString userBaseDirectory();
0017 QString systemBaseDirectory();
0018 
0019 QString userOverridesDirectory();
0020 QString systemOverridesDirectory();
0021 
0022 QString metadataPathForUserInstallation(const QString &flatpakName);
0023 QString metadataPathForSystemInstallation(const QString &flatpakName);
0024 
0025 QUrl iconSourceUrl(const QString &displayName, const QString &flatpakName, const QString &appBaseDirectory);
0026 
0027 // Port of flatpak_verify_dbus_name static/internal function.
0028 bool verifyDBusName(QStringView name);
0029 }