[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:20:46 UTC 2016


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

The following commit has been merged in the master branch:
commit a83582ed5426f01c5e50e6d53304cc493fee8ebf
Author: Lasath Fernando <kde at lasath.org>
Date:   Thu Nov 10 17:42:50 2011 +1100

    Created initial skelelton files for class ConversationModel
---
 lib/CMakeLists.txt         |  2 ++
 lib/conversation-model.cpp | 37 +++++++++++++++++++++++++++++++++++++
 lib/conversation-model.h   | 36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+)

diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index e22da23..acf7e41 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -2,6 +2,7 @@ set(ktpchat_SRCS
         chat-widget.cpp
         chat-window-style.cpp
         chat-window-style-manager.cpp
+        conversation-model.cpp
         adium-theme-view.cpp
         adium-theme-header-info.cpp
         adium-theme-message-info.cpp
@@ -24,6 +25,7 @@ set(ktpchat_HDRS
     chat-widget.h
     chat-window-style.h
     chat-window-style-manager.h
+    conversation-model.h
 )
 
 set(ktpchat_PRETTY_HDRS
diff --git a/lib/conversation-model.cpp b/lib/conversation-model.cpp
new file mode 100644
index 0000000..6e47931
--- /dev/null
+++ b/lib/conversation-model.cpp
@@ -0,0 +1,37 @@
+/*
+    <one line to give the library's name and an idea of what it does.>
+    Copyright (C) 2011  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 "conversation-model.h"
+
+ConversationModel::ConversationModel(QObject* parent): QAbstractListModel(parent)
+{
+
+}
+
+QVariant ConversationModel::data(const QModelIndex& index, int role) const
+{
+
+}
+
+int ConversationModel::rowCount(const QModelIndex& parent) const
+{
+
+}
+
diff --git a/lib/conversation-model.h b/lib/conversation-model.h
new file mode 100644
index 0000000..b6f8ce1
--- /dev/null
+++ b/lib/conversation-model.h
@@ -0,0 +1,36 @@
+/*
+    <one line to give the library's name and an idea of what it does.>
+    Copyright (C) 2011  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
+*/
+
+
+#ifndef CONVERSATIONMODEL_H
+#define CONVERSATIONMODEL_H
+
+#include <QAbstractItemModel>
+
+
+class ConversationModel : public QAbstractListModel
+{
+
+public:
+    explicit ConversationModel(QObject* parent = 0);
+    virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
+    virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
+};
+
+#endif // CONVERSATIONMODEL_H

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list