File indexing completed on 2024-11-24 04:50:45

0001 // SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
0002 // SPDX-License-Identifier: LGPL-2.0-or-later
0003 
0004 #include "mimetypes.h"
0005 
0006 #include <KContacts/Addressee>
0007 #include <KContacts/ContactGroup>
0008 
0009 using namespace Akonadi::Quick;
0010 
0011 MimeTypes::MimeTypes(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 QString MimeTypes::calendar() const
0017 {
0018     return QStringLiteral("application/x-vnd.akonadi.calendar.event");
0019 }
0020 
0021 QString MimeTypes::todo() const
0022 {
0023     return QStringLiteral("application/x-vnd.akonadi.calendar.todo");
0024 }
0025 
0026 QString MimeTypes::address() const
0027 {
0028     return KContacts::Addressee::mimeType();
0029 }
0030 
0031 QString MimeTypes::contactGroup() const
0032 {
0033     return KContacts::ContactGroup::mimeType();
0034 }
0035 
0036 QString MimeTypes::mail() const
0037 {
0038     return QStringLiteral("message/rfc822");
0039 }
0040 
0041 #include "moc_mimetypes.cpp"