Messagelib

convertsnippetvariablesutil.h
1 /*
2  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 #include "messagecomposer_export.h"
9 #include <QString>
10 
11 namespace MessageComposer
12 {
13 namespace ConvertSnippetVariablesUtil
14 {
15 enum 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,
51  DayOfWeek,
52  DayOfWeekNameShort,
53  DayOfWeekNameLong,
54  YearLastMonth,
55  LastMonthNameLong
56 };
57 
58 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString snippetVariableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type);
59 
60 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString shortDate();
61 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString longDate();
62 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString shortTime();
63 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString longTime();
64 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString insertDayOfWeek();
65 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString lastYear();
66 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString nextYear();
67 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString monthNumber();
68 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString dayOfMonth();
69 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString weekNumber();
70 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString monthNameShort();
71 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString monthNameLong();
72 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString dayOfWeekNameShort();
73 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString dayOfWeekNameLong();
74 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString yearLastMonth();
75 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString year();
76 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString dayOfWeek();
77 Q_REQUIRED_RESULT MESSAGECOMPOSER_EXPORT QString lastMonthNameLong();
78 }
79 }
DayOfWeek
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Dec 4 2021 23:12:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.