delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / nepomuk / services / strigi / strigiserviceadaptor.h
blobc8fc1fb45062370a11ff699689fdc3ff402053a1
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>
27 namespace Nepomuk {
29 class IndexScheduler;
30 class StrigiService;
32 class StrigiServiceAdaptor: public QDBusAbstractAdaptor
34 Q_OBJECT
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"
40 " </method>\n"
41 " <method name=\"isSuspended\" >\n"
42 " <arg direction=\"out\" type=\"b\" />\n"
43 " </method>\n"
44 " <method name=\"currentFolder\" >\n"
45 " <arg direction=\"out\" type=\"s\" />\n"
46 " </method>\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"
51 " </method>\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"
57 " </method>\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"
62 " </method>\n"
63 " <signal name=\"indexingStarted\" />\n"
64 " <signal name=\"indexingStopped\" />\n"
65 " <signal name=\"indexingFolder\" >\n"
66 " <arg type=\"s\" name=\"path\" />\n"
67 " </signal>\n"
68 " </interface>\n"
69 "")
71 public:
72 StrigiServiceAdaptor( IndexScheduler* scheduler, StrigiService* parent );
73 ~StrigiServiceAdaptor();
75 public Q_SLOTS:
76 bool isIndexing();
77 bool isSuspended();
78 QString currentFolder();
79 void resume();
80 void suspend();
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 );
86 Q_SIGNALS:
87 void indexingFolder( const QString& path );
88 void indexingStarted();
89 void indexingStopped();
91 private:
92 IndexScheduler* m_indexScheduler;
96 #endif