1 /* This file is part of the KDE Project
2 Copyright (c) 2008 Sebastian Trueg <trueg@kde.org>
4 Based on code generated by dbusxml2cpp version 0.6
5 dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License version 2 as published by the Free Software Foundation.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
22 #ifndef _STRIGISERVICE_ADAPTOR_H_
23 #define _STRIGISERVICE_ADAPTOR_H_
25 #include <QtDBus/QDBusAbstractAdaptor>
32 class StrigiServiceAdaptor
: public QDBusAbstractAdaptor
35 Q_CLASSINFO("D-Bus Interface", "org.kde.nepomuk.Strigi")
36 Q_CLASSINFO("D-Bus Introspection", ""
37 " <interface name=\"org.kde.nepomuk.Strigi\" >\n"
38 " <method name=\"isIndexing\" >\n"
39 " <arg direction=\"out\" type=\"b\" />\n"
41 " <method name=\"isSuspended\" >\n"
42 " <arg direction=\"out\" type=\"b\" />\n"
44 " <method name=\"currentFolder\" >\n"
45 " <arg direction=\"out\" type=\"s\" />\n"
47 " <method name=\"suspend\" />\n"
48 " <method name=\"resume\" />\n"
49 " <method name=\"updateFolder\" >\n"
50 " <arg name=\"path\" direction=\"in\" type=\"s\" />\n"
52 " <method name=\"updateAllFolders\" />\n"
53 " <method name=\"analyzeResource\" >\n"
54 " <arg name=\"uri\" direction=\"in\" type=\"s\" />\n"
55 " <arg name=\"lastModificationDate\" direction=\"in\" type=\"u\" />\n"
56 " <arg name=\"data\" direction=\"in\" type=\"ay\" />\n"
58 " <method name=\"analyzeResourceFromTempFileAndDeleteTempFile\" >\n"
59 " <arg name=\"uri\" direction=\"in\" type=\"s\" />\n"
60 " <arg name=\"lastModificationDate\" direction=\"in\" type=\"u\" />\n"
61 " <arg name=\"tmpFileName\" direction=\"in\" type=\"s\" />\n"
63 " <signal name=\"indexingStarted\" />\n"
64 " <signal name=\"indexingStopped\" />\n"
65 " <signal name=\"indexingFolder\" >\n"
66 " <arg type=\"s\" name=\"path\" />\n"
72 StrigiServiceAdaptor( IndexScheduler
* scheduler
, StrigiService
* parent
);
73 ~StrigiServiceAdaptor();
78 QString
currentFolder();
81 void updateFolder( const QString
& path
);
82 void updateAllFolders();
83 void analyzeResource( const QString
& uri
, uint mTime
, const QByteArray
& data
);
84 void analyzeResourceFromTempFileAndDeleteTempFile( const QString
& uri
, uint mTime
, const QString
& tmpFile
);
87 void indexingFolder( const QString
& path
);
88 void indexingStarted();
89 void indexingStopped();
92 IndexScheduler
* m_indexScheduler
;