mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 15:07:17 -04:00
Integrated core file indexer with its database. Modfied necessary queries. Moved service file indexer to pure product specific folder
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <Common/Query.hpp>
|
|
|
|
#include <string>
|
|
|
|
namespace db::multimedia_files::query
|
|
{
|
|
class Remove : public Query
|
|
{
|
|
public:
|
|
explicit Remove(uint32_t id);
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
|
|
const uint32_t id;
|
|
};
|
|
|
|
class RemoveByPath : public Query
|
|
{
|
|
public:
|
|
explicit RemoveByPath(const std::string &path);
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
|
|
const std::string path;
|
|
};
|
|
|
|
class RemoveAll : public Query
|
|
{
|
|
public:
|
|
explicit RemoveAll();
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
class RemoveResult : public QueryResult
|
|
{
|
|
const bool ret = true;
|
|
|
|
public:
|
|
explicit RemoveResult(bool ret);
|
|
[[nodiscard]] auto getResult() const -> bool;
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
} // namespace db::multimedia_files::query
|