[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:22:01 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=a4e0286

The following commit has been merged in the master branch:
commit a4e02868205a04b7d4ef3f26a25a7f54cc0631fe
Author: Lasath Fernando <kde at lasath.org>
Date:   Mon Jun 25 10:44:13 2012 +1000

    Remove EscapeFitler
    
    This will be re-added as a hardcoded filter (like UrlFilter is
    at the moment).
---
 filters/CMakeLists.txt                             |  1 -
 filters/escape/CMakeLists.txt                      | 28 -------------
 filters/escape/escape-filter.cpp                   | 47 ----------------------
 filters/escape/escape-filter.h                     | 30 --------------
 .../escape/ktptextui_message_filter_escape.desktop | 14 -------
 5 files changed, 120 deletions(-)

diff --git a/filters/CMakeLists.txt b/filters/CMakeLists.txt
index 3b6387f..4560704 100644
--- a/filters/CMakeLists.txt
+++ b/filters/CMakeLists.txt
@@ -1,4 +1,3 @@
 add_subdirectory (emoticons)
-add_subdirectory(escape)
 add_subdirectory(formatting)
 add_subdirectory(images)
diff --git a/filters/escape/CMakeLists.txt b/filters/escape/CMakeLists.txt
deleted file mode 100644
index c6b0e48..0000000
--- a/filters/escape/CMakeLists.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-set (ktptextui_message_filter_escape_SRCS
-     escape-filter.cpp
-)
-
-kde4_add_ui_files (ktptextui_message_filter_escape_SRCS
-)
-
-kde4_add_plugin (ktptextui_message_filter_escape
-                 ${ktptextui_message_filter_escape_SRCS}
-)
-
-target_link_libraries (ktptextui_message_filter_escape
-    ktpchat
-    ${QT_LIBRARIES}
-    ${KDE4_KDEUI_LIBS}
-    ${TELEPATHY_QT4_LIBRARIES}
-    ${KDE4_KEMOTICONS_LIBS}
-)
-
-# Install:
-install (TARGETS ktptextui_message_filter_escape
-         DESTINATION ${PLUGIN_INSTALL_DIR}
-)
-
-install (FILES ktptextui_message_filter_escape.desktop
-         DESTINATION ${SERVICES_INSTALL_DIR}
-)
-
diff --git a/filters/escape/escape-filter.cpp b/filters/escape/escape-filter.cpp
deleted file mode 100644
index ba0b21c..0000000
--- a/filters/escape/escape-filter.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
-    Copyright (C) 2012  Lasath Fernando <kde at lasath.org>
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Lesser General Public
-    License as published by the Free Software Foundation; either
-    version 2.1 of the License, or (at your option) any later version.
-
-    This library 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
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this library; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-#include "escape-filter.h"
-
-#include <QtGui/QTextDocument> //needed for Qt::escape
-
-#include <KPluginFactory>
-
-EscapeFilter::EscapeFilter(QObject *parent, const QVariantList &)
-    : AbstractMessageFilter(parent)
-{
-}
-
-void EscapeFilter::filterMessage(Message& message)
-{
-    QString escapedMessage = Qt::escape(message.mainMessagePart());
-
-    escapedMessage.replace(QLatin1String("
 "), QLatin1String("<br/> ")); //keep leading whitespaces
-    escapedMessage.replace(QLatin1Char('
'), QLatin1String("<br/>"));
-    escapedMessage.replace(QLatin1Char('
'), QLatin1String("<br/>"));
-    escapedMessage.replace(QLatin1Char('	'), QLatin1String("    ")); // replace tabs by 4 spaces
-    escapedMessage.replace(QLatin1String("  "), QLatin1String("  ")); // keep multiple whitespaces
-    escapedMessage.replace(QLatin1Char('\'), QLatin1String("\\")); //replace a single backslash with two backslashes.
-
-    message.setMainMessagePart(escapedMessage);
-}
-
-K_PLUGIN_FACTORY(MessageFilterFactory, registerPlugin<EscapeFilter>();)
-K_EXPORT_PLUGIN(MessageFilterFactory("ktptextui_message_filter_escape"))
-
-// #include "moc_escape-filter.cpp"
\ No newline at end of file
diff --git a/filters/escape/escape-filter.h b/filters/escape/escape-filter.h
deleted file mode 100644
index 8f13fed..0000000
--- a/filters/escape/escape-filter.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-    Copyright (C) 2012  Lasath Fernando <kde at lasath.org>
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Lesser General Public
-    License as published by the Free Software Foundation; either
-    version 2.1 of the License, or (at your option) any later version.
-
-    This library 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
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this library; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-
-#include <QObject>
-
-#include <KTp/AbstractMessageFilter>
-
-class EscapeFilter : public AbstractMessageFilter
-{
-Q_OBJECT
-
-public:
-    explicit EscapeFilter(QObject* parent, const QVariantList&);
-    virtual void filterMessage(Message& message);
-};
\ No newline at end of file
diff --git a/filters/escape/ktptextui_message_filter_escape.desktop b/filters/escape/ktptextui_message_filter_escape.desktop
deleted file mode 100644
index c6d4936..0000000
--- a/filters/escape/ktptextui_message_filter_escape.desktop
+++ /dev/null
@@ -1,14 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Comment=//TODO:.
-Type=Service
-ServiceTypes=KTpTextUi/MessageFilter
-
-X-KDE-Library=ktptextui_message_filter_escape
-X-KDE-PluginInfo-Author=Lasath Fernando
-X-KDE-PluginInfo-Email=kde at lasath.org
-X-KDE-PluginInfo-Name=escape
-X-KDE-PluginInfo-Version=0.4
-X-KDE-PluginInfo-Website=http://community.kde.org/Real-Time_Communication_and_Collaboration
-X-KDE-PluginInfo-License=GPL
-X-KDE-PluginInfo-EnabledByDefault=true

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list