Commit 465cc8f7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

add/get info

parent ac51d3e0
Pipeline #125743 passed with stage
in 14 minutes and 38 seconds
......@@ -4,7 +4,6 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "openurlwithconfigurecreatedialog.h"
#include "openurlwithconfigurecreatewidget.h"
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <QVBoxLayout>
......@@ -31,3 +30,13 @@ OpenUrlWithConfigureCreateDialog::OpenUrlWithConfigureCreateDialog(QWidget *pare
OpenUrlWithConfigureCreateDialog::~OpenUrlWithConfigureCreateDialog()
{
}
OpenUrlWithConfigureCreateWidget::OpenUrlWithInfo OpenUrlWithConfigureCreateDialog::info() const
{
return mOpenUrlWithCreateWidget->info();
}
void OpenUrlWithConfigureCreateDialog::setInfo(const OpenUrlWithConfigureCreateWidget::OpenUrlWithInfo &i)
{
mOpenUrlWithCreateWidget->setInfo(i);
}
......@@ -7,8 +7,8 @@
#pragma once
#include "openurlwith_private_export.h"
#include "openurlwithconfigurecreatewidget.h"
#include <QDialog>
class OpenUrlWithConfigureCreateWidget;
class LIBOPENURLWITHCONFIGURE_TESTS_EXPORT OpenUrlWithConfigureCreateDialog : public QDialog
{
Q_OBJECT
......@@ -16,6 +16,9 @@ public:
explicit OpenUrlWithConfigureCreateDialog(QWidget *parent = nullptr);
~OpenUrlWithConfigureCreateDialog() override;
Q_REQUIRED_RESULT OpenUrlWithConfigureCreateWidget::OpenUrlWithInfo info() const;
void setInfo(const OpenUrlWithConfigureCreateWidget::OpenUrlWithInfo &i);
private:
OpenUrlWithConfigureCreateWidget *const mOpenUrlWithCreateWidget;
};
......@@ -27,3 +27,13 @@ OpenUrlWithConfigureCreateWidget::OpenUrlWithConfigureCreateWidget(QWidget *pare
OpenUrlWithConfigureCreateWidget::~OpenUrlWithConfigureCreateWidget()
{
}
OpenUrlWithConfigureCreateWidget::OpenUrlWithInfo OpenUrlWithConfigureCreateWidget::info() const
{
return {};
}
void OpenUrlWithConfigureCreateWidget::setInfo(const OpenUrlWithInfo &i)
{
// TODO
}
......@@ -12,9 +12,17 @@ class LIBOPENURLWITHCONFIGURE_TESTS_EXPORT OpenUrlWithConfigureCreateWidget : pu
{
Q_OBJECT
public:
struct OpenUrlWithInfo {
QString command;
QString url;
};
explicit OpenUrlWithConfigureCreateWidget(QWidget *parent = nullptr);
~OpenUrlWithConfigureCreateWidget() override;
Q_REQUIRED_RESULT OpenUrlWithInfo info() const;
void setInfo(const OpenUrlWithInfo &i);
private:
QLineEdit *const mServerName;
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment