Libksieve

sieveconditionlist.cpp
1 /*
2  Copyright (C) 2013-2020 Laurent Montel <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 #include "sieveconditionlist.h"
20 #include "sievecondition.h"
21 #include "sieveconditionheader.h"
22 #include "sieveconditionaddress.h"
23 #include "sieveconditionsize.h"
24 #include "sieveconditionenvelope.h"
25 #include "sieveconditionexists.h"
26 #include "sieveconditiontrue.h"
27 #include "sieveconditionfalse.h"
28 //RFC5173 (extension)
29 #include "sieveconditionbody.h"
30 //rfc5260
31 #include "sieveconditiondate.h"
32 #include "sieveconditioncurrentdate.h"
33 
34 #include "sieveconditionmailboxexists.h"
35 
36 #include "sieveconditionspamtest.h"
37 #include "sieveconditionvirustest.h"
38 #include "sieveconditionihave.h"
39 #include "sieveconditionenvironment.h"
40 
41 #include "sieveconditionhasflag.h"
42 #include "sieveconditionmetadata.h"
43 #include "sieveconditionconvert.h"
44 #include "sieveconditionmetadataexists.h"
45 #include "sieveconditionservermetadata.h"
46 #include "sieveconditionservermetadataexists.h"
47 
48 QList<KSieveUi::SieveCondition *> KSieveUi::SieveConditionList::conditionList(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget)
49 {
51  list.append(new KSieveUi::SieveConditionHeader(sieveGraphicalModeWidget));
52  list.append(new KSieveUi::SieveConditionAddress(sieveGraphicalModeWidget));
53  list.append(new KSieveUi::SieveConditionSize(sieveGraphicalModeWidget));
54  list.append(new KSieveUi::SieveConditionEnvelope(sieveGraphicalModeWidget));
55  list.append(new KSieveUi::SieveConditionExists(sieveGraphicalModeWidget));
56  list.append(new KSieveUi::SieveConditionTrue(sieveGraphicalModeWidget));
57  list.append(new KSieveUi::SieveConditionFalse(sieveGraphicalModeWidget));
58  list.append(new KSieveUi::SieveConditionBody(sieveGraphicalModeWidget));
59  list.append(new KSieveUi::SieveConditionDate(sieveGraphicalModeWidget));
60  list.append(new KSieveUi::SieveConditionCurrentDate(sieveGraphicalModeWidget));
61  list.append(new KSieveUi::SieveConditionMailboxExists(sieveGraphicalModeWidget));
62  list.append(new KSieveUi::SieveConditionSpamTest(sieveGraphicalModeWidget));
63  list.append(new KSieveUi::SieveConditionVirusTest(sieveGraphicalModeWidget));
64  list.append(new KSieveUi::SieveConditionIhave(sieveGraphicalModeWidget));
65  list.append(new KSieveUi::SieveConditionEnvironment(sieveGraphicalModeWidget));
66  list.append(new KSieveUi::SieveConditionHasFlag(sieveGraphicalModeWidget));
67  list.append(new KSieveUi::SieveConditionMetaData(sieveGraphicalModeWidget));
68  list.append(new KSieveUi::SieveConditionConvert(sieveGraphicalModeWidget));
69  list.append(new KSieveUi::SieveConditionMetaDataExists(sieveGraphicalModeWidget));
70  list.append(new KSieveUi::SieveConditionServerMetaData(sieveGraphicalModeWidget));
71  list.append(new KSieveUi::SieveConditionServerMetaDataExists(sieveGraphicalModeWidget));
72  return list;
73 }
void append(const T &value)
KIOFILEWIDGETS_EXPORT QStringList list(const QString &fileClass)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 23:08:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.