/* ============================================================ * * This file is a part of digiKam project * https://www.digikam.org * * Date : 2021-08-27 * Description : Showfoto folder view undo command. * * SPDX-FileCopyrightText: 2021-2026 by Gilles Caulier * * SPDX-License-Identifier: GPL-2.0-or-later * * ============================================================ */ #pragma once // Qt includes #include #include // Local includes #include "showfotofolderviewsidebar.h" namespace ShowFoto { class ShowfotoFolderViewUndo : public QUndoCommand { public: ShowfotoFolderViewUndo(ShowfotoFolderViewSideBar* const view, const QString& newPath); ~ShowfotoFolderViewUndo(); QString undoPath() const; void undo(); void redo(); private: class Private; Private* const d = nullptr; }; } // namespace ShowFoto