7#include "convertsnippetvariablesutil.h"
12QString MessageComposer::ConvertSnippetVariablesUtil::snippetVariableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type)
16 return QStringLiteral(
"%CCADDR");
18 return QStringLiteral(
"%CCLNAME");
20 return QStringLiteral(
"%CCFNAME");
22 return QStringLiteral(
"%CCNAME");
24 return QStringLiteral(
"%BCCADDR");
26 return QStringLiteral(
"%BCCLNAME");
28 return QStringLiteral(
"%BCCFNAME");
30 return QStringLiteral(
"%BCCNAME");
32 return QStringLiteral(
"%FULLSUBJECT");
34 return QStringLiteral(
"%TOADDR");
36 return QStringLiteral(
"%TOFNAME");
38 return QStringLiteral(
"%TOLNAME");
40 return QStringLiteral(
"%TONAME");
42 return QStringLiteral(
"%FROMADDR");
44 return QStringLiteral(
"%FROMLNAME");
46 return QStringLiteral(
"%FROMFNAME");
48 return QStringLiteral(
"%FROMNAME");
50 return QStringLiteral(
"%DOW");
52 return QStringLiteral(
"%DATE");
54 return QStringLiteral(
"%SHORTDATE");
56 return QStringLiteral(
"%TIME");
58 return QStringLiteral(
"%TIMELONG");
60 return QStringLiteral(
"%ATTACHMENTCOUNT");
62 return QStringLiteral(
"%ATTACHMENTNAMES");
63 case AttachmentFilenames:
64 return QStringLiteral(
"%ATTACHMENTFILENAMES");
65 case AttachmentNamesAndSizes:
66 return QStringLiteral(
"%ATTACHMENTNAMESANDSIZES");
68 return QStringLiteral(
"%YEAR");
70 return QStringLiteral(
"%LASTYEAR");
72 return QStringLiteral(
"%NEXTYEAR");
74 return QStringLiteral(
"%MONTHNUMBER");
76 return QStringLiteral(
"%DAYNUMBER");
78 return QStringLiteral(
"%CUSTOMDATE");
80 return QStringLiteral(
"%DAYOFMONTH");
82 return QStringLiteral(
"%WEEKNUMBER");
84 return QStringLiteral(
"%MONTHNAMESHORT");
86 return QStringLiteral(
"%MONTHNAMELONG");
88 return QStringLiteral(
"%DAYOFWEEK");
89 case DayOfWeekNameShort:
90 return QStringLiteral(
"%DAYOFWEEKNAMESHORT");
91 case DayOfWeekNameLong:
92 return QStringLiteral(
"%DAYOFWEEKNAMELONG");
94 return QStringLiteral(
"%YEARLASTMONTH");
95 case LastMonthNameLong:
96 return QStringLiteral(
"%LASTMONTHNAMELONG");
101QString MessageComposer::ConvertSnippetVariablesUtil::shortDate()
107QString MessageComposer::ConvertSnippetVariablesUtil::longDate()
113QString MessageComposer::ConvertSnippetVariablesUtil::customDate()
119QString MessageComposer::ConvertSnippetVariablesUtil::shortTime()
125QString MessageComposer::ConvertSnippetVariablesUtil::longTime()
131QString MessageComposer::ConvertSnippetVariablesUtil::insertDayOfWeek()
138QString MessageComposer::ConvertSnippetVariablesUtil::lastYear()
144QString MessageComposer::ConvertSnippetVariablesUtil::nextYear()
150QString MessageComposer::ConvertSnippetVariablesUtil::dayNumber()
156QString MessageComposer::ConvertSnippetVariablesUtil::monthNumber()
162QString MessageComposer::ConvertSnippetVariablesUtil::dayOfMonth()
168QString MessageComposer::ConvertSnippetVariablesUtil::weekNumber()
174QString MessageComposer::ConvertSnippetVariablesUtil::monthNameShort()
177 return date.
toString(QStringLiteral(
"MMM"));
180QString MessageComposer::ConvertSnippetVariablesUtil::monthNameLong()
183 return date.
toString(QStringLiteral(
"MMMM"));
186QString MessageComposer::ConvertSnippetVariablesUtil::lastMonthNameLong()
189 return date.
toString(QStringLiteral(
"MMMM"));
192QString MessageComposer::ConvertSnippetVariablesUtil::dayOfWeekNameShort()
195 return date.
toString(QStringLiteral(
"ddd"));
198QString MessageComposer::ConvertSnippetVariablesUtil::dayOfWeekNameLong()
201 return date.
toString(QStringLiteral(
"dddd"));
204QString MessageComposer::ConvertSnippetVariablesUtil::yearLastMonth()
210QString MessageComposer::ConvertSnippetVariablesUtil::year()
216QString MessageComposer::ConvertSnippetVariablesUtil::dayOfWeek()
QDate addMonths(int nmonths) const const
int dayOfWeek() const const
int daysInMonth() const const
QString toString(QStringView format, QCalendar cal) const const
int weekNumber(int *yearNumber) const const
QDateTime currentDateTime()
QDateTime toLocalTime() const const
QString dayName(int day, FormatType type) const const
QString toString(QDate date, FormatType format) const const
QString number(double n, char format, int precision)