[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:16 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=b6bc581
The following commit has been merged in the master branch:
commit b6bc581f5b243f4bfa31ddb07faa9585fc8ea30a
Author: Lasath Fernando <kde at lasath.org>
Date: Thu Jul 12 23:16:24 2012 +1000
Implement skeleton KCM
Currently it just contains a KPluginSelector. I'm comitting before
I proceed any further, because I still haven't determined the best
way of passing it its KConfigGroup.
---
config/kcm_ktp_chat_messages.desktop | 15 ++++++++++
.../sync-processor.h => config/messages-config.cpp | 34 ++++++++++++----------
.../images-filter.h => config/messages-config.h | 17 ++++++-----
3 files changed, 42 insertions(+), 24 deletions(-)
diff --git a/config/kcm_ktp_chat_messages.desktop b/config/kcm_ktp_chat_messages.desktop
new file mode 100644
index 0000000..fda85ac
--- /dev/null
+++ b/config/kcm_ktp_chat_messages.desktop
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Name=Content
+Type=Service
+Exec=kcmshell4 kcm_ktp_message_filters
+Comment=How to deal with extra information obtained from messages
+
+X-KDE-Library=kcm_ktp_chat_messages
+X-KDE-ServiceTypes=KCModule
+X-KDE-HasReadOnlyMode=false
+X-KDE-SubstituteUID=false
+X-KDE-RootOnly=false
+Categories=Qt;KDE;X-KDE-settings-network;
+
+#TODO: Find an Icon
+
diff --git a/tests/sync-processor.h b/config/messages-config.cpp
similarity index 56%
copy from tests/sync-processor.h
copy to config/messages-config.cpp
index 7ae999e..d09da5c 100644
--- a/tests/sync-processor.h
+++ b/config/messages-config.cpp
@@ -16,25 +16,27 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef SYNC_PROCESSOR_H
-#define SYNC_PROCESSOR_H
+#include "messages-config.h"
-#include <message-processor.h>
+#include <KPluginFactory>
+#include <KPluginSelector>
+#include <QVBoxLayout>
-class SyncProcessor
-{
+K_PLUGIN_FACTORY(KTpMessagesConfigFactory, registerPlugin<MessagesConfig>();)
+K_EXPORT_PLUGIN(KTpMessagesConfigFactory("kcm_ktp_message_filters", "kcm_ktp_chat_messages"))
+class MessagesConfig::Private {
public:
- SyncProcessor();
- ~SyncProcessor();
-
- Message processIncommingMessage(const Tp::ReceivedMessage& message);
- Message processOutGoingMessage ( Tp::Message message );
- QString getProcessedMessage ( const char* contents );
-
-private:
- class SyncProcessorPrivate;
- SyncProcessorPrivate *d;
+ KPluginSelector *selector;
};
-#endif // SYNC_PROCESSOR_H
+MessagesConfig::MessagesConfig(QWidget *parent, const QVariantList &args)
+ : KCModule(KTpMessagesConfigFactory::componentData(), parent, args),
+ d(new Private)
+{
+ d->selector = new KPluginSelector();
+
+ QLayout *layout = new QVBoxLayout(this);
+ layout->addWidget(d->selector);
+ setLayout(layout);
+}
\ No newline at end of file
diff --git a/filters/images/images-filter.h b/config/messages-config.h
similarity index 75%
copy from filters/images/images-filter.h
copy to config/messages-config.h
index 95529b8..82e2282 100644
--- a/filters/images/images-filter.h
+++ b/config/messages-config.h
@@ -16,21 +16,22 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef FORMAT_FILTER_H
-#define FORMAT_FILTER_H
-#include <KTp/AbstractMessageFilter>
+#ifndef KCM_MESSAGES_H
+#define KCM_MESSAGES_H
-class ImagesFilter : public AbstractMessageFilter
+#include <KCModule>
+
+
+class MessagesConfig : public KCModule
{
Q_OBJECT
public:
- ImagesFilter (QObject* parent, const QVariantList &);
- virtual void filterMessage (Message& message);
+ explicit MessagesConfig(QWidget *parent = 0, const QVariantList &args = QVariantList());
private:
class Private;
- Private *d;
+ Private* d;
};
-#endif // FORMAT_FILTER_H
+#endif // KCM_MESSAGES_H
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list