[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:04:33 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=17b0182

The following commit has been merged in the master branch:
commit 17b01823b46ad2ccccb33361edfe24d723e5926e
Author: Francesco Nwokeka <francesco.nwokeka at gmail.com>
Date:   Thu Aug 25 11:04:19 2011 +0200

    Made listview good looking
    
    default mode is compact view. Need to implement bigger icons and the gridview. Using colored frames for status indicators.
    Added presence message as well
---
 KTp/Declarative/contact-list.cpp | 21 ++++++++++++++++++++-
 KTp/Declarative/contact-list.h   |  2 ++
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/KTp/Declarative/contact-list.cpp b/KTp/Declarative/contact-list.cpp
index 3c5b8c7..9f71388 100644
--- a/KTp/Declarative/contact-list.cpp
+++ b/KTp/Declarative/contact-list.cpp
@@ -20,6 +20,12 @@
 #include "telepathyContactList.h"
 
 #include <KStandardDirs>
+// #include <KUrl>
+//
+// #include <Nepomuk/File>
+// #include <Nepomuk/Vocabulary/NIE>
+// #include <Nepomuk/ResourceManager>
+// #include <Nepomuk/Variant>
 
 #include <QtDeclarative/QDeclarativeEngine>
 #include <QtDeclarative/QDeclarativeContext>
@@ -48,6 +54,20 @@ int TelepathyContactList::appletWidth() const
     return geometry().width();
 }
 
+// QString TelepathyContactList::extractAvatarPathFromNepomuk(const QString &nepomukUri)
+// {
+//     /// TODO The resource doesn't have a file url
+//     /// The Telepathy Nepomuk service isn't pushing the data properly. So wait till this is done for avatar support
+//     Nepomuk::Resource asd(nepomukUri.toUrl());
+//     qDebug() << "REsourCE is FILE: " << asd.isFile();
+//     qDebug() << "INCOMING URI is: " << nepomukUri.toString();
+//     Nepomuk::File file(KUrl(nepomukUri.toString()));
+//     qDebug() << "VALID: " << file.isValid();
+//     qDebug() << "TEST 2 NIE: " << asd.property(Nepomuk::Vocabulary::NIE::url()).toString();
+//
+//     return nepomukUri.toString();
+// }
+
 void TelepathyContactList::init()
 {
     // load QML part of the plasmoid
@@ -58,7 +78,6 @@ void TelepathyContactList::init()
 
         // make C++ Plasma::Applet available to QML for resize signal
         m_declarative->engine()->rootContext()->setContextProperty("TelepathyContactList", this);
-//         m_declarative->engine()->rootContext()->setContextProperty("TelepathyContactListModel", /* model goes here */);
 
         // setup qml object so that we can talk to the declarative part
         m_qmlObject = dynamic_cast<QObject*>(m_declarative->rootObject());
diff --git a/KTp/Declarative/contact-list.h b/KTp/Declarative/contact-list.h
index 42280de..55b9ea7 100644
--- a/KTp/Declarative/contact-list.h
+++ b/KTp/Declarative/contact-list.h
@@ -37,6 +37,8 @@ public:
     int appletWidth() const;      /** returns plasma applet's width */
     void init();
 
+public slots:
+//     QString extractAvatarPathFromNepomuk(const QString &nepomukUri);
 
 private:
     Plasma::DeclarativeWidget *m_declarative;

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list