KCalUtils

vcaldrag.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 #include <KCalendarCore/Calendar>
13 
14 class QMimeData;
15 
16 namespace KCalUtils
17 {
18 /**
19  vCalendar drag&drop class.
20 */
21 namespace VCalDrag
22 {
23 /**
24  Mime-type of iCalendar
25 */
26 Q_REQUIRED_RESULT KCALUTILS_EXPORT QString mimeType();
27 
28 /**
29  Return, if drag&drop object can be decode to vCalendar.
30 */
31 Q_REQUIRED_RESULT KCALUTILS_EXPORT bool canDecode(const QMimeData *);
32 
33 /**
34  Decode drag&drop object to vCalendar component \a vcal.
35 */
36 Q_REQUIRED_RESULT 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-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.