Messagelib

convertsnippetvariablesutil.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "messagecomposer_export.h"
9#include <QString>
10
11namespace MessageComposer
12{
13namespace ConvertSnippetVariablesUtil
14{
15enum VariableType {
16 CcAddr,
17 CcLname,
18 CcFname,
19 CcName,
20 BccAddr,
21 BccLname,
22 BccFname,
23 BccName,
24
25 FullSubject,
26 ToAddr,
27 ToFname,
28 ToLname,
29 ToName,
30 FromAddr,
31 FromLname,
32 FromFname,
33 FromName,
34 Dow,
35 AttachmentName,
36 Date,
37 ShortDate,
38 Time,
39 TimeLong,
40 AttachmentCount,
41 AttachmentFilenames,
42 AttachmentNamesAndSizes,
43 Year,
44 LastYear,
45 NextYear,
46 MonthNumber,
47 DayOfMonth,
48 WeekNumber,
49 MonthNameShort,
50 MonthNameLong,
52 DayOfWeekNameShort,
53 DayOfWeekNameLong,
54 YearLastMonth,
55 LastMonthNameLong,
56};
57
58[[nodiscard]] MESSAGECOMPOSER_EXPORT QString snippetVariableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type);
59
60[[nodiscard]] MESSAGECOMPOSER_EXPORT QString shortDate();
61[[nodiscard]] MESSAGECOMPOSER_EXPORT QString longDate();
62[[nodiscard]] MESSAGECOMPOSER_EXPORT QString shortTime();
63[[nodiscard]] MESSAGECOMPOSER_EXPORT QString longTime();
64[[nodiscard]] MESSAGECOMPOSER_EXPORT QString insertDayOfWeek();
65[[nodiscard]] MESSAGECOMPOSER_EXPORT QString lastYear();
66[[nodiscard]] MESSAGECOMPOSER_EXPORT QString nextYear();
67[[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNumber();
68[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfMonth();
69[[nodiscard]] MESSAGECOMPOSER_EXPORT QString weekNumber();
70[[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNameShort();
71[[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNameLong();
72[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeekNameShort();
73[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeekNameLong();
74[[nodiscard]] MESSAGECOMPOSER_EXPORT QString yearLastMonth();
75[[nodiscard]] MESSAGECOMPOSER_EXPORT QString year();
76[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeek();
77[[nodiscard]] MESSAGECOMPOSER_EXPORT QString lastMonthNameLong();
78}
79}
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
DayOfWeek
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.