File indexing completed on 2024-03-24 17:02:08

0001 #ifndef HOTKEYS_EXPORT_WIDGET_H
0002 #define HOTKEYS_EXPORT_WIDGET_H
0003 /**
0004  * SPDX-FileCopyrightText: 2009 Michael Jansen <kde@michael-jansen.biz>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.0-or-later
0007  */
0008 
0009 #include "ui_hotkeys_export_widget.h"
0010 
0011 #include <QDialog>
0012 #include <QUrl>
0013 
0014 #include <QWidget>
0015 
0016 /**
0017  * @author Michael Jansen <kde@michael-jansen.biz>
0018  */
0019 class KHotkeysExportWidget : public QWidget
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     KHotkeysExportWidget(QWidget *parent);
0025     ~KHotkeysExportWidget() override;
0026 
0027     // The layout
0028     Ui::KHotkeysExportWidget ui;
0029 
0030 }; // KHotkeysExportWidget
0031 
0032 /**
0033  * @author Michael Jansen <kde@michael-jansen.biz>
0034  */
0035 class KHotkeysExportDialog : public QDialog
0036 {
0037 public:
0038     KHotkeysExportDialog(QWidget *);
0039     ~KHotkeysExportDialog() override;
0040 
0041     QString importId() const;
0042 
0043     bool allowMerging() const;
0044     void setAllowMerging(bool);
0045     void setImportId(const QString &id);
0046     int state() const;
0047     QUrl url() const;
0048 
0049 private:
0050     KHotkeysExportWidget *w;
0051 }; // KHotkeysExportDialog
0052 
0053 #endif /* HOTKEYS_EXPORT_WIDGET_H */