File indexing completed on 2024-07-14 14:35:25

0001 /*
0002     SPDX-FileCopyrightText: 2015 Gregor Mi <codestruct@posteo.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef KMORETOOLSCONFIGDIALOG_H
0008 #define KMORETOOLSCONFIGDIALOG_H
0009 
0010 #include <KPageDialog>
0011 
0012 #include "kmoretools_p.h"
0013 
0014 #include <memory>
0015 
0016 class KMoreToolsConfigDialogPrivate;
0017 
0018 class KMoreToolsConfigDialog : public KPageDialog
0019 {
0020 public:
0021     /**
0022      * @param defaultStructure: as defined in calling code; also includes the not-installed items
0023      * @param configuredStructure: as loaded from config file
0024      * @param title: optional title
0025      */
0026     KMoreToolsConfigDialog(const KmtMenuStructureDto &defaultStructure, const KmtMenuStructureDto &currentStructure, const QString &title = QString());
0027 
0028     ~KMoreToolsConfigDialog() override;
0029 
0030     /**
0031      * result after ctor or after user used the dialog
0032      */
0033     KmtMenuStructureDto currentStructure();
0034 
0035 private:
0036     const std::unique_ptr<KMoreToolsConfigDialogPrivate> d;
0037 };
0038 
0039 #endif // KMORETOOLSCONFIGDIALOG_H