Incidenceeditor

attachmenteditdialog.h
1/*
2 SPDX-FileCopyrightText: 2003 Cornelius Schumacher <schumacher@kde.org>
3 SPDX-FileCopyrightText: 2005 Reinhold Kainhofer <reinhold@kainhofer.com>
4 SPDX-FileCopyrightText: 2005 Rafal Rzepecki <divide@users.sourceforge.net>
5 SPDX-FileCopyrightText: 2010 Bertjan Broeksema <broeksema@kde.org>
6 SPDX-FileCopyrightText: 2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
7
8 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
9*/
10
11#pragma once
12
13#include <KCalendarCore/Attachment>
14#include <QDialog>
15#include <QMimeType>
16#include <QUrl>
17
18class QPushButton;
19
20namespace Ui
21{
22class AttachmentEditDialog;
23}
24
25namespace IncidenceEditorNG
26{
27class AttachmentIconItem;
28
29class AttachmentEditDialog : public QDialog
30{
32public:
33 AttachmentEditDialog(AttachmentIconItem *item, QWidget *parent, bool modal = true);
34 ~AttachmentEditDialog() override;
35 void accept() override;
36
37protected Q_SLOTS:
38 void inlineChanged(int state);
39 void urlChanged(const QUrl &url);
40 void urlChanged(const QString &url);
41 virtual void slotApply();
42
43private:
44 KCalendarCore::Attachment mAttachment;
45 AttachmentIconItem *const mItem;
46 QMimeType mMimeType;
47 Ui::AttachmentEditDialog *const mUi;
48 QPushButton *mOkButton = nullptr;
49};
50}
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.