[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/nepomuk/services/queryservice
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-06-17 10:08:10
Message-ID: 20100617100810.488ECAC8D6 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1139091 by trueg:
Added two dbus methods which are very convinient for debugging and testing purposes.
M +2 -0 folder.h
M +12 -0 folderconnection.cpp
M +7 -0 folderconnection.h
--- trunk/KDE/kdebase/runtime/nepomuk/services/queryservice/folder.h #1139090:1139091
@@ -63,6 +63,8 @@
QList<FolderConnection*> openConnections() const;
+ QString query() const { return m_query; }
+
public Q_SLOTS:
void update();
--- trunk/KDE/kdebase/runtime/nepomuk/services/queryservice/folderconnection.cpp #1139090:1139091
@@ -115,4 +115,16 @@
deleteLater();
}
+
+bool Nepomuk::Query::FolderConnection::isListingFinished() const
+{
+ return m_folder->initialListingDone();
+}
+
+
+QString Nepomuk::Query::FolderConnection::queryString() const
+{
+ return m_folder->query();
+}
+
#include "folderconnection.moc"
--- trunk/KDE/kdebase/runtime/nepomuk/services/queryservice/folderconnection.h #1139090:1139091
@@ -48,6 +48,13 @@
/// close the connection to the folder. Will delete this connection
void close();
+ /// \return \p true if the initial listing has been finished and the finishedListing()
+ /// has been emitted
+ bool isListingFinished() const;
+
+ /// \return the SPARQL query of the folder
+ QString queryString() const;
+
Q_SIGNALS:
void newEntries( const QList<Nepomuk::Query::Result>& );
void entriesRemoved( const QStringList& );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic