KCalUtils

vcaldrag.h
1/*
2 This file is part of the kcalutils library.
3
4 SPDX-FileCopyrightText: 1998 Preston Brown <pbrown@kde.org>
5 SPDX-FileCopyrightText: 2001-2003 Cornelius Schumacher <schumacher@kde.org>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8*/
9#pragma once
10
11#include "kcalutils_export.h"
12#include <KCalendarCore/Calendar>
13
14class QMimeData;
15
16namespace KCalUtils
17{
18/**
19 vCalendar drag&drop class.
20*/
21namespace VCalDrag
22{
23/**
24 Mime-type of iCalendar
25*/
26[[nodiscard]] KCALUTILS_EXPORT QString mimeType();
27
28/**
29 Return, if drag&drop object can be decode to vCalendar.
30*/
31[[nodiscard]] KCALUTILS_EXPORT bool canDecode(const QMimeData *);
32
33/**
34 Decode drag&drop object to vCalendar component \a vcal.
35*/
36[[nodiscard]] KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal);
37}
38}
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Decode drag&drop object to vCalendar component vcal.
Definition vcaldrag.cpp:34
KCALUTILS_EXPORT QString mimeType()
Mime-type of iCalendar.
Definition vcaldrag.cpp:20
KCALUTILS_EXPORT bool canDecode(const QMimeData *)
Return, if drag&drop object can be decode to vCalendar.
Definition vcaldrag.cpp:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.