KTnef

formatter.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2001-2003 Cornelius Schumacher <schumacher@kde.org>
3 SPDX-FileCopyrightText: 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7/**
8 @file
9 This file is part of the API for handling TNEF data and provides
10 static Formatter helpers.
11
12 @brief
13 Provides helpers too format @acronym TNEF attachments into different
14 formats like eg. a HTML representation.
15
16 @author Cornelius Schumacher
17 @author Reinhold Kainhofer
18*/
19
20#pragma once
21
22#include <KCalendarCore/MemoryCalendar>
23#include <QString>
24
25#include "ktnef_export.h"
26
27namespace KCalUtils
28{
29class InvitationFormatterHelper;
30}
31
32namespace KTnef
33{
34/**
35 Formats a @acronym TNEF attachment to an HTML mail.
36
37 @param tnef is the QByteArray contain the @acronym TNEF data.
38 @param cal is a pointer to a Calendar object.
39 @param h is a pointer to a InvitationFormatterHelp object.
40 */
41[[nodiscard]] KTNEF_EXPORT QString formatTNEFInvitation(const QByteArray &tnef,
44
45/**
46 Transforms a @acronym TNEF attachment to an iCal or vCard.
47
48 @param tnef is the QByteArray containing the @acronym TNEF data.
49
50 @return a string containing the transformed attachment.
51 */
52[[nodiscard]] KTNEF_EXPORT QString msTNEFToVPart(const QByteArray &tnef);
53}
KTNEF_EXPORT QString formatTNEFInvitation(const QByteArray &tnef, const KCalendarCore::MemoryCalendar::Ptr &cal, KCalUtils::InvitationFormatterHelper *h)
Formats a TNEF attachment to an HTML mail.
KTNEF_EXPORT QString msTNEFToVPart(const QByteArray &tnef)
Transforms a TNEF attachment to an iCal or vCard.
Definition formatter.cpp:92
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.