File indexing completed on 2024-12-29 04:54:42
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #include "sieveconditionlist.h" 0007 #include "sievecondition.h" 0008 #include "sieveconditionaddress.h" 0009 #include "sieveconditionenvelope.h" 0010 #include "sieveconditionexists.h" 0011 #include "sieveconditionfalse.h" 0012 #include "sieveconditionheader.h" 0013 #include "sieveconditionsize.h" 0014 #include "sieveconditiontrue.h" 0015 // RFC5173 (extension) 0016 #include "sieveconditionbody.h" 0017 // rfc5260 0018 #include "sieveconditioncurrentdate.h" 0019 #include "sieveconditiondate.h" 0020 0021 #include "sieveconditionmailboxexists.h" 0022 0023 #include "sieveconditionenvironment.h" 0024 #include "sieveconditionihave.h" 0025 #include "sieveconditionspamtest.h" 0026 #include "sieveconditionvirustest.h" 0027 0028 #include "sieveconditionconvert.h" 0029 #include "sieveconditionhasflag.h" 0030 #include "sieveconditionmetadata.h" 0031 #include "sieveconditionmetadataexists.h" 0032 #include "sieveconditionservermetadata.h" 0033 #include "sieveconditionservermetadataexists.h" 0034 0035 QList<KSieveUi::SieveCondition *> KSieveUi::SieveConditionList::conditionList(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget) 0036 { 0037 QList<KSieveUi::SieveCondition *> list; 0038 list.append(new KSieveUi::SieveConditionHeader(sieveGraphicalModeWidget)); 0039 list.append(new KSieveUi::SieveConditionAddress(sieveGraphicalModeWidget)); 0040 list.append(new KSieveUi::SieveConditionSize(sieveGraphicalModeWidget)); 0041 list.append(new KSieveUi::SieveConditionEnvelope(sieveGraphicalModeWidget)); 0042 list.append(new KSieveUi::SieveConditionExists(sieveGraphicalModeWidget)); 0043 list.append(new KSieveUi::SieveConditionTrue(sieveGraphicalModeWidget)); 0044 list.append(new KSieveUi::SieveConditionFalse(sieveGraphicalModeWidget)); 0045 list.append(new KSieveUi::SieveConditionBody(sieveGraphicalModeWidget)); 0046 list.append(new KSieveUi::SieveConditionDate(sieveGraphicalModeWidget)); 0047 list.append(new KSieveUi::SieveConditionCurrentDate(sieveGraphicalModeWidget)); 0048 list.append(new KSieveUi::SieveConditionMailboxExists(sieveGraphicalModeWidget)); 0049 list.append(new KSieveUi::SieveConditionSpamTest(sieveGraphicalModeWidget)); 0050 list.append(new KSieveUi::SieveConditionVirusTest(sieveGraphicalModeWidget)); 0051 list.append(new KSieveUi::SieveConditionIhave(sieveGraphicalModeWidget)); 0052 list.append(new KSieveUi::SieveConditionEnvironment(sieveGraphicalModeWidget)); 0053 list.append(new KSieveUi::SieveConditionHasFlag(sieveGraphicalModeWidget)); 0054 list.append(new KSieveUi::SieveConditionMetaData(sieveGraphicalModeWidget)); 0055 list.append(new KSieveUi::SieveConditionConvert(sieveGraphicalModeWidget)); 0056 list.append(new KSieveUi::SieveConditionMetaDataExists(sieveGraphicalModeWidget)); 0057 list.append(new KSieveUi::SieveConditionServerMetaData(sieveGraphicalModeWidget)); 0058 list.append(new KSieveUi::SieveConditionServerMetaDataExists(sieveGraphicalModeWidget)); 0059 return list; 0060 }