diff --git a/src/pimcommon/CMakeLists.txt b/src/pimcommon/CMakeLists.txt --- a/src/pimcommon/CMakeLists.txt +++ b/src/pimcommon/CMakeLists.txt @@ -32,10 +32,6 @@ ) -set(libpimcommon_sieve_SRCS - sievehighlighter/sievesyntaxhighlighterutil.cpp - ) - set(libpimcommon_autocorrection_SRCS autocorrection/autocorrection.cpp autocorrection/autocorrectionwidget.cpp @@ -140,7 +136,6 @@ ${libpimcommon_autocorrection_SRCS} ${libpimcommon_translator_SRCS} ${libpimcommon_templatewidgets_SRCS} - ${libpimcommon_sieve_SRCS} ${libpimcommon_widgets_SRCS} ${libpimcommon_customtools_SRCS} ${libpimcommon_logactivities_SRCS} @@ -311,15 +306,6 @@ RELATIVE customtools ) -ecm_generate_headers(PimCommon_Camelcasesievehighlighter_HEADERS - HEADER_NAMES - SieveSyntaxHighlighterUtil - REQUIRED_HEADERS PimCommon_sievehighlighter_HEADERS - PREFIX PimCommon - RELATIVE sievehighlighter - ) - - ecm_generate_headers(PimCommon_Camelcasemigrate_HEADERS HEADER_NAMES MigrateApplicationFiles @@ -407,7 +393,6 @@ ${PimCommon_Camelcasescript_HEADERS} ${PimCommon_Camelcasesettings_HEADERS} ${PimCommon_Camelcaseshareserviceurl_HEADERS} - ${PimCommon_Camelcasesievehighlighter_HEADERS} ${PimCommon_Camelcasestorageservice_HEADERS} ${PimCommon_Camelcasestorageservicedialog_HEADERS} ${PimCommon_Camelcasestorageserviceinterface_HEADERS} @@ -441,7 +426,6 @@ ${PimCommon_richtexteditor_HEADERS} ${PimCommon_settings_HEADERS} ${PimCommon_shareserviceurl_HEADERS} - ${PimCommon_sievehighlighter_HEADERS} ${PimCommon_storageservice_HEADERS} ${PimCommon_storageservicedialog_HEADERS} ${PimCommon_storageserviceinterface_HEADERS} diff --git a/src/pimcommon/sievehighlighter/sievesyntaxhighlighterutil.h b/src/pimcommon/sievehighlighter/sievesyntaxhighlighterutil.h deleted file mode 100644 --- a/src/pimcommon/sievehighlighter/sievesyntaxhighlighterutil.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright (c) 2013-2018 Montel Laurent - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License, version 2, as - published by the Free Software Foundation. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#ifndef SIEVESYNTAXHIGHLIGHTERUTIL_H -#define SIEVESYNTAXHIGHLIGHTERUTIL_H - -#include "pimcommon_export.h" -#include - -namespace PimCommon { -class PIMCOMMON_EXPORT SieveSyntaxHighlighterUtil -{ -public: - QStringList fullCapabilities() const; -}; -} - -#endif // SIEVESYNTAXHIGHLIGHTERUTIL_H diff --git a/src/pimcommon/sievehighlighter/sievesyntaxhighlighterutil.cpp b/src/pimcommon/sievehighlighter/sievesyntaxhighlighterutil.cpp deleted file mode 100644 --- a/src/pimcommon/sievehighlighter/sievesyntaxhighlighterutil.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/* - Copyright (c) 2013-2018 Montel Laurent - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License, version 2, as - published by the Free Software Foundation. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -#include "sievesyntaxhighlighterutil.h" - -namespace PimCommon { -QStringList SieveSyntaxHighlighterUtil::fullCapabilities() const -{ - return QStringList() - << QStringLiteral("mboxmetadata") - << QStringLiteral("body") - << QStringLiteral("extlists") - << QStringLiteral("envelope") - << QStringLiteral("redirect") - << QStringLiteral("fileinto") - << QStringLiteral("editheader") - << QStringLiteral("reject") - << QStringLiteral("ereject") - << QStringLiteral("imapflags") - << QStringLiteral("imap4flags") - << QStringLiteral("enotify") - << QStringLiteral("date") - << QStringLiteral("copy") - << QStringLiteral("mailbox") - << QStringLiteral("spamtest") - << QStringLiteral("spamtestplus") - << QStringLiteral("virustest") - << QStringLiteral("vacation") - << QStringLiteral("vacation-seconds") - << QStringLiteral("ihave") - << QStringLiteral("subaddress") - << QStringLiteral("environment") - << QStringLiteral("enclose") - << QStringLiteral("replace") - << QStringLiteral("include") - << QStringLiteral("extracttext") - << QStringLiteral("metadata") - << QStringLiteral("convert") - << QStringLiteral("foreverypart") - << QStringLiteral("variables") - << QStringLiteral("servermetadata") - << QStringLiteral("regex") - << QStringLiteral("relational") - << QStringLiteral("comparator-i;ascii-numeric") - << QStringLiteral("comparator-i;unicode-casemap") - << QStringLiteral("encoded-character"); -} -}