File indexing completed on 2024-06-23 05:18:38
0001 /* 0002 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include "messagecomposer_export.h" 0009 #include <QString> 0010 0011 namespace MessageComposer 0012 { 0013 namespace ConvertSnippetVariablesUtil 0014 { 0015 enum VariableType { 0016 CcAddr, 0017 CcLname, 0018 CcFname, 0019 CcName, 0020 BccAddr, 0021 BccLname, 0022 BccFname, 0023 BccName, 0024 0025 FullSubject, 0026 ToAddr, 0027 ToFname, 0028 ToLname, 0029 ToName, 0030 FromAddr, 0031 FromLname, 0032 FromFname, 0033 FromName, 0034 Dow, 0035 AttachmentName, 0036 Date, 0037 ShortDate, 0038 Time, 0039 TimeLong, 0040 AttachmentCount, 0041 AttachmentFilenames, 0042 AttachmentNamesAndSizes, 0043 Year, 0044 LastYear, 0045 NextYear, 0046 MonthNumber, 0047 DayOfMonth, 0048 WeekNumber, 0049 MonthNameShort, 0050 MonthNameLong, 0051 DayOfWeek, 0052 DayOfWeekNameShort, 0053 DayOfWeekNameLong, 0054 YearLastMonth, 0055 LastMonthNameLong, 0056 }; 0057 0058 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString snippetVariableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type); 0059 0060 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString shortDate(); 0061 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString longDate(); 0062 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString shortTime(); 0063 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString longTime(); 0064 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString insertDayOfWeek(); 0065 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString lastYear(); 0066 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString nextYear(); 0067 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNumber(); 0068 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfMonth(); 0069 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString weekNumber(); 0070 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNameShort(); 0071 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString monthNameLong(); 0072 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeekNameShort(); 0073 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeekNameLong(); 0074 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString yearLastMonth(); 0075 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString year(); 0076 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString dayOfWeek(); 0077 [[nodiscard]] MESSAGECOMPOSER_EXPORT QString lastMonthNameLong(); 0078 } 0079 }