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 CustomDate,
39 Time,
40 TimeLong,
41 AttachmentCount,
42 AttachmentFilenames,
43 AttachmentNamesAndSizes,
44 Year,
45 LastYear,
46 NextYear,
47 MonthNumber,
48 DayNumber,
49 DayOfMonth,
50 WeekNumber,
51 MonthNameShort,
52 MonthNameLong,
54 DayOfWeekNameShort,
55 DayOfWeekNameLong,
56 YearLastMonth,
57 LastMonthNameLong,
58};
59
60[[nodiscard]] MESSAGECOMPOSER_EXPORT QString snippetVariableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type);
61
62[[nodiscard]] MESSAGECOMPOSER_EXPORT QString shortDate();
63[[nodiscard]] MESSAGECOMPOSER_EXPORT QString longDate();
64[[nodiscard]] MESSAGECOMPOSER_EXPORT QString shortTime();
65[[nodiscard]] MESSAGECOMPOSER_EXPORT QString longTime();
66[[nodiscard]] MESSAGECOMPOSER_EXPORT QString insertDayOfWeek();
67[[nodiscard]] MESSAGECOMPOSER_EXPORT QString lastYear();
68[[nodiscard]] MESSAGECOMPOSER_EXPORT QString nextYear();
69[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayNumber();
70[[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNumber();
71[[nodiscard]] MESSAGECOMPOSER_EXPORT QString customDate();
72[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfMonth();
73[[nodiscard]] MESSAGECOMPOSER_EXPORT QString weekNumber();
74[[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNameShort();
75[[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNameLong();
76[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeekNameShort();
77[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeekNameLong();
78[[nodiscard]] MESSAGECOMPOSER_EXPORT QString yearLastMonth();
79[[nodiscard]] MESSAGECOMPOSER_EXPORT QString year();
80[[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeek();
81[[nodiscard]] MESSAGECOMPOSER_EXPORT QString lastMonthNameLong();
82}
83}
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 Fri Nov 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.