1/*
2 * This file was generated by dbusxml2cpp version 0.6
3 * Command line was: dbusxml2cpp -m -p kdirnotify -- org.kde.KDirNotify.xml
4 *
5 * dbusxml2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
6 *
7 * This is an auto-generated file.
8 * Do not edit! All changes made to it will be lost.
9 */
10
11#ifndef KDIRNOTIFY_H_268161151672021
12#define KDIRNOTIFY_H_268161151672021
13
14#include <QtCore/QObject>
15#include <QtCore/QByteArray>
16#include <QtCore/QList>
17#include <QtCore/QMap>
18#include <QtCore/QString>
19#include <QtCore/QStringList>
20#include <QtCore/QVariant>
21#include <QtDBus/QtDBus>
22#include <kio/kio_export.h>
23
24/**
25 * \class OrgKdeKDirNotifyInterface kdirnotify.h KDirNotify
26 *
27 * \brief Proxy class for interface org.kde.KDirNotify.
28 *
29 * KDirNotify can be used to inform KIO about changes in real or virtual file systems.
30 * Classes like KDirModel connect to the signals as in the following example to
31 * be able to keep caches up-to-date.
32 *
33 * \code
34 * kdirnotify = new org::kde::KDirNotify(QString(), QString(), QDBusConnection::sessionBus(), this);
35 * connect(kdirnotify, SIGNAL(FileRenamed(QString,QString)), SLOT(slotFileRenamed(QString,QString)));
36 * connect(kdirnotify, SIGNAL(FilesAdded(QString)), SLOT(slotFilesAdded(QString)));
37 * connect(kdirnotify, SIGNAL(FilesChanged(QStringList)), SLOT(slotFilesChanged(QStringList)));
38 * connect(kdirnotify, SIGNAL(FilesRemoved(QStringList)), SLOT(slotFilesRemoved(QStringList)));
39 * \endcode
40 *
41 * Especially noteworthy are the empty strings for both \p service and \p path. That
42 * way the client will connect to signals emitted by any application.
43 *
44 * The second usage is to actually emit the signals. For that emitFileRenamed() and friends are
45 * to be used.
46 */
47class KIO_EXPORT OrgKdeKDirNotifyInterface: public QDBusAbstractInterface
48{
49 Q_OBJECT
50public:
51 static inline const char *staticInterfaceName()
52 { return "org.kde.KDirNotify"; }
53
54public:
55 /**
56 * Create a new KDirNotify interface.
57 *
58 * \param service The service whose signals one wants to listed to. Use an empty
59 * string to connect to all services/applications.
60 * \param path The path to the D-Bus object whose signals one wants to listed to.
61 * Use an empty string to connect to signals from all objects.
62 * \param connection Typically QDBusConnection::sessionBus(), or
63 * KDBusConnectionPool::threadConnection() in multithreaded apps.
64 * \param parent The parent QObject.
65 */
66 OrgKdeKDirNotifyInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
67
68 /**
69 * Destructor.
70 */
71 ~OrgKdeKDirNotifyInterface();
72
73public Q_SLOTS: // METHODS
74Q_SIGNALS: // SIGNALS
75 void FileRenamed(const QString &src, const QString &dst);
76 void FileMoved(const QString &src, const QString &dst);
77 void FilesAdded(const QString &directory);
78 void FilesChanged(const QStringList &fileList);
79 void FilesRemoved(const QStringList &fileList);
80 void enteredDirectory(const QString &url);
81 void leftDirectory(const QString &url);
82
83public:
84 static void emitFileRenamed(const QString &src, const QString &dst);
85 static void emitFileMoved(const QString &src, const QString &dst);
86 static void emitFilesAdded(const QString &directory);
87 static void emitFilesChanged(const QStringList &fileList);
88 static void emitFilesRemoved(const QStringList &fileList);
89 static void emitEnteredDirectory(const QString &url);
90 static void emitLeftDirectory(const QString &url);
91};
92
93namespace org {
94 namespace kde {
95 typedef ::OrgKdeKDirNotifyInterface KDirNotify;
96 }
97}
98#endif
99