KCalUtils

icaldrag.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
13#include <KCalendarCore/Calendar>
14
15class QMimeData;
16
17namespace KCalUtils
18{
19/**
20 iCalendar drag&drop class.
21*/
22namespace ICalDrag
23{
24/**
25 Mime-type of iCalendar
26*/
27[[nodiscard]] KCALUTILS_EXPORT QString mimeType();
28
29/**
30 Sets the iCalendar representation as data of the drag object
31*/
32KCALUTILS_EXPORT bool populateMimeData(QMimeData *e, const KCalendarCore::Calendar::Ptr &cal);
33
34/**
35 Return, if drag&drop object can be decode to iCalendar.
36*/
37[[nodiscard]] KCALUTILS_EXPORT bool canDecode(const QMimeData *);
38
39/**
40 Decode drag&drop object to iCalendar component \a cal.
41*/
42[[nodiscard]] KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal);
43}
44}
KCALUTILS_EXPORT QString mimeType()
Mime-type of iCalendar.
Definition icaldrag.cpp:20
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Decode drag&drop object to iCalendar component cal.
Definition icaldrag.cpp:45
KCALUTILS_EXPORT bool canDecode(const QMimeData *)
Return, if drag&drop object can be decode to iCalendar.
Definition icaldrag.cpp:36
KCALUTILS_EXPORT bool populateMimeData(QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Sets the iCalendar representation as data of the drag object.
Definition icaldrag.cpp:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.