KCalUtils

icaldrag.h
1 /*
2  This file is part of the kcalutils library.
3 
4  SPDX-FileCopyrightText: 1998 Preston Brown <[email protected]>
5  SPDX-FileCopyrightText: 2001-2003 Cornelius Schumacher <[email protected]>
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 
15 class QMimeData;
16 
17 namespace KCalUtils
18 {
19 /**
20  iCalendar drag&drop class.
21 */
22 namespace ICalDrag
23 {
24 /**
25  Mime-type of iCalendar
26 */
27 Q_REQUIRED_RESULT KCALUTILS_EXPORT QString mimeType();
28 
29 /**
30  Sets the iCalendar representation as data of the drag object
31 */
32 Q_REQUIRED_RESULT KCALUTILS_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 Q_REQUIRED_RESULT KCALUTILS_EXPORT bool canDecode(const QMimeData *);
38 
39 /**
40  Decode drag&drop object to iCalendar component \a cal.
41 */
42 Q_REQUIRED_RESULT KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal);
43 }
44 }
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
KCALUTILS_EXPORT bool fromMimeData(const QMimeData *e, const KCalendarCore::Calendar::Ptr &cal)
Decode drag&drop object to iCalendar component cal.
Definition: icaldrag.cpp:49
KCALUTILS_EXPORT QString mimeType()
Mime-type of iCalendar.
Definition: icaldrag.cpp:20
KCALUTILS_EXPORT bool canDecode(const QMimeData *)
Return, if drag&drop object can be decode to iCalendar.
Definition: icaldrag.cpp:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:09:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.