Pimcommon

renamefiledialog.h
1/*
2 * SPDX-FileCopyrightText: 2011-2024 Laurent Montel <montel@kde.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#pragma once
8
9#include <QDialog>
10#include <QUrl>
11
12#include "pimcommon_export.h"
13
14namespace PimCommon
15{
16class RenameFileDialogPrivate;
17/**
18 * @brief The RenameFileDialog class
19 * @author Laurent Montel <montel@kde.org>
20 */
21class PIMCOMMON_EXPORT RenameFileDialog : public QDialog
22{
23 Q_OBJECT
24public:
25 explicit RenameFileDialog(const QUrl &url, bool multiFiles, QWidget *parent);
26 ~RenameFileDialog() override;
27
28 enum RenameFileDialogResult {
29 RENAMEFILE_IGNORE = 0,
30 RENAMEFILE_IGNOREALL = 1,
31 RENAMEFILE_RENAME = 2,
32 RENAMEFILE_OVERWRITE = 3,
33 RENAMEFILE_OVERWRITEALL = 4
34 };
35
36 [[nodiscard]] QUrl newName() const;
37
38private:
39 PIMCOMMON_NO_EXPORT void slotOverwritePressed();
40 PIMCOMMON_NO_EXPORT void slotIgnorePressed();
41 PIMCOMMON_NO_EXPORT void slotRenamePressed();
42 PIMCOMMON_NO_EXPORT void slotApplyAllPressed();
43 PIMCOMMON_NO_EXPORT void slotSuggestNewNamePressed();
44 //@cond PRIVATE
45 class RenameFileDialogPrivate;
46 std::unique_ptr<RenameFileDialogPrivate> const d;
47};
48}
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.