Initial QSfera import

This commit is contained in:
Курнат Андрей
2026-06-07 10:20:04 +03:00
commit 2315f25754
16485 changed files with 4826827 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: 2025 Hannah von Reth <h.vonreth@opencloud.eu>
#pragma once
#include "libsync/common/result.h"
#include "libsync/qsferasynclib.h"
#include <filesystem>
#include <optional>
#include <QString>
namespace OCC {
namespace FileSystem {
namespace Xattr {
QSFERA_SYNC_EXPORT bool supportsxattr(const std::filesystem::path &path);
QSFERA_SYNC_EXPORT std::optional<QByteArray> getxattr(const std::filesystem::path &path, const QString &name);
QSFERA_SYNC_EXPORT Result<void, QString> setxattr(const std::filesystem::path &path, const QString &name, const QByteArray &value);
QSFERA_SYNC_EXPORT Result<void, QString> removexattr(const std::filesystem::path &path, const QString &name);
}
}
}