Hey.
I've implemented the KIO slave to work with all the resources ( includes
Contacts, Albums, etc ) I've done it in a generic manner, and we could even
handle tags the same way. It works fine but I have a coupe of concerns -
* If the Resource, say Contact, is used in some other place. For example a
music album or whatever. The current approach would show the music album
that as well. That is not what the user would want when they click on the
contact name next to "Performer: " in the information panel. It would be
better to somehow associate it with the property as well. That way if It
would only returns the resources whose nmm:performer is that Contact.
* This totally obliterates the need for the extremely handy
ResourcePageGenerator. Should we remove it?
* I've explicitly set the limit to 1000 for now ( Just for testing ) By
default it is 10, which doesn't seem right. When I choose a Contact I want
to see all the files associated with it. Or at least enough to fill the
page, and if I choose the scroll down they should automatically fill up. I'm
not sure what to do about this.
* It's damn slow. I can actually see the Resources being filled up! But then
this has nothing to do with the Nepomuk KIO slave. Any idea what makes the
Nepomuk search kio slave so slow? The same query runs in less than a second
manually ( via nepomukcmd ). I've not looked into the code throughly, but I
will. It's too slow for me.
* The title doesn't get set. 1 never works. 2 works sometimes. I'll test
more, and find out the problem.
* It's ugly and looks out of place! It there any chance of changing
Dolphin's Information Panel to reflect the search. Like maybe if we're
searching for an Album we show the album's cover instead of the Nepomuk
icon, and maybe show the albums properties in the side panel. If it's
possible, please direct me to the appropriate code base ( or file ) and I'll
have a look at it.
- Vishesh Handa
Index: kioslaves/common/resourcestat.cpp
===================================================================
--- kioslaves/common/resourcestat.cpp (revision 1150199)
+++ kioslaves/common/resourcestat.cpp (working copy)
@@ -290,7 +290,8 @@ bool Nepomuk::willBeRedirected( const Ne
{
return( res.hasType( Nepomuk::Vocabulary::NFO::Folder() ) ||
res.hasType( Soprano::Vocabulary::NAO::Tag() ) ||
- res.hasType( Nepomuk::Vocabulary::NFO::Filesystem() ) );
+ res.hasType( Nepomuk::Vocabulary::NFO::Filesystem() ) ||
+ !res.hasType( Nepomuk::Vocabulary::NFO::FileDataObject() ) );
}
@@ -311,6 +312,14 @@ KUrl Nepomuk::redirectionUrl( const Nepo
queryUrl.addQueryItem( QLatin1String( "title" ), i18n( "Things tagged '%1'", res.genericLabel() ) );
return queryUrl.url();
}
+ else if ( !res.hasType( Nepomuk::Vocabulary::NFO::FileDataObject() ) ) {
+ Query::ComparisonTerm term( QUrl(), Query::ResourceTerm( res ), Query::ComparisonTerm::Equal );
+
+ Query::Query query( term );
+ query.setLimit( 1000 );
+
+ return query.toSearchUrl().url();
+ }
#if 0 // disabled as long as the strigi service does create a dedicated album resource for each track
else if ( res.hasType( Nepomuk::Vocabulary::NMM::MusicAlbum() ) ) {
Index: services/strigi/indexscheduler.cpp
===================================================================
--- services/strigi/indexscheduler.cpp (revision 1150199)
+++ services/strigi/indexscheduler.cpp (working copy)
@@ -315,9 +315,12 @@ void Nepomuk::IndexScheduler::run()
m_dirsToUpdateMutex.unlock();
// update until stopped
+ QTime timer;
+ timer.start();
if ( !updateDir( dir.first, &analyzer, dir.second | UpdateRecursive ) ) {
break;
}
+ kDebug() << "Folder -- " << dir.first << " : "<< timer.elapsed()/1000.0 << "s";
m_currentFolder.clear();
}
@@ -434,6 +437,8 @@ bool Nepomuk::IndexScheduler::updateDir(
void Nepomuk::IndexScheduler::analyzeFile( const QFileInfo& file, Strigi::StreamAnalyzer* analyzer )
{
+ QTime timer;
+ timer.start();
//
// strigi asserts if the file path has a trailing slash
//
@@ -458,6 +463,7 @@ void Nepomuk::IndexScheduler::analyzeFil
else {
analysisresult.index(0);
}
+ kDebug() << "File -- " << file.fileName() << timer.elapsed()/1000.0 << "s";
}
Index: services/strigi/strigiservice.h
===================================================================
--- services/strigi/strigiservice.h (revision 1150199)
+++ services/strigi/strigiservice.h (working copy)
@@ -44,9 +44,6 @@ namespace Nepomuk {
StrigiService( QObject* parent = 0, const QList<QVariant>& args = QList<QVariant>() );
~StrigiService();
- //vHanda: Is this really required? I've removed all the code that uses it.
- IndexScheduler* indexScheduler() const { return m_indexScheduler; }
-
Q_SIGNALS:
void statusStringChanged();
void statusChanged(); //vHanda: Can't we just use statusStringChanged? or should that be renamed
Index: services/storage/ontologyloader.cpp
===================================================================
--- services/storage/ontologyloader.cpp (revision 1150199)
+++ services/storage/ontologyloader.cpp (working copy)
@@ -134,7 +134,7 @@ Nepomuk::OntologyLoader::OntologyLoader(
QDBusConnection::ExportAdaptors );
// be backwards compatible
- QDBusConnection::sessionBus().registerService( QLatin1String("org.kde.nepomuk.services.nepomukontologyloader") );
+ //QDBusConnection::sessionBus().registerService( //QLatin1String("org.kde.nepomuk.services.nepomukontologyloader") );
d->model = new OntologyManagerModel( model, this );
connect( &d->updateTimer, SIGNAL(timeout()), this, SLOT(updateNextOntology()) );
Index: servicestub/servicestubadaptor.h
===================================================================
--- servicestub/servicestubadaptor.h (revision 1150199)
+++ servicestub/servicestubadaptor.h (working copy)
@@ -1,62 +0,0 @@
-/* This file is part of the KDE Project
- Copyright (c) 2008 Sebastian Trueg <[email protected]>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-
-#ifndef _SERVICESTUB_ADAPTOR_H_
-#define _SERVICESTUB_ADAPTOR_H_
-
-#include <QtCore/QObject>
-#include <QtDBus/QtDBus>
-
-#include <Nepomuk/Service>
-
-
-class ServiceControlAdaptor: public QDBusAbstractAdaptor
-{
- Q_OBJECT
- Q_CLASSINFO("D-Bus Interface", "org.kde.nepomuk.ServiceControl")
- Q_CLASSINFO("D-Bus Introspection", ""
- " <interface name=\"org.kde.nepomuk.ServiceControl\" >\n"
- " <method name=\"shutdown\" />\n"
- " <method name=\"isInitialized\">\n"
- " <arg name=\"state\" type=\"b\" direction=\"out\" />\n"
- " </method>\n"
- " <signal name=\"serviceInitialized\">\n"
- " <arg name=\"success\" type=\"b\" direction=\"out\" />\n"
- " </signal>\n"
- " </interface>\n"
- "")
-
-public:
- ServiceControlAdaptor( Nepomuk::Service *parent );
- virtual ~ServiceControlAdaptor();
-
- inline Nepomuk::Service *parent() const
- { return static_cast<Nepomuk::Service *>(QObject::parent()); }
-
-public Q_SLOTS:
- bool isInitialized() const;
-
-Q_SIGNALS:
- void serviceInitialized( bool success );
-
-public Q_SLOTS:
- void shutdown();
-};
-
-#endif
Index: servicestub/servicestubadaptor.cpp
===================================================================
--- servicestub/servicestubadaptor.cpp (revision 1150199)
+++ servicestub/servicestubadaptor.cpp (working copy)
@@ -1,44 +0,0 @@
-/* This file is part of the KDE Project
- Copyright (c) 2008 Sebastian Trueg <[email protected]>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "servicestubadaptor.h"
-
-#include <QtCore/QCoreApplication>
-
-
-ServiceControlAdaptor::ServiceControlAdaptor( Nepomuk::Service* parent )
- : QDBusAbstractAdaptor(parent)
-{
- setAutoRelaySignals( true );
-}
-
-ServiceControlAdaptor::~ServiceControlAdaptor()
-{
-}
-
-bool ServiceControlAdaptor::isInitialized() const
-{
- return parent()->isInitialized();
-}
-
-void ServiceControlAdaptor::shutdown()
-{
- QCoreApplication::quit();
-}
-
-#include "servicestubadaptor.moc"
Index: kioslaves/common/resourcestat.cpp
===================================================================
--- kioslaves/common/resourcestat.cpp (revision 1150199)
+++ kioslaves/common/resourcestat.cpp (working copy)
@@ -290,7 +290,8 @@ bool Nepomuk::willBeRedirected( const Ne
{
return( res.hasType( Nepomuk::Vocabulary::NFO::Folder() ) ||
res.hasType( Soprano::Vocabulary::NAO::Tag() ) ||
- res.hasType( Nepomuk::Vocabulary::NFO::Filesystem() ) );
+ res.hasType( Nepomuk::Vocabulary::NFO::Filesystem() ) ||
+ !res.hasType( Nepomuk::Vocabulary::NFO::FileDataObject() ) );
}
@@ -311,6 +312,14 @@ KUrl Nepomuk::redirectionUrl( const Nepo
queryUrl.addQueryItem( QLatin1String( "title" ), i18n( "Things tagged '%1'", res.genericLabel() ) );
return queryUrl.url();
}
+ else if ( !res.hasType( Nepomuk::Vocabulary::NFO::FileDataObject() ) ) {
+ Query::ComparisonTerm term( QUrl(), Query::ResourceTerm( res ), Query::ComparisonTerm::Equal );
+
+ Query::Query query( term );
+ query.setLimit( 1000 );
+
+ return query.toSearchUrl( res.genericLabel() ).url();
+ }
#if 0 // disabled as long as the strigi service does create a dedicated album resource for each track
else if ( res.hasType( Nepomuk::Vocabulary::NMM::MusicAlbum() ) ) {
Index: services/strigi/indexscheduler.cpp
===================================================================
--- services/strigi/indexscheduler.cpp (revision 1150199)
+++ services/strigi/indexscheduler.cpp (working copy)
@@ -315,9 +315,12 @@ void Nepomuk::IndexScheduler::run()
m_dirsToUpdateMutex.unlock();
// update until stopped
+ QTime timer;
+ timer.start();
if ( !updateDir( dir.first, &analyzer, dir.second | UpdateRecursive ) ) {
break;
}
+ kDebug() << "Folder -- " << dir.first << " : "<< timer.elapsed()/1000.0 << "s";
m_currentFolder.clear();
}
@@ -434,6 +437,8 @@ bool Nepomuk::IndexScheduler::updateDir(
void Nepomuk::IndexScheduler::analyzeFile( const QFileInfo& file, Strigi::StreamAnalyzer* analyzer )
{
+ QTime timer;
+ timer.start();
//
// strigi asserts if the file path has a trailing slash
//
@@ -458,6 +463,7 @@ void Nepomuk::IndexScheduler::analyzeFil
else {
analysisresult.index(0);
}
+ kDebug() << "File -- " << file.fileName() << timer.elapsed()/1000.0 << "s";
}
Index: services/strigi/strigiservice.h
===================================================================
--- services/strigi/strigiservice.h (revision 1150199)
+++ services/strigi/strigiservice.h (working copy)
@@ -44,9 +44,6 @@ namespace Nepomuk {
StrigiService( QObject* parent = 0, const QList<QVariant>& args = QList<QVariant>() );
~StrigiService();
- //vHanda: Is this really required? I've removed all the code that uses it.
- IndexScheduler* indexScheduler() const { return m_indexScheduler; }
-
Q_SIGNALS:
void statusStringChanged();
void statusChanged(); //vHanda: Can't we just use statusStringChanged? or should that be renamed
Index: services/storage/ontologyloader.cpp
===================================================================
--- services/storage/ontologyloader.cpp (revision 1150199)
+++ services/storage/ontologyloader.cpp (working copy)
@@ -134,7 +134,7 @@ Nepomuk::OntologyLoader::OntologyLoader(
QDBusConnection::ExportAdaptors );
// be backwards compatible
- QDBusConnection::sessionBus().registerService( QLatin1String("org.kde.nepomuk.services.nepomukontologyloader") );
+ //QDBusConnection::sessionBus().registerService( //QLatin1String("org.kde.nepomuk.services.nepomukontologyloader") );
d->model = new OntologyManagerModel( model, this );
connect( &d->updateTimer, SIGNAL(timeout()), this, SLOT(updateNextOntology()) );
Index: servicestub/servicestubadaptor.h
===================================================================
--- servicestub/servicestubadaptor.h (revision 1150199)
+++ servicestub/servicestubadaptor.h (working copy)
@@ -1,62 +0,0 @@
-/* This file is part of the KDE Project
- Copyright (c) 2008 Sebastian Trueg <[email protected]>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-
-#ifndef _SERVICESTUB_ADAPTOR_H_
-#define _SERVICESTUB_ADAPTOR_H_
-
-#include <QtCore/QObject>
-#include <QtDBus/QtDBus>
-
-#include <Nepomuk/Service>
-
-
-class ServiceControlAdaptor: public QDBusAbstractAdaptor
-{
- Q_OBJECT
- Q_CLASSINFO("D-Bus Interface", "org.kde.nepomuk.ServiceControl")
- Q_CLASSINFO("D-Bus Introspection", ""
- " <interface name=\"org.kde.nepomuk.ServiceControl\" >\n"
- " <method name=\"shutdown\" />\n"
- " <method name=\"isInitialized\">\n"
- " <arg name=\"state\" type=\"b\" direction=\"out\" />\n"
- " </method>\n"
- " <signal name=\"serviceInitialized\">\n"
- " <arg name=\"success\" type=\"b\" direction=\"out\" />\n"
- " </signal>\n"
- " </interface>\n"
- "")
-
-public:
- ServiceControlAdaptor( Nepomuk::Service *parent );
- virtual ~ServiceControlAdaptor();
-
- inline Nepomuk::Service *parent() const
- { return static_cast<Nepomuk::Service *>(QObject::parent()); }
-
-public Q_SLOTS:
- bool isInitialized() const;
-
-Q_SIGNALS:
- void serviceInitialized( bool success );
-
-public Q_SLOTS:
- void shutdown();
-};
-
-#endif
Index: servicestub/servicestubadaptor.cpp
===================================================================
--- servicestub/servicestubadaptor.cpp (revision 1150199)
+++ servicestub/servicestubadaptor.cpp (working copy)
@@ -1,44 +0,0 @@
-/* This file is part of the KDE Project
- Copyright (c) 2008 Sebastian Trueg <[email protected]>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "servicestubadaptor.h"
-
-#include <QtCore/QCoreApplication>
-
-
-ServiceControlAdaptor::ServiceControlAdaptor( Nepomuk::Service* parent )
- : QDBusAbstractAdaptor(parent)
-{
- setAutoRelaySignals( true );
-}
-
-ServiceControlAdaptor::~ServiceControlAdaptor()
-{
-}
-
-bool ServiceControlAdaptor::isInitialized() const
-{
- return parent()->isInitialized();
-}
-
-void ServiceControlAdaptor::shutdown()
-{
- QCoreApplication::quit();
-}
-
-#include "servicestubadaptor.moc"
Index: kioslaves/common/resourcestat.cpp
===================================================================
--- kioslaves/common/resourcestat.cpp (revision 1150199)
+++ kioslaves/common/resourcestat.cpp (working copy)
@@ -290,7 +290,8 @@ bool Nepomuk::willBeRedirected( const Ne
{
return( res.hasType( Nepomuk::Vocabulary::NFO::Folder() ) ||
res.hasType( Soprano::Vocabulary::NAO::Tag() ) ||
- res.hasType( Nepomuk::Vocabulary::NFO::Filesystem() ) );
+ res.hasType( Nepomuk::Vocabulary::NFO::Filesystem() ) ||
+ !res.hasType( Nepomuk::Vocabulary::NFO::FileDataObject() ) );
}
@@ -311,6 +312,17 @@ KUrl Nepomuk::redirectionUrl( const Nepo
queryUrl.addQueryItem( QLatin1String( "title" ), i18n( "Things tagged '%1'", res.genericLabel() ) );
return queryUrl.url();
}
+ else if ( !res.hasType( Nepomuk::Vocabulary::NFO::FileDataObject() ) ) {
+ Query::ComparisonTerm term( QUrl(), Query::ResourceTerm( res ), Query::ComparisonTerm::Equal );
+
+ Query::Query query( term );
+ query.setLimit( 1000 );
+
+ KUrl queryUrl( query.toSearchUrl() );
+ queryUrl.addQueryItem( QLatin1String( "title" ), res.genericLabel() );
+
+ return queryUrl.url();
+ }
#if 0 // disabled as long as the strigi service does create a dedicated album resource for each track
else if ( res.hasType( Nepomuk::Vocabulary::NMM::MusicAlbum() ) ) {
Index: services/strigi/indexscheduler.cpp
===================================================================
--- services/strigi/indexscheduler.cpp (revision 1150199)
+++ services/strigi/indexscheduler.cpp (working copy)
@@ -315,9 +315,12 @@ void Nepomuk::IndexScheduler::run()
m_dirsToUpdateMutex.unlock();
// update until stopped
+ QTime timer;
+ timer.start();
if ( !updateDir( dir.first, &analyzer, dir.second | UpdateRecursive ) ) {
break;
}
+ kDebug() << "Folder -- " << dir.first << " : "<< timer.elapsed()/1000.0 << "s";
m_currentFolder.clear();
}
@@ -434,6 +437,8 @@ bool Nepomuk::IndexScheduler::updateDir(
void Nepomuk::IndexScheduler::analyzeFile( const QFileInfo& file, Strigi::StreamAnalyzer* analyzer )
{
+ QTime timer;
+ timer.start();
//
// strigi asserts if the file path has a trailing slash
//
@@ -458,6 +463,7 @@ void Nepomuk::IndexScheduler::analyzeFil
else {
analysisresult.index(0);
}
+ kDebug() << "File -- " << file.fileName() << timer.elapsed()/1000.0 << "s";
}
Index: services/strigi/strigiservice.h
===================================================================
--- services/strigi/strigiservice.h (revision 1150199)
+++ services/strigi/strigiservice.h (working copy)
@@ -44,9 +44,6 @@ namespace Nepomuk {
StrigiService( QObject* parent = 0, const QList<QVariant>& args = QList<QVariant>() );
~StrigiService();
- //vHanda: Is this really required? I've removed all the code that uses it.
- IndexScheduler* indexScheduler() const { return m_indexScheduler; }
-
Q_SIGNALS:
void statusStringChanged();
void statusChanged(); //vHanda: Can't we just use statusStringChanged? or should that be renamed
Index: services/storage/ontologyloader.cpp
===================================================================
--- services/storage/ontologyloader.cpp (revision 1150199)
+++ services/storage/ontologyloader.cpp (working copy)
@@ -134,7 +134,7 @@ Nepomuk::OntologyLoader::OntologyLoader(
QDBusConnection::ExportAdaptors );
// be backwards compatible
- QDBusConnection::sessionBus().registerService( QLatin1String("org.kde.nepomuk.services.nepomukontologyloader") );
+ //QDBusConnection::sessionBus().registerService( //QLatin1String("org.kde.nepomuk.services.nepomukontologyloader") );
d->model = new OntologyManagerModel( model, this );
connect( &d->updateTimer, SIGNAL(timeout()), this, SLOT(updateNextOntology()) );
Index: servicestub/servicestubadaptor.h
===================================================================
--- servicestub/servicestubadaptor.h (revision 1150199)
+++ servicestub/servicestubadaptor.h (working copy)
@@ -1,62 +0,0 @@
-/* This file is part of the KDE Project
- Copyright (c) 2008 Sebastian Trueg <[email protected]>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-
-#ifndef _SERVICESTUB_ADAPTOR_H_
-#define _SERVICESTUB_ADAPTOR_H_
-
-#include <QtCore/QObject>
-#include <QtDBus/QtDBus>
-
-#include <Nepomuk/Service>
-
-
-class ServiceControlAdaptor: public QDBusAbstractAdaptor
-{
- Q_OBJECT
- Q_CLASSINFO("D-Bus Interface", "org.kde.nepomuk.ServiceControl")
- Q_CLASSINFO("D-Bus Introspection", ""
- " <interface name=\"org.kde.nepomuk.ServiceControl\" >\n"
- " <method name=\"shutdown\" />\n"
- " <method name=\"isInitialized\">\n"
- " <arg name=\"state\" type=\"b\" direction=\"out\" />\n"
- " </method>\n"
- " <signal name=\"serviceInitialized\">\n"
- " <arg name=\"success\" type=\"b\" direction=\"out\" />\n"
- " </signal>\n"
- " </interface>\n"
- "")
-
-public:
- ServiceControlAdaptor( Nepomuk::Service *parent );
- virtual ~ServiceControlAdaptor();
-
- inline Nepomuk::Service *parent() const
- { return static_cast<Nepomuk::Service *>(QObject::parent()); }
-
-public Q_SLOTS:
- bool isInitialized() const;
-
-Q_SIGNALS:
- void serviceInitialized( bool success );
-
-public Q_SLOTS:
- void shutdown();
-};
-
-#endif
Index: servicestub/servicestubadaptor.cpp
===================================================================
--- servicestub/servicestubadaptor.cpp (revision 1150199)
+++ servicestub/servicestubadaptor.cpp (working copy)
@@ -1,44 +0,0 @@
-/* This file is part of the KDE Project
- Copyright (c) 2008 Sebastian Trueg <[email protected]>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License version 2 as published by the Free Software Foundation.
-
- 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "servicestubadaptor.h"
-
-#include <QtCore/QCoreApplication>
-
-
-ServiceControlAdaptor::ServiceControlAdaptor( Nepomuk::Service* parent )
- : QDBusAbstractAdaptor(parent)
-{
- setAutoRelaySignals( true );
-}
-
-ServiceControlAdaptor::~ServiceControlAdaptor()
-{
-}
-
-bool ServiceControlAdaptor::isInitialized() const
-{
- return parent()->isInitialized();
-}
-
-void ServiceControlAdaptor::shutdown()
-{
- QCoreApplication::quit();
-}
-
-#include "servicestubadaptor.moc"
_______________________________________________
Nepomuk mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/nepomuk