File indexing completed on 2024-12-22 04:45:35
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "libruqolawidgets_private_export.h" 0010 #include <QUrl> 0011 #include <QWidget> 0012 class QLineEdit; 0013 class KUrlRequester; 0014 class LIBRUQOLAWIDGETS_TESTS_EXPORT AdministratorCustomSoundsCreateWidget : public QWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 struct CustomSoundInfo { 0019 QString name; 0020 QUrl fileNameUrl; 0021 }; 0022 explicit AdministratorCustomSoundsCreateWidget(QWidget *parent = nullptr); 0023 ~AdministratorCustomSoundsCreateWidget() override; 0024 0025 void setCustomSoundInfo(const CustomSoundInfo &info); 0026 0027 [[nodiscard]] AdministratorCustomSoundsCreateWidget::CustomSoundInfo customSoundInfo() const; 0028 0029 private: 0030 QLineEdit *const mName; 0031 KUrlRequester *const mSelectFile; 0032 };